Skip to content

Instantly share code, notes, and snippets.

View armiller's full-sized avatar

Anthony Miller armiller

  • Linkedin
  • Sunnyvale, CA
View GitHub Profile
# Are quotes escaped?
escaped_quotes = True
haproxy_re = (r'haproxy\[(?P<pid>\d+)\]: '
r'(?P<client_ip>(\d{1,3}\.){3}\d{1,3}):(?P<client_port>\d{1,5}) '
r'\[(?P<date>\d{2}/\w{3}/\d{4}(:\d{2}){3}\.\d{3})\] '
r'(?P<listener_name>\S+) (?P<server_name>\S+) '
r'(?P<Tq>(-1|\d+))/(?P<Tw>(-1|\d+))/(?P<Tc>(-1|\d+))/(?P<Tr>(-1|\d+))/'
r'(?P<Tt>\+?\d+) '
r'(?P<HTTP_return_code>\d{3}) (?P<bytes_read>\d+) '
@armiller
armiller / gist:22c7a39c0d59fc91bd7d
Last active September 14, 2016 23:32
Sublimetext config
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_extra_bottom": 1,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "solid",
"color_scheme": "Packages/Solarized Color Scheme/Solarized (light).tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
# Use vim keybindings in copy mode
setw -g mode-keys vi
set -g status-keys vi
# Setup 'v' to begin selection as in Vim
bind-key -t vi-copy v begin-selection
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
# Update default binding of `Enter` to also use copy-pipe
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-surround'
Plugin 'scrooloose/nerdtree'
'editor':
'fontSize': 14
'fontFamily': 'Inconsolata'
'softWrap': true
'preferredLineLength': 100
'invisibles': {}
'showIndentGuide': true
'core':
'useReactEditor': true
'audioBeep': false
[
//
// TABS (REGULAR)
//
// Tab set
{
"class": "tabset_control",
"layer0.texture": "Theme - Soda/Soda Dark/tabset-background.png",
@armiller
armiller / gist:e765aae445b47517c67b
Last active February 10, 2017 06:05
Sublime text 3
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "solid",
"color_scheme": "Packages/Solarized Color Scheme/Solarized (light).tmTheme",
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "Inconsolata",
"font_size": 14.0,
"highlight_line": false,
@armiller
armiller / .bashrc
Created June 23, 2015 13:37
Mac .bashrc
export CLICOLOR='1'
function irc () {
ssh -t truth "screen -dr"
}
#export PATH=/usr/local/bin:$PATH
NORMAL="\[\e[0m\]"
{
"Prompt Before Closing 2" : 2,
"Selected Text Color" : {
"Green Component" : 0.5624475,
"Red Component" : 0.4779736,
"Blue Component" : 0.5573205
},
"Rows" : 100,
"Ansi 11 Color" : {
"Green Component" : 0.4205398,
@armiller
armiller / .bash_profile
Created June 23, 2015 13:40
mac .bash_profile
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH
#ruby=/usr/local/opt/ruby/bin
export PATH=$PATH:/usr/local/opt/go/libexec/bin:/Users/Knifeninjas/Library/Haskell/bin
##
# Your previous /Users/Knifeninjas/.bash_profile file was backed up as /Users/Knifeninjas/.bash_profile.macports-saved_2012-10-17_at_21:40:28
##
if [ -f ~/.bashrc ]; then