Skip to content

Instantly share code, notes, and snippets.

Avatar
🐍
making things

Brad Smith infinitewarp

🐍
making things
View GitHub Profile
@infinitewarp
infinitewarp / conical.py
Created Apr 4, 2016
quick visualization of coordinates in a conical frustum
View conical.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
import argparse
def get_args():
parser = argparse.ArgumentParser()
@infinitewarp
infinitewarp / wakeup.scpt
Created Apr 27, 2016
script runs after waking up in the morning
View wakeup.scpt
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.security"
tell application "System Events" to tell process "System Preferences"
repeat until radio button "General" of tab group 1 of window 1 exists
end repeat
click radio button "General" of tab group 1 of window 1
set timeout_menu to pop up button 1 of (tab group 1 of window "Security & Privacy")
@infinitewarp
infinitewarp / Brad_s Sublime.icls
Created May 7, 2016
colors for pycharm to look more like sublime text's default colors
View Brad_s Sublime.icls
<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" />
View .bashrc
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"
View .bash_profile
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
View com.googlecode.iterm2.plist
<?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>
View .vimrc
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')
View .gitconfig
# 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"
View .inputrc
# 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
View iterm-profile.json
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : "0.6235294",
"Red Component" : "0.4470588",
"Blue Component" : "0.8117647"
},