Skip to content

Instantly share code, notes, and snippets.

View lucasdupin's full-sized avatar

Lucas Dupin lucasdupin

View GitHub Profile
@lucasdupin
lucasdupin / gist:4686145
Created January 31, 2013 20:27
Daemon to change a facebook page's cover photo.
require 'net/http'
require 'net/https'
require 'rubygems'
require 'daemons'
PIC_IDS = %w(404626466293247 404626476293246 404626472959913 404626492959911) #Pics to change
PAGE_TOKEN = 'TOKEN_HERE'
PAGE_ID = 'PAGE_ID_HERE'
uri = URI("https://graph.facebook.com/#{PAGE_ID}")
@lucasdupin
lucasdupin / unicorn.rb
Created March 28, 2011 17:18
Default unicorn.rb
basepath = File.expand_path File.join(File.dirname(__FILE__), '..')
worker_processes 2
working_directory basepath
# This loads the application in the master process before forking
# worker processes
# Read more about it here:
# http://unicorn.bogomips.org/Unicorn/Configurator.html
preload_app true
#Requires
%w(rubygems rake webrick net/http fileutils daemons).each {|lib| require lib}
@config = {
#Files to compile
:targets => {
"source/classes/spfc_main.as" => "public/spfc_main.swf",
"source/classes/spfc_intro.as" => "public/spfc_intro.swf",
"source/classes/spfc_loader.as" => "public/spfc_loader.swf",
"source/classes/test.as" => "public/test.swf"