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. |
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 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
setlocal tabstop=3 | |
setlocal softtabstop=3 | |
setlocal shiftwidth=3 | |
setlocal noexpandtab |
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=3 | |
setlocal softtabstop=3 | |
setlocal shiftwidth=3 | |
setlocal noexpandtab |
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=8 | |
setlocal softtabstop=8 | |
setlocal shiftwidth=8 | |
setlocal noexpandtab |
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
import re | |
import smtplib | |
import webbrowser | |
from email.mime.base import MIMEBase | |
from email.mime.multipart import MIMEMultipart | |
from email import encoders | |
########################### | |
to = '' | |
gmail_user = '' |
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
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', 'UA-XXXXXXX-1']); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); |