Skip to content

Instantly share code, notes, and snippets.

View Merovex's full-sized avatar

Ben W Merovex

  • Gainfully Employed
  • In a hidden bunker under a non-descript building
  • 11:29 (UTC -04:00)
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>bcwi.updateWordCount</string>
<key>UserName</key>
<string>bwilson</string>
<key>WorkingDirectory</key>
<string>/path/to/project.scriv/</string>
#!/bin/sh
# 0 */2 * * * /path/to/gitAutoPush.sh >> /path/to/auto-push.log 2>&1
DATE=`date -u`
echo "==== $DATE ===="
cd /path/to/project.scriv/
git add . -A
git commit -am "Automated Snapshot - $DATE";
git push origin master
@Merovex
Merovex / ScrivenerProgress Crontab
Last active December 26, 2015 19:11
Parse a Scrivener Project for daily progress
# <PreviousSession Words="1" Characters="0" Date="2015-12-25 10:05:50 -0500"></PreviousSession>
59 23 * * * /usr/bin/grep PreviousSession /path/to/project.scriv/*.scrivx >> /path/to/writing.log
@Merovex
Merovex / README.md
Last active August 29, 2015 14:13 — forked from magnetikonline/README.md

Create favicon.ico from PNG source using ImageMagick

Using a source PNG image with dimensions of 144x144, which will be our apple-touch-icon used for Apple iOS and tablet devices.

$ convert -resize 32x32 -colors 256 favicon.png favicon.ico

Markup for HTML page <head> area: