Skip to content

Instantly share code, notes, and snippets.

View infinitewarp's full-sized avatar
🐍
making things

Brad Smith infinitewarp

🐍
making things
View GitHub Profile
@infinitewarp
infinitewarp / minecraft-region-minmax.py
Last active November 25, 2016 20:06
Get potential full size of a map from a list of Minecraft region files
from __future__ import print_function
import re
from sys import argv, exit
pattern = r'.*r\.(-?[0-9]+)\.(-?[0-9]+)\.mca$'
matcher = re.compile(pattern)
north, south, east, west = None, None, None, None
@infinitewarp
infinitewarp / mysql exclusive lock.md
Last active September 6, 2016 16:39
simple steps to cause an exclusive lock in mysql
  • open shell 1 to the database and run the following to create a table and start a new transaction:
create table foo (id integer primary key);
commit;
begin;
  • open shell 2 to the database and run the following to ensure you see the table and start a new transaction:
describe foo;
begin;

US Retirement Investing

Disclaimers!

I am not a lawyer! I am not a certified accountant, economist, investment authority, or "financial advisor" in any formal capacity! This information is provided purely based on personal anecdotes and recollections, and I cannot guarantee the accuracy or validity of any of it. How you choose to handle your money and investments is entirely your own choice and your own risk. Caveat emptor!

your money your problems

Now with that out of the way...

{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : "0.6235294",
"Red Component" : "0.4470588",
"Blue Component" : "0.8117647"
},
# some of this borrowed from
# https://gist.github.com/waingram/10b757b79e5b3a32f11f
# append a slash when autocompleting [symbolic links to] directories
set mark-directories on
set mark-symlinked-directories on
# be more intelligent when autocompleting by also looking at the text after
# the cursor.
set skip-completed-text on
# This is Git's per-user configuration file.
[user]
name = TODO
email = TODO
[core]
autocrlf = input
[alias]
# I wish default logging was more useful.
glog = "log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all"
syntax on
" see also: :e $VIMRUNTIME/colors
colorscheme elflord
" show the cursor position all the time
set ruler
" In many terminal emulators the mouse works just fine, thus enable it.
"if has('mouse')
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>AppleScrollAnimationEnabled</key>
<integer>0</integer>
<key>AppleSmoothFixedFontsSizeThreshold</key>
<integer>1</integer>
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
if [ -f /etc/bashrc ]; then
source /etc/bashrc
fi
# shortcus
alias ll='/bin/ls -lahO'
# more default paths
export BREW_PATH="/usr/local/bin:/usr/local/sbin"
export PATH="~/bin:$BREW_PATH:$PATH"