Skip to content

Instantly share code, notes, and snippets.

@abullrd
abullrd / new_gist_file
Created April 5, 2013 18:37
Vim use .gitignore
let filename = '.gitignore'
if filereadable(filename)
let igstring = ''
for oline in readfile(filename)
let line = substitute(oline, '\s|\n|\r', '', "g")
if line =~ '^#' | con | endif
if line == '' | con | endif
if line =~ '^!' | con | endif
if line =~ '/$' | let igstring .= "," . line . "*" | con | endif
let igstring .= "," . line
shasum -a 256 #{filename} | cut -c-12
@abullrd
abullrd / ListMemcached.md
Last active May 20, 2024 14:03
List Memcached Keys
@abullrd
abullrd / gist:dec1e7ee1ff19887ad29
Created May 1, 2014 21:48
Use tcpdump to read header info for incoming requests
tcpdump -n -S -s 0 -A 'tcp dst port 80' | grep -B3 -A10 "GET /test"
@abullrd
abullrd / index.jade
Last active August 29, 2015 14:24
A Lonely Square
.container
.square
.trees
- var trees = 7
while trees--
.tree
.branch
.branch
.branch
.branch
@abullrd
abullrd / .vimrc
Last active August 29, 2015 14:24
.vimrc
execute pathogen#infect()
" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => nerdTree
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""