Skip to content

Instantly share code, notes, and snippets.

View glamrock's full-sized avatar
🐝
hacking on things at Berkman <3

Griffin Boyce glamrock

🐝
hacking on things at Berkman <3
View GitHub Profile
@glamrock
glamrock / .vimrc
Created June 19, 2017 18:27 — forked from assaf/.vimrc
.vimrc
version 7.0
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
let &cpo=s:cpo_save
unlet s:cpo_save
set cscopeprg=/usr/bin/cscope
set cscopetag
set cscopeverbose
set fileencodings=utf-8,latin1
@glamrock
glamrock / .vimrc
Created June 8, 2017 19:46
hella vimrc options
" Include user's local vim before config
if filereadable(expand("~/.vimrc.before"))
source ~/.vimrc.before
endif
""
"" Basic Setup
""
set nocompatible " use vim, no vi defaults
@glamrock
glamrock / .gitconfig
Created June 6, 2017 14:06 — forked from robmiller/.gitconfig
Some useful Git aliases that I use every day
#
# Working with branches
#
# Get the current branch name (not so useful in itself, but used in
# other aliases)
branch-name = "!git rev-parse --abbrev-ref HEAD"
# Push the current branch to the remote "origin", and set it to track
# the upstream branch
publish = "!git push -u origin $(git branch-name)"
#! /bin/bash
IPLIST="ips.txt"
while read IP; do
echo ""
echo "$IP"
whois "$IP" | grep descr
whois "$IP" | grep changed
dig -x "$IP" +short | head -1
@glamrock
glamrock / tweet_dumper.py
Created March 30, 2017 16:17 — forked from yanofsky/LICENSE
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #https://github.com/tweepy/tweepy
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
@glamrock
glamrock / etc - ganglia - gmond.conf
Last active March 6, 2017 22:36
ganglia default config files
/* This configuration is as close to 2.5.x default behavior as possible
The values closely match ./gmond/metric.h definitions in 2.5.x */
globals {
daemonize = yes
setuid = yes
user = ganglia
debug_level = 0
max_udp_msg_len = 1472
mute = no
deaf = no
# _____ _ _
#/ __ \ | | | |
#| / \/_ __ __ _| |__ __ _ _ __ _ __ | | ___
#| | | '__/ _` | '_ \ / _` | '_ \| '_ \| |/ _ \
#| \__/\ | | (_| | |_) | (_| | |_) | |_) | | __/
# \____/_| \__,_|_.__/ \__,_| .__/| .__/|_|\___|
# | | | |
# |_| |_|
#### BASICS
# __________ .__
# \______ \_______|__|____ _______
# | | _/\_ __ \ \__ \\_ __ \
# | | \ | | \/ |/ __ \| | \/
# |______ / |__| |__(____ /__|
# \/ \/
#
#### BASICS
(function(a) {
a.fn.swiftfilter = function(b) {
jQuery(this).each(function() {
jQuery(this)._swiftfilter()
})
};
a.fn._swiftfilter = function(l) {
l = a.extend(l, a(this).data());
var c = a.extend({
container: "html",
@glamrock
glamrock / tweet_sample.json
Created September 8, 2016 14:49 — forked from rmoff/tweet_sample.json
Twitter JSON sample
{"created_at":"Thu Jul 21 09:11:50 +0000 2016","id":756054063439982593,"id_str":"756054063439982593","text":"RT @Mojahedineng: #Iran #News Merkel says no one wants prolonged period of Brexit limbo https://t.co/zFb8Wl8V3q https://t.co/vY7rMeqVzx","source":"<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Mobile Web (M2)</a>","truncated":false,"in_reply_to_status_id":null,"in_reply_to_status_id_str":null,"in_reply_to_user_id":null,"in_reply_to_user_id_str":null,"in_reply_to_screen_name":null,"user":{"id":2395606770,"id_str":"2395606770","name":"Esmail Abobakr","screen_name":"Esmail_Abobakr","location":"City of London, England","url":"http://mojahedin.org","description":"Human rights","protected":false,"verified":false,"followers_count":512,"friends_count":356,"listed_count":25,"favourites_count":0,"statuses_count":22910,"created_at":"Tue Mar 18 04:30:09 +0000 2014","utc_offset":null,"time_zone":null,"geo_enabled":false,"lang":"en","contributors_enabled":false,"is_translator":false,"profile_background_col