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 / 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"
@infinitewarp
infinitewarp / Brad_s Sublime.icls
Created May 7, 2016 18:24
colors for pycharm to look more like sublime text's default colors
<scheme name="Brad's Sublime" version="142" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="CONSOLE_FONT_NAME" value="Menlo" />
<option name="CONSOLE_FONT_SIZE" value="13" />
<option name="EDITOR_FONT_NAME" value="Menlo" />
<colors>
<option name="ADDED_LINES_COLOR" value="295622" />
<option name="CARET_COLOR" value="bbbbbb" />
<option name="CARET_ROW_COLOR" value="32332a" />