View pip.conf
format = columns
View kitty-colors.reg
Windows Registry Editor Version 5.00
# Configuration file for ipython.
c = get_config()
# InteractiveShellApp configuration
# A Mixin for applications that start InteractiveShell instances.
View secrypt.php
- You may copy and redistribute this file under the conditions:
1. The file is credited to lucb1e
2. The file remains unmodified, including this licence
- You may modify and redistribute this file under these conditions:
(This includes porting to another language.)
import urllib2
import base64
from django.utils import simplejson
def get_file_contents(user, repo, path):
url = "" % (user, repo, path)
response = urllib2.urlopen(url)
except urllib2.HTTPError:
View gist:2954956
create database DATABASENAME;
grant usage on *.* to USERNAME@localhost identified by 'PASSWORD';
grant all privileges on DATABASENAME.* to USERNAME@localhost ;
View screenrc
startup_message off
shell "/bin/bash"
caption always "%{= kB}%-Lw%{=s kB}%50>%n%f* %t %{-}%+Lw%<"
#!/usr/bin/env python
# Rerformat comments for transition from Vanilla1 to Vanilla 2
import re
import MySQLdb
from BeautifulSoup import BeautifulSoup
connection = MySQLdb.connect(user='root',db='newforum', use_unicode=True)
select_cursor = connection.cursor()
View bash_aliases
alias apt-search="apt-cache search --names-only"
alias greppy='find ! -path "*migrations*" -name "*.py" | xargs grep'
alias grephtml='find -name "*.html" | xargs grep'
alias grepjs='find -name "*.js" | xargs grep'
alias grepcss='find -name "*.css" | xargs grep'
alias grepall='find ! -path "*migrations*" -and ! -name "*.pyc" | xargs grep'
alias grepregex='grep -rnE'
alias rmpyc='find -name "*.pyc" -delete'
alias runserver='./ runserver_plus'
alias gittag='git tag | sort -g'
View gist:1143791
$ cut -d ' ' -f7 /var/log/apache2/access.log > urls.txt
$ siege -c<concurreny rate> -b -f urls.txt