Skip to content

Instantly share code, notes, and snippets.

View thomasbilk's full-sized avatar
💭
Git is for gits

Thomas Bilk thomasbilk

💭
Git is for gits
View GitHub Profile
@thomasbilk
thomasbilk / infile.csv
Created March 7, 2012 14:01
PowerShell Script for Generating Active Directory User Accounts
firstname lastname email username
Bill Gates gates@microsoft.com bill.gates
Steve Ballmer ballmer@microsoft.com steve.ballmer
@thomasbilk
thomasbilk / database_size.sql
Last active December 31, 2021 22:09
Database Sizes
-- PostgreSql
SELECT
pg_database.datname AS "Database Name",
pg_database_size(pg_database.datname) / 1024.0 / 1024.0 AS "Database Size (MB)"
FROM pg_database;
-- MySql
SELECT
table_schema "Database Name",
sum( data_length + index_length ) / 1024 / 1024 "Database Size (MB)"
@thomasbilk
thomasbilk / .vimrc
Created January 3, 2012 13:51
vimrc file
set enc=utf-8
" set fencs=utf8
set ruler
set number
set autoindent
set expandtab
set incsearch
set shiftwidth=4
set tabstop=4
set showcmd
@thomasbilk
thomasbilk / gunicorn_lighttpd.conf
Created August 8, 2010 16:54
gunicorn lighttpd conf file
server.modules = (
"mod_access",
"mod_alias",
"mod_accesslog",
"mod_extforward",
"mod_rewrite",
#"mod_fastcgi",
"mod_proxy",
"mod_redirect" )