Skip to content

Instantly share code, notes, and snippets.

View kljensen's full-sized avatar
😵‍💫
0101010101

Kyle L. Jensen kljensen

😵‍💫
0101010101
View GitHub Profile
@kljensen
kljensen / remove-spaces-before-citations.lua
Last active January 7, 2020 20:37
A Pandoc Lua filter that removes Spaces before Cite elements
local function remove_citation_space(para)
local table elements = {}
i = 0
local function logel(el)
i = i + 1
elements[i] = el.t
end
pandoc.walk_block(para, {Inline = logel})

I don't why c9 has such ancient node versions some times. To get something more recent, do

nvm install 8
nvm alias default 8
@kljensen
kljensen / apu2-openbsd-install-notes.md
Last active November 26, 2018 00:35
The steps I followed to install OpenBSD on a PCEngines apu2 (apu2d4)

Building the device

I followed this video

Connecting to the machine for the first time

Installed the driver serial adapter for the CP2104 USB to UART Bridge Controller device. This is the cord

SELECT
movies.title,
COUNT(*) as num_reviews
FROM
movies
JOIN
reviews
ON movies.id = reviews.movie_id
WHERE
action = 1
CREATE TABLE person (
id INTEGER PRIMARY KEY,
name TEXT,
email TEXT,
username TEXT
);
CREATE TABLE task (
id INTEGER PRIMARY KEY,
title TEXT,
CREATE TABLE task (
id INTEGER PRIMARY KEY,
name TEXT,
completed INTEGER
);
#!/bin/bash
# Call this with something like `PAGE=4 ./clone-all.sh my-org-name`
# Expects to find an environment variable and loads a .env file if
# it finds it in `cwd`.
if [ -z "$1" ]
then
echo "You must supply an organization name";
exit 1;
title: Full reddit recommended routine
exercises:
- instruction: jumping jacks
number: 60
istimed: true
- instruction: band dislocates
number: 60
istimed: true
- instruction: wrist mobility
number: 30
@kljensen
kljensen / sshfs-git-fetch-error.md
Created December 19, 2016 20:07
Getting errors when doing git fetch or git pull over ssh

If you get this error

> git fetch                                                                                                                                                   ──(master !?)─┘
remote: Counting objects: 27, done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 27 (delta 9), reused 3 (delta 3), pack-reused 8
error: unable to create temporary file: Interrupted system call
fatal: failed to write object
fatal: unpack-objects failed
// Taken from http://forum.arduino.cc/index.php?topic=259450.0
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;