Skip to content

Instantly share code, notes, and snippets.

View crsantos's full-sized avatar

Carlos Ricardo Santos crsantos

View GitHub Profile
@crsantos
crsantos / traktscrobbler
Created March 25, 2012 19:06
init.d daemon for Plex-Trakt scrobbler
#!/bin/bash
USER="CHANGE_NAME"
NAME=traktscrobbler
PIDFILE=/var/run/$NAME.pid
DAEMON=/usr/bin/python
SCRIPT=/CHANGE/PATH/TO/Plex-Trakt-Scrobbler/script.py
case "$1" in
start)
echo "Starting $NAME"
@crsantos
crsantos / build.sh
Created January 5, 2012 10:06
iOS Build Script
#!/bin/bash
# Bash script to generate a "Release" Build - Based on arrix.blogspot.com code
# - The file must lay on the same .xcodeproj folder
# - Project must be set up with "Debug" (with developer provisioning profiles)
# and "Release" (with distribution provisioning profiles)
# - Project build version will be upgraded with the current datetime and marketing version
# will be the same provided as the second parameter of the script: see USAGE.
#
# USAGE: sh build.sh AppName 0.1.1