Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View btobolaski's full-sized avatar

Brendan Tobolaski btobolaski

View GitHub Profile

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@btobolaski
btobolaski / ghost.conf
Created March 7, 2014 05:49
An Upstart script for starting and keeping a ghost blog running.
description "Ghost Blog"
console output
start on runlevel [2345]
stop on shutdown
respawn
respawn limit 99 5
script
@btobolaski
btobolaski / 001-owncloud.conf
Created March 19, 2014 05:22
Docker based install of Owncloud. It uses persistent data using a mounted directory.
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/owncloud
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/owncloud>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
@btobolaski
btobolaski / keybase.md
Created March 24, 2014 18:44
keybase.md

Keybase proof

I hereby claim:

  • I am btobolaski on github.
  • I am btobolaski (https://keybase.io/btobolaski) on keybase.
  • I have a public key whose fingerprint is E371 7137 BABC 3062 333B 95FC DFEF C102 ED49 5DCC

To claim this, I am signing this object:

@btobolaski
btobolaski / LaunchAgent.template.plist
Created September 18, 2012 18:27
A simple template for launching a script on user login. Fill in name.of.LaunchAgent with the name of the launch agent(ex. com.example.script) and the fill in the location of the script into location/of/scipt
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0/EN" "http://www.apple.com/DTDs/PropertList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>name.of.LaunchAgent</string>
<key>ProgramArguments</key>
<array>
<string>location/of/script</string>
</array>
@btobolaski
btobolaski / gist:3789194
Created September 26, 2012 17:01
wp-svbtle redirect if
if ($request_uri ~* "(/wp-admin/|/wp-svbtle/|/xmlrpc.php|/wp-(app|cron|login|register|mail).php|wp-.*.php|index.php|wp-comments-popup.php|wp-links-opml.php|wp-locations.php)") { set $cache_uri "no cache"; }
@btobolaski
btobolaski / gist:3789200
Created September 26, 2012 17:02
wp-svtle nginx send script to fastcgi
location /wp-svbtle { fastcgi_index wp-svbtle.php; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; }
@btobolaski
btobolaski / crossover.sh
Created September 28, 2012 19:37
Installs dependencies for running Microsoft office 2010 under crossover 11
#!/bin/bash
yum install isdn4k-utils.i686 mesa-libGLU.i686 libgphoto2.i686 gsm-devel.i686 hal-libs.i686 lcms-libs.i686 libtiff.i686 libv4l.i686 libpng.i686
libxslt.i686 cups-libs.i686 fontconfig.i686 openldap.i686 libXcomposite.i686 libXcursor.i686 libXinerama.i686 openssl-devel.i686 && \
yum --enablerepo=epel install openal-soft.i686 sane-backends-libs.i686
# Fix an issue with naming, on RHEL, libtiff.so.4 is libtiff.so.3
ln -s /usr/lib/libtiff.so.3 /usr/lib/libtiff.so.4
@btobolaski
btobolaski / gist:3815976
Created October 2, 2012 03:21
This script copies the files from my Drafts app folder to my notes folder
#!/bin/bash
find ~/Dropbox/Apps/Drafts -maxdepth 1 -mindepth 1 -not -name Journal.txt -print0 | xargs -0 mv -t ~/Dropbox/Notes
@btobolaski
btobolaski / dropbox.sh
Created October 9, 2012 14:49
Start dropbox on boot on a linux server as user. Useful for linux machines that don't have a gui.
#!/bin/bash
su user -c "/home/user/.dropbox-dist/dropboxd &"