Skip to content

Instantly share code, notes, and snippets.

@ljrk0
ljrk0 / snake_lemma_snake_flag_plain.svg
Created February 25, 2024 21:57
Snake Lemma Meme Flag
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ljrk0
ljrk0 / texbook.sh
Created August 16, 2020 15:35
Compile Donald Knuths TeXBook to test TeX distribution
#! /bin/sh
# run as ./textbook.sh texbook.tex > texbook_nodrm.tex
if [ $# -ne 1 ]; then
printf "Usage: ./texbook.sh texbook.tex > texbook_nodrm.tex\n" >&2
exit 1
fi
texbook="$1"
@ljrk0
ljrk0 / texbook.sh
Created August 16, 2020 15:35
Compile Donald Knuths TeXBook to test TeX distribution
#! /bin/sh
# run as ./textbook.sh texbook.tex > texbook_nodrm.tex
if [ $# -ne 1 ]; then
printf "Usage: ./texbook.sh texbook.tex > texbook_nodrm.tex\n" >&2
exit 1
fi
texbook="$1"
@ljrk0
ljrk0 / keybase.md
Last active April 3, 2021 13:41
keybase.md

Keybase proof

I hereby claim:

  • I am ljrk0 on github.
  • I am larkey (https://keybase.io/larkey) on keybase.
  • I have a public key whose fingerprint is 28D2 6285 1AA4 2CD7 AA09 01E5 8EF6 52AD 1BD7 BF7E

To claim this, I am signing this object:

~~ the following installed packages are found at new locations
:: perl-parse-yapp moved from community repo to community-testing repo
:: perl-switch moved from community repo to community-testing repo
:: python-feedparser moved from extra repo to testing repo
:: brotli moved from community repo to community-testing repo
:: python2-cssselect moved from extra repo to testing repo
:: perl-capture-tiny moved from extra repo to testing repo
:: postgresql moved from extra repo to testing repo
:: python-dateutil moved from community repo to community-testing repo
:: perl-inc-latest moved from extra repo to testing repo
@ljrk0
ljrk0 / letter2a4.sh
Created September 11, 2017 10:05
Convert a letter pdf into A4
#! /bin/sh
IN="$1"
OUT="$2"
if [ -z $1 ] || [ -z $2 ]; then
echo "not enough args"
fi
pdf2ps -q -sOutputFile=%stdout% "$IN" | \
@ljrk0
ljrk0 / countsort.c
Created November 28, 2016 09:41
Counting sort
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
/**
* parses "[ a , b , c ]" into an array.
* requirements:
* * first character must be a '['
* * subsequent characters until closing ']' must be `unsigned integer`,
* seperated by ','. Leading and trailing whitespace ignored.
@ljrk0
ljrk0 / parray.c
Created August 27, 2016 14:14
c small utility functions
#include <stdint.h>
#include <inttypes.h>
#include <stdlib.h>
#include <stdio.h>
/*
* generic array print function.
*
* prints array p with len elements of each width size.
* needs provided function f which should return a string representation of an
@ljrk0
ljrk0 / tmux.conf
Created June 18, 2016 13:22 — forked from anonymous/tmux.conf
vim friendly tmux configuration
#Prefix is Ctrl-a
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
#Mouse works as expected
@ljrk0
ljrk0 / LICENSE
Last active April 17, 2016 15:30
flashing_XML.py
Attribution-ShareAlike 4.0 International
=======================================================================
Creative Commons Corporation ("Creative Commons") is not a law firm and
does not provide legal services or legal advice. Distribution of
Creative Commons public licenses does not create a lawyer-client or
other relationship. Creative Commons makes its licenses and related
information available on an "as-is" basis. Creative Commons gives no
warranties regarding its licenses, any material licensed under their