Skip to content

Instantly share code, notes, and snippets.

Anderson Torres AndersonTorres

View GitHub Profile
@AndersonTorres
AndersonTorres / nix-development-template-file.org
Last active May 24, 2020
A project workflow for Nixpkgs/NixOS
View nix-development-template-file.org

Standard project structure

This is a project structure I’ve found useful. Looking for any thoughts/comments/feedback. Roughly, I found a tension between the style nixpkgs expects and the style conducive to development, so I extracted the common portion into a derivation.nix which is used by the remaining .nix files. This setup allows me to use nix build, nix-shell, overlays, Hydra, alternate packaging schemes, cross-compiling, etc.

@AndersonTorres
AndersonTorres / pdf2zip.fish
Created Mar 23, 2020
Fish script to convert PDF to ZIP
View pdf2zip.fish
#!/bin/fish
# pdf2zip.fish
# Transforms a single PDF file,
# passed under cmdline,
# to an equivalent ZIP file,
# storing it in the current directory
#
# Typical usage: pdf2zip.fish infile.pdf
@AndersonTorres
AndersonTorres / rar2zip.fish
Last active Jan 1, 2020
Fish script to convert RAR to ZIP
View rar2zip.fish
#!/bin/fish
# rar2zip.fish
# Transforms a single RAR file,
# passed under cmdline,
# to an equivalent ZIP file,
# storing it in the current directory
#
# Typical usage: rar2zip.fish infile.rar
View rar2zip.sh
#!/bin/sh
#
# rar2zip.sh
# Transforms a single RAR file,
# passed under cmdline,
# to an equivalent ZIP file,
# storing it in the current directory
#
You can’t perform that action at this time.