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/sh | |
# vim: set ts=4 sw=4 noet: | |
# I can't wait for this to be a command-line flag | |
for i in 2 3; do | |
echo "Updating Python $i.x..." | |
pip$i freeze --local | grep -v '^\-e' | cut -d= -f1 | xargs pip$i install -U | |
done |
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
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] | |
[email protected] |
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 | |
# vim: ts=4 sw=4 noet fileencoding=utf-8: | |
"""Boiler-plate Python 2.7 quick CLI project file""" | |
__author__ = 'pestilence669' | |
from argparse import ArgumentParser | |
import sys | |
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/bash | |
# vim: set ts=4 sw=4 noet: | |
java -cp /var/lib/tomcat*/lib/catalina.jar org.apache.catalina.util.ServerInfo |
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 | |
# vim: set ts=4 sw=4 noet: | |
# must add each alias individually. here's .2 | |
sudo ifconfig lo0 alias 127.0.0.2 up |
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
// vim: set ts=4 sw=4 noet: | |
// create a collection to hold the named sequences | |
db.createCollection('counters'); | |
// shell helper. initialize, if necessary, and return the next sequence | |
function getCounterFor(name) { | |
return db.counters.findAndModify({ | |
query: { _id: name }, | |
update: { $inc: { sequence: 1 } }, |
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 | |
# vim: set ts=4 sw=4 noet: | |
# install colorization & other enhancements to the stock MongoDB shell | |
npm install -g mongo-hacker | |
# command-line JSON filtering, formatting and other general awesome | |
npm install -g json |
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
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
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 | |
# vim: set ts=4 sw=4 noet fileencoding=utf-8: | |
# disable the accent menu in macOS, when you hold keys like "e" | |
# enable repeat / use ⌥ instead. | |
defaults write -g ApplePressAndHoldEnabled -bool false | |
# basic dock preferences | |
defaults write com.apple.dock orientation -string left | |
defaults write com.apple.dock autohide -int 1 |