Skip to content

Instantly share code, notes, and snippets.

View wbond's full-sized avatar

Will Bond wbond

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wbond on github.
  • I am wbond (https://keybase.io/wbond) on keybase.
  • I have a public key whose fingerprint is 47D0 CD56 BA71 7820 6AC7 3CDB C508 396D 0B85 524E

To claim this, I am signing this object:

[global]
connect timeout = 2
@wbond
wbond / gist:d83e8e41f5ae2d51cc11
Created June 17, 2014 21:27
decrypt an encrypted procedure
CREATE PROCEDURE dbo.sp__procedure$decrypt
(@procedure sysname = NULL, @revfl int = 1)
AS
SET NOCOUNT ON
IF @revfl = 1
BEGIN
PRINT 'CAUTION: THIS PROCEDURE DELETES AND REBUILDS THE ORIGINAL STORED
PROCEDURE.'
PRINT ' MAKE A BACKUP OF YOUR DATABASE BEFORE RUNNING THIS PROCEDURE.'
import logging
import http.client as http_client
http_client.HTTPConnection.debuglevel = 1
logging.basicConfig()
logging.getLogger().setLevel(logging.DEBUG)
requests_log = logging.getLogger("requests.packages.urllib3")
requests_log.setLevel(logging.DEBUG)
requests_log.propagate = True
@wbond
wbond / fc-15_lenovo_t510.txt
Created July 6, 2011 03:50
Fedora Core 15 on a Lenovo T510
Add rpmfusion repo - install akmod-nvidia rpm
Add VirtualBox repo - install VirtualBox-OSE
Get msttfcorefonts
Add chrome repo - install google-chrome
Install AdBlock chrome extension and Adwaita theme, add delicious bookmarklet
Git clone wbond/nvidiabl and run dkms-install
Install stiler or quicktile for window management
Setup chrome app shortcuts and customize the StartupWMClass to be the domain name so gnome-shell handles app management
Install packages: subversion, git-core, mercurial, gnome-shell-extensions-alternative-status-menu, gnome-shell-extension-remove-accessibility-icon, gnome-tweak-tool, gconf-editor, remmina, remmina-plugins-vnc, remmina-plugins-rdp
Install SSH keys
@wbond
wbond / gist:1338771
Created November 4, 2011 06:14
Sublime SFTP Upload via Python
import sublime
sublime.active_window().run_command('sftp_upload_file', {'paths': ['/path/to/file']})
@wbond
wbond / gist:1358295
Created November 11, 2011 15:38
FC16 Notes
sudo -s
yum install nano
nano /etc/selinux/config # disable
reboot
# clean dock
sudo -s
yum update
@wbond
wbond / gist:1387749
Created November 23, 2011 02:32
Got sick of the terrible handling of application shortcuts by window managers, so here are some rough steps to build a custom version of Chromium that works with Gnome Shell on Gnome 3 for Fedora Core 16
# Based on:
# http://hacktux.com/fedora/source/rpm
# http://fedoraproject.org/wiki/Chromium
# http://codereview.chromium.org/7562022/patch/1/2
# as root
cd /etc/yum.repos.d/
wget http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-chromium-stable.repo
yum -y install yum-utils rpmdevtools elfutils-libeld-devel libXt-devel
exit
@wbond
wbond / gist:1645353
Created January 20, 2012 04:59
Compile _ssl.so
# Fedora
yum install make automake gcc gcc-c++ openssl-devel
# Ubuntu
apt-get install build-essential libssl-dev
# Both
curl -sS http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2 > Python-2.6.6.tar.bz2
tar xvfj Python-2.6.6.tar.bz2
cd Python-2.6.6
Packages/User/Preferences.sublime-settings
{
"color_scheme": "Packages/Color Scheme - Default/Sunburst.tmTheme",
"font_size": 14.0
}
Packages/User/Default.sublime-commands
[
{
"caption": "CSS rules compact",