This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find ~/Dropbox/Apps/Drafts -maxdepth 1 -mindepth 1 -not -name Journal.txt -print0 | xargs -0 mv -t ~/Dropbox/Notes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
su user -c "/home/user/.dropbox-dist/dropboxd &" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DRAFTS_DIR=~/Dropbox/Apps/Drafts/* | |
NOTES_DIR=~/Dropbox/Notes | |
for file in $DRAFTS_DIR | |
do | |
FILENAME=$(basename "$file") | |
if [ "$FILENAME" != "Journal.txt" ]; then | |
if [ -f $NOTES_DIR/"$FILENAME" ]; then | |
echo "" >> $NOTES_DIR/"$FILENAME" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setlocal tabstop=2 | |
setlocal softtabstop=2 | |
setlocal shiftwidth=2 | |
setlocal textwidth=90 | |
setlocal smarttab | |
setlocal expandtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -f /etc/yum.repos.d/epel.repo ] | |
then | |
wget http://mirror.es.its.nyu.edu/epel/5/i386/epel-release-5-4.noarch.rpm | |
yum localinstall epel-release-5-4.noarch.rpm | |
rm -f epel-release-5-4.noarch.rpm | |
sed -i "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A modification of Marco Arment's script at | |
# | |
# https://gist.github.com/3783146 | |
# | |
# It's intended to be run once a day as a cron job. The main | |
# differences between it and Marco's script are: | |
# | |
# 1. It checks two feeds instead of just one. |
OlderNewer