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
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \ | |
-I src/libezxml -DENABLE_FAAD \ | |
-I/usr/local/include -DENABLE_MAD -I/usr/local/include -DENABLE_ID3TAG -I/usr/local/Cellar/libao/1.1.0/include -c -o src/main.o src/main.c | |
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \ | |
-I src/libezxml -DENABLE_FAAD \ | |
-I/usr/local/include -DENABLE_MAD -I/usr/local/include -DENABLE_ID3TAG -I/usr/local/Cellar/libao/1.1.0/include -c -o src/player.o src/player.c | |
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \ | |
-I src/libezxml -DENABLE_FAAD \ | |
-I/usr/local/include -DENABLE_MAD -I/usr/local/include -DENABLE_ID3TAG -I/usr/local/Cellar/libao/1.1.0/include -c -o src/settings.o src/settings.c | |
c99 -O2 -DNDEBUG -I src/libpiano -I src/libwaitress \ |
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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import os | |
import urllib, urllib2 | |
import json | |
SEARCH_URL = "http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsSearch?entity=movie&term=" | |
SAVE_TO = "%s/Artwork/" % os.environ["HOME"] # Directory must exist | |
TITLES = [] # Optionally populate this with a list of titles for batch processing |
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 | |
# | |
# Wget's main Google calendar private ical file | |
# | |
# Created by: Graham van der Wielen | |
# Created on: 20100412 | |
### System Setup ### | |
CP="$(which cp)" | |
ECHO="$(which echo)" |
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
function pidCheck { | |
BASENAME=$(basename $0) | |
PIDFILE=/tmp/$(basename $0).pid | |
if [ -e $PIDFILE ]; then | |
PID=`cat $PIDFILE` | |
if kill -0 &>1 > /dev/null $PID; | |
then | |
echo "${BASENAME}: is already running, exiting..." | |
exit 1 | |
else |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ExtensionMethods | |
{ | |
public static class Extensions | |
{ | |
#region DateTime |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
from fabric.api import * | |
""" | |
Base configuration | |
""" | |
env.project_name = '$(project)' | |
env.database_password = '$(db_password)' | |
env.site_media_prefix = "site_media" | |
env.admin_media_prefix = "admin_media" | |
env.newsapps_media_prefix = "na_media" |
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
var mongoose = require('./db-connect'), | |
Schema = mongoose.Schema, | |
ObjectId = Schema.ObjectId, | |
uuid = require('node-uuid'), | |
Validator = require('validator').Validator, | |
val = new Validator(), | |
bcrypt = require('bcrypt'); | |
Validator.prototype.error = function(msg) { return false; }; |
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
var mongoose = require('./db-connect'), | |
Schema = mongoose.Schema, | |
ObjectId = Schema.ObjectId, | |
uuid = require('node-uuid'), | |
Validator = require('validator').Validator, | |
val = new Validator(), | |
bcrypt = require('bcrypt'); | |
Validator.prototype.error = function(msg) { return false; }; |
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
// Improvements to file uploads with Zombie. | |
// | |
// Just start the Sinatra server below and run this file with node. | |
// Depending on the server used with Sinatra, it will fail upfront or forward | |
// a bad request to the app. The source code in zombie is in the link below | |
// (you will need Zombie from git, you can check it out and use `npm link`): | |
// | |
// https://github.com/assaf/zombie/blob/master/src/zombie/history.coffee#L93 | |
// | |
var zombie = require("zombie"); |