Skip to content

Instantly share code, notes, and snippets.

from sys import exit
WIN = True
LOSE = False
def user_input():
return input("> ")
@cgmcintyr
cgmcintyr / nixos_cheatsheet.md
Last active May 16, 2019 14:19
NixOS Cheatsheet

Locating Stuff

# Find which package a binary comes from
nix path-info $(which bash)

# Find location of binary (works for non-nix binaries)
readlink -f $(which bash)
Spivak's "Calculus"
James Stewart's "Calculus: Early Transcendentals"
John R. Taylor "Classical Mechanics"
Strang "MIT 18.06 Linear Algebra" (http://immersivemath.com/ila/)
David J Griffiths "Introduction to Electrodynamics"
@cgmcintyr
cgmcintyr / weechat.md
Last active September 16, 2018 15:31
Guide to my weechat setup

Enable mouse support

/mouse enable

Encrypted password in sec.conf

/secure passphrase <pass>
/secure set freenodepass 
@cgmcintyr
cgmcintyr / kpdb
Created June 21, 2018 20:07
Script for syncing and uploading keypass database file to Dropbox
#!/usr/bin/env python3
import dropbox
import argparse
import filecmp
import os
import shutil
import sys
import time
import subprocess
@cgmcintyr
cgmcintyr / hs-welcome
Last active May 10, 2018 15:29
HackSheffield Server Welcome Message
#!/bin/bash
RESET="\e[0m"
GREEN="\e[32m"
echo -e " ${RESET},${GREEN}++++ "
echo -e " ###+${RESET}. "
echo -e " ${GREEN}#+++ "
echo -e " ++++ "
echo -e " +++++++ "
echo -e " ;+#, ++++' "
echo -e " ,#\` +++++ "

Keybase proof

I hereby claim:

  • I am cgmcintyr on github.
  • I am cgmcintyre (https://keybase.io/cgmcintyre) on keybase.
  • I have a public key whose fingerprint is 9393 019C 72FE FD33 BD31 890E 4D84 1C71 6723 6C60

To claim this, I am signing this object: