Skip to content

Instantly share code, notes, and snippets.

@paperdigits
paperdigits / flake.nix
Created April 14, 2023 01:11 — forked from m1cr0man/flake.nix
The simplest Nix Flake for nixos-rebuild
# This can be built with nixos-rebuild --flake .#myhost build
{
description = "the simplest flake for nixos-rebuild";
inputs = {
nixpkgs = {
# Using the nixos-unstable branch specifically, which is the
# closest you can get to following the equivalent channel with flakes.
url = "github:NixOS/nixpkgs/nixos-unstable";
};
@paperdigits
paperdigits / keybase.md
Created February 9, 2018 10:44
My keybase.io proof

Keybase proof

I hereby claim:

  • I am paperdigits on github.
  • I am paperdigits (https://keybase.io/paperdigits) on keybase.
  • I have a public key whose fingerprint is A527 911E BA29 099F A5BD 8F16 4139 15A0 E8BA 6862

To claim this, I am signing this object:

@paperdigits
paperdigits / xml_tidy.tidyconf
Created March 27, 2017 20:54
A tidy config for XML
add-xml-decl: true
drop-empty-paras: false
fix-backslash: false
fix-bad-comments: false
fix-uri: false
input-xml: true
join-styles: false
literal-attributes: true
lower-literals: false
output-xml: true
@paperdigits
paperdigits / good_type.scss
Last active May 24, 2018 10:16
Good(?) Typography for CSS Paged Media
/* Good(?) typography */
/* Widows and oraphans for paragraphs */
p {
widows: 3;
orphans: 3;
}
/* Avoid page breaks directly after headers */
h1, h2, h3, h4, h5, h6 {
@paperdigits
paperdigits / default.nix
Created January 10, 2017 06:15
nix-shell environment for middleman
# nix-shell -p bundler bundix
# bundler lock && bundler package --path vendor/cache --no-install && bundix && exit
# nix-shell
with (import <nixpkgs> {});
let
env = bundlerEnv {
name = "test-package";
inherit ruby;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
@paperdigits
paperdigits / beginner_photo_workflow.dot
Last active May 23, 2016 04:28
Workflow charts for photograhy related free software tools.
digraph {
node[shape="box"]
// splines=line;
// subgraph import_tools {
// label="Import tools";
// file_manager_copy;
// rapid_photo_downloader;
// digikam;
// shotwell;
// filmulator
@paperdigits
paperdigits / gitolite_list
Created July 29, 2014 05:40
get a list of all the repos you have access to in gitolite
ssh gitolite@host info | tail -n +3 | awk '{print $3;}'
# Utilities to convert text & documents
wdiff - word by word diff program
unrtf - convert rtf to other formats
textutil - OS X only so far as I can tell
pandoc - flexible markdown converter
unoconv - open/libre office command-line document converter
docsplit - split documents, extract images, OCR
git rev-list HEAD --count
FILENAME:emacs auctex PDFlatex default.txt
%Used to set auctex in emacs to PDF mode by default.
use:
M-x customize-variable RET TeX-PDF-mode RET
then set the value to "non-nil"