tome export

This commit is contained in:
Oliver Davies 2025-05-30 02:14:32 +01:00
parent 52278c3a53
commit 7a52afab5f
960 changed files with 3670 additions and 2229 deletions

View file

@ -82,15 +82,15 @@
],
"body": [
{
"value": "\n <p>Yesterday I showed <a href=\"/daily\/2025\/04\/07\/nix-rst2pdf\">how I'm using Nix to build my presentation slide decks<\/a> with rst2pdf.<\/p>\n\n<p>This allows me to run a simple command like <code>nix build .#test-driven-drupal<\/code> to build the slides for the given presentation.<\/p>\n\n<p>But I can use other tools to make this even easier.<\/p>\n\n<p>What if I wanted to have a list of the available presentations to select from, and selecting one would build it?<\/p>\n\n<p>Following the UNIX philosophy, I can use multiple tools together to achieve this.<\/p>\n\n<p>Firstly, I can run <code>nix flake show --json<\/code> to show the output from my flake.nix file, which looks something like this:<\/p>\n\n<pre><code class=\"json\">{\n \"devShells\": { ... },\n \"formatter\": { ... },\n \"packages\": {\n \"x86_64-linux\": {\n \"build-configs\": { ... },\n \"sculpin\": { ... },\n \"shared\": { ... }\n }\n }\n}\n<\/code><\/pre>\n\n<p>The package names - a.k.a. the presentation names - are what I want to select from.<\/p>\n\n<p>I can parse the JSON object with <code>jq<\/code>, remove any unwanted options with <code>grep -v<\/code> and use <code>fzf<\/code> to give me a list I can fuzzy search in.<\/p>\n\n<p>In a Bash script, I can assign this to a variable:<\/p>\n\n<pre><code class=\"bash\">selected=$(nix flake show --json | jq --raw-output '.packages[\"x86_64-linux\"] | keys[]' | grep -v shared | fzf)\n<\/code><\/pre>\n\n<p>Once I have selected a name, I can call <code>nix build<\/code> on it.<\/p>\n\n<pre><code class=\"bash\">nix build .#\"$selected\"\n<\/code><\/pre>\n\n<p>This is a simple example, but it shows how programs can be used together and output can be passed through each program to get the result you want.<\/p>\n\n ",
"value": "\n <p>Yesterday I showed <a href=\"\/daily\/2025\/04\/07\/nix-rst2pdf\">how I'm using Nix to build my presentation slide decks<\/a> with rst2pdf.<\/p>\n\n<p>This allows me to run a simple command like <code>nix build .#test-driven-drupal<\/code> to build the slides for the given presentation.<\/p>\n\n<p>But I can use other tools to make this even easier.<\/p>\n\n<p>What if I wanted to have a list of the available presentations to select from, and selecting one would build it?<\/p>\n\n<p>Following the UNIX philosophy, I can use multiple tools together to achieve this.<\/p>\n\n<p>Firstly, I can run <code>nix flake show --json<\/code> to show the output from my flake.nix file, which looks something like this:<\/p>\n\n<pre><code class=\"json\">{\n \"devShells\": { ... },\n \"formatter\": { ... },\n \"packages\": {\n \"x86_64-linux\": {\n \"build-configs\": { ... },\n \"sculpin\": { ... },\n \"shared\": { ... }\n }\n }\n}\n<\/code><\/pre>\n\n<p>The package names - a.k.a. the presentation names - are what I want to select from.<\/p>\n\n<p>I can parse the JSON object with <code>jq<\/code>, remove any unwanted options with <code>grep -v<\/code> and use <code>fzf<\/code> to give me a list I can fuzzy search in.<\/p>\n\n<p>In a Bash script, I can assign this to a variable:<\/p>\n\n<pre><code class=\"bash\">selected=$(nix flake show --json | jq --raw-output '.packages[\"x86_64-linux\"] | keys[]' | grep -v shared | fzf)\n<\/code><\/pre>\n\n<p>Once I have selected a name, I can call <code>nix build<\/code> on it.<\/p>\n\n<pre><code class=\"bash\">nix build .#\"$selected\"\n<\/code><\/pre>\n\n<p>This is a simple example, but it shows how programs can be used together and output can be passed through each program to get the result you want.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>Yesterday I showed <a href=\"/daily\/2025\/04\/07\/nix-rst2pdf\">how I'm using Nix to build my presentation slide decks<\/a> with rst2pdf.<\/p>\n\n<p>This allows me to run a simple command like <code>nix build .#test-driven-drupal<\/code> to build the slides for the given presentation.<\/p>\n\n<p>But I can use other tools to make this even easier.<\/p>\n\n<p>What if I wanted to have a list of the available presentations to select from, and selecting one would build it?<\/p>\n\n<p>Following the UNIX philosophy, I can use multiple tools together to achieve this.<\/p>\n\n<p>Firstly, I can run <code>nix flake show --json<\/code> to show the output from my flake.nix file, which looks something like this:<\/p>\n\n<pre><code class=\"json\">{\n \"devShells\": { ... },\n \"formatter\": { ... },\n \"packages\": {\n \"x86_64-linux\": {\n \"build-configs\": { ... },\n \"sculpin\": { ... },\n \"shared\": { ... }\n }\n }\n}\n<\/code><\/pre>\n\n<p>The package names - a.k.a. the presentation names - are what I want to select from.<\/p>\n\n<p>I can parse the JSON object with <code>jq<\/code>, remove any unwanted options with <code>grep -v<\/code> and use <code>fzf<\/code> to give me a list I can fuzzy search in.<\/p>\n\n<p>In a Bash script, I can assign this to a variable:<\/p>\n\n<pre><code class=\"bash\">selected=$(nix flake show --json | jq --raw-output '.packages[\"x86_64-linux\"] | keys[]' | grep -v shared | fzf)\n<\/code><\/pre>\n\n<p>Once I have selected a name, I can call <code>nix build<\/code> on it.<\/p>\n\n<pre><code class=\"bash\">nix build .#\"$selected\"\n<\/code><\/pre>\n\n<p>This is a simple example, but it shows how programs can be used together and output can be passed through each program to get the result you want.<\/p>\n\n ",
"processed": "\n <p>Yesterday I showed <a href=\"http:\/\/default\/daily\/2025\/04\/07\/nix-rst2pdf\">how I'm using Nix to build my presentation slide decks<\/a> with rst2pdf.<\/p>\n\n<p>This allows me to run a simple command like <code>nix build .#test-driven-drupal<\/code> to build the slides for the given presentation.<\/p>\n\n<p>But I can use other tools to make this even easier.<\/p>\n\n<p>What if I wanted to have a list of the available presentations to select from, and selecting one would build it?<\/p>\n\n<p>Following the UNIX philosophy, I can use multiple tools together to achieve this.<\/p>\n\n<p>Firstly, I can run <code>nix flake show --json<\/code> to show the output from my flake.nix file, which looks something like this:<\/p>\n\n<pre><code class=\"json\">{\n \"devShells\": { ... },\n \"formatter\": { ... },\n \"packages\": {\n \"x86_64-linux\": {\n \"build-configs\": { ... },\n \"sculpin\": { ... },\n \"shared\": { ... }\n }\n }\n}\n<\/code><\/pre>\n\n<p>The package names - a.k.a. the presentation names - are what I want to select from.<\/p>\n\n<p>I can parse the JSON object with <code>jq<\/code>, remove any unwanted options with <code>grep -v<\/code> and use <code>fzf<\/code> to give me a list I can fuzzy search in.<\/p>\n\n<p>In a Bash script, I can assign this to a variable:<\/p>\n\n<pre><code class=\"bash\">selected=$(nix flake show --json | jq --raw-output '.packages[\"x86_64-linux\"] | keys[]' | grep -v shared | fzf)\n<\/code><\/pre>\n\n<p>Once I have selected a name, I can call <code>nix build<\/code> on it.<\/p>\n\n<pre><code class=\"bash\">nix build .#\"$selected\"\n<\/code><\/pre>\n\n<p>This is a simple example, but it shows how programs can be used together and output can be passed through each program to get the result you want.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "1970-01-01T00:33:45+00:00",
"imported": "1970-01-01T00:32:50+00:00",
"guid": null,
"hash": "6a6105cc8b6ef3e9fadb5aec0f56aaeb",
"target_type": "feeds_feed",