Skip to content

Instantly share code, notes, and snippets.

View btobolaski's full-sized avatar

Brendan Tobolaski btobolaski

  • Syllable
  • West Fargo, ND
  • 04:20 (UTC -05:00)
View GitHub Profile
@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 / 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: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 / 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 / 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>