This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import print_function | |
import sys | |
import csv | |
from datetime import datetime | |
VENMO_DATE_FORMAT = '%a %b %d %H:%M:%S %Y' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
import csv | |
import json | |
from collections import OrderedDict | |
LVLS_MAP = { | |
'0': 'cantrip', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Aliases | |
# | |
alias ta='tmux attach -t' | |
alias ts='tmux new-session -s' | |
alias tl='tmux list-sessions' | |
# Only run if tmux is actually installed | |
if which tmux &> /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#raw | |
# Nifty trick to restore keys without using a nochroot %post | |
echo "Saving salt keys..." > /dev/ttyS0 | |
SEARCHDIR=/etc/salt/pki | |
WATCHDIR=/etc | |
TEMPDIR=salt | |
PATTERN='' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
callbacks = []; | |
for (var i = 0; i < 2; i++) { | |
callbacks.push(function() {console.log(i);}); | |
} | |
for (var j = 0; j < 2; j++) { | |
callbacks[j](); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BUILDCMD='makepkg -s -i --noconfirm --asroot' | |
aurbuild () { | |
pushd /tmp | |
wget https://aur.archlinux.org/packages/${1:0:2}/$1/$1.tar.gz | |
tar xzvf $1.tar.gz | |
cd $1 | |
$BUILDCMD | |
popd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bytes = require('bytes'); | |
exports.dev = function(tokens, req, res){ | |
var status = res.statusCode | |
, method = req.method | |
, len = parseInt(res.getHeader('Content-Length'), 10) | |
, status_color = 32 | |
, method_color = 33; | |
if (status >= 500) status_color = 31 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCkPRFelYiKXCFI3S7vO6sgTc7I02dibrX+TxcIDQeAQr3aJblnPSUFhB32UouQyungiFfm4RV7Pv5KZPHTO8qi9PssFXMOabqbsnnvAPx7i84EjdR/235n1JKenxUI9yQKqD/uv4mmtEbvtzooKIe/Fa+ZrkZ0wZNCt+gNkOmhOFj5+mmoojlkwiYPJbp5kd8mQYPhvV8fv5vB3x8ImlRNwdpGLdEW5bag/G3jEQsRSLl09YuvlYReivRbfyeoWYMgLBiAgyPUFpHSqi0ue2g3oFqsLAW2lcKH27oYvRUkAVlKBsFb2UEeB9rB/MKSnb9xV4rM/WtVQU5fchitKZFl josh@cronos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = RUWireless_Secure | |
author = Josh Matthews | |
version = 1 | |
require identity *NetID password *Password ca_cert *Path_to_CA_Cert | |
protected password *Password | |
----- | |
ctrl_interface=/var/run/wpa_supplicant | |
network={ | |
ssid="$_ESSID" | |
scan_ssid="$_SCAN" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = eduroam | |
author = Ander Martinez | |
version = 2 | |
require identity *Identity password *Password | |
protected password *Password | |
----- | |
ctrl_interface=/var/run/wpa_supplicant | |
network={ | |
ssid="$_ESSID" | |
scan_ssid="$_SCAN" |
NewerOlder