Skip to content

Instantly share code, notes, and snippets.

View Airr's full-sized avatar
🎯
Focusing

Airr

🎯
Focusing
View GitHub Profile
@Airr
Airr / instructions.txt
Created March 30, 2013 06:02
Set up ssl with cheapssl and apache2 on ubuntu 12.04
ssl with cheapssl and apache2
-Purchase a ssl certificate
sudo a2enmod ssl
sudo /etc/init.d/apache2 restart
sudo mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
******EDIT THE LINE BELOW WITH DOMAIN******
sudo openssl req -new -nodes -newkey rsa:2048 -keyout MYDOMAIN.key -out MYDOMAIN.csr
@Airr
Airr / 10-synaptics.conf
Created March 30, 2013 05:59
Sane Synaptics Touchpad configuration. Say goodbye to jumpy, bumpy and inaccurate cursor movement. Put this in /etc/X11/xorg.conf.d/10-synaptics.conf
Section "InputClass"
Identifier "touchpad catchall"
Driver "synaptics"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Option "ClickPad" "1"
Option "TapButton1" "1"
Option "TapButton2" "3"
Option "TapButton3" "2"
Option "ClickFinger1" "1"
@Airr
Airr / sublime-sync-dropbox.txt
Created March 30, 2013 05:53 — forked from ricardodantas/sublime-sync-dropbox.txt
Sync Sublime Text 2 with Dropbox
* Quit Sublime Text 2 (so you don’t accidentally change any settings)
* In your Dropbox folder (usually at ~/Dropbox/), add a folder called Sublime Text 2
* Open the folder with your ST2 settings (should be ~/Library/Application Support/Sublime Text 2/)
* Copy the following 3 folders into ~/Dropbox/Sublime Text 2/: Installed Packages, Packages, and Pristine Packages
* Rename the original 3 folders in ~/Library/Application Support/Sublime Text 2/ to something like Installed Packages-20110119,
#!/usr/bin/python
import fcntl
import optparse
import os
import progressbar
import re
import select
import shlex
import subprocess
@Airr
Airr / reset.sh
Created March 29, 2013 20:02 — forked from reedobrien/reset.sh
## fix "Waiting for other installations to complete." on OSX 10.6 10.7
## sometimes a failed installation leaves us unable to
## perform an installation. The following fixes it for me
sudo rm /private/var/db/mds/system/mds.install.lock
sudo reboot