diff options
Diffstat (limited to 'src/content/blog/2018')
-rw-r--r-- | src/content/blog/2018/07/17/guix-nixos.adoc | 6 | ||||
-rw-r--r-- | src/content/blog/2018/12/21/ytdl-subs.adoc | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/content/blog/2018/07/17/guix-nixos.adoc b/src/content/blog/2018/07/17/guix-nixos.adoc index b9cd89b..42290f6 100644 --- a/src/content/blog/2018/07/17/guix-nixos.adoc +++ b/src/content/blog/2018/07/17/guix-nixos.adoc @@ -19,7 +19,7 @@ builds in the isolated environments. The {manual}[manual] already provides you with a ready to run (as root) command for creating the build users: -[source,bash] +[source,sh] ---- groupadd --system guixbuild for i in `seq -w 1 10`; @@ -37,7 +37,7 @@ However, In my personal NixOS I have disabled {mutable-users}[`users.mutableUsers`], which means that even if I run the above command it means that they'll be removed once I rebuild my OS: -[source,shell] +[source,sh] ---- $ sudo nixos-rebuild switch (...) @@ -165,7 +165,7 @@ guix-daemon = { There you go! After running `sudo nixos-rebuild switch` I could get Guix up and running: -[source,bash] +[source,sh] ---- $ guix package -i hello The following package will be installed: diff --git a/src/content/blog/2018/12/21/ytdl-subs.adoc b/src/content/blog/2018/12/21/ytdl-subs.adoc index b6540b7..5c4575f 100644 --- a/src/content/blog/2018/12/21/ytdl-subs.adoc +++ b/src/content/blog/2018/12/21/ytdl-subs.adoc @@ -46,7 +46,7 @@ less control on what you share with YouTube and Google. youtube-dl is a command-line tool for downloading videos, from YouTube and {other-sites}[many other sites]: -[source,shell] +[source,sh] ---- $ youtube-dl https://www.youtube.com/watch?v=rnMYZnY3uLA [youtube] rnMYZnY3uLA: Downloading webpage @@ -70,7 +70,7 @@ some interesting flags that we can use: Putting it all together: -[source,shell] +[source,sh] ---- $ youtube-dl "https://www.youtube.com/channel/UClu474HMt895mVxZdlIHXEA" \ --download-archive ~/Nextcloud/cache/youtube-dl-seen.conf \ @@ -90,7 +90,7 @@ download only the last video, since the other 19 were already downloaded. With this basic setup you have a minimal subscription system at work, and you can create some functions to help you manage that: -[source,shell] +[source,sh] ---- #!/bin/sh @@ -128,7 +128,7 @@ export -f download_playlist With these functions, you now can have a subscription fetching script to download the latest videos from your favorite channels: -[source,shell] +[source,sh] ---- #!/bin/sh @@ -180,7 +180,7 @@ You could try putting it in a dedicated git repository, and wrap the script with an autocommit after every run. If you ever had a merge conflict, you'd simply accept all changes and then run the following to tidy up the file: + -[source,shell] +[source,sh] ---- $ uniq youtube-dl-seen.conf > youtube-dl-seen.conf ---- |