This file contains hidden or 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
config.gem 'digitalpardoe-rflickr', :lib => 'flickr', :source => 'http://gems.github.com' |
This file contains hidden or 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
PhotographyAction.clear_cache | |
redirect_to :action => 'index' |
This file contains hidden or 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
Session.destroy_all("created_at" < (Time.now - 1.day)) |
This file contains hidden or 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
on gui_scripting_status() | |
tell application "System Events" | |
set ui_enabled to UI elements enabled | |
end tell | |
if ui_enabled is false then | |
tell application "System Preferences" | |
activate | |
set current pane to pane id "com.apple.preference.universalaccess" | |
display dialog "The GUI scripting architecture of Mac OS X is currently disabled." & return & return & "To activate GUI Scripting select the checkbox \"Enable access for assistive devices\" in the Universal Access preference pane." with icon 1 buttons {"Okay"} default button 1 | |
end tell |
This file contains hidden or 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
--- src/jsprf.c.orig 2009-07-26 12:32:01.000000000 -0700 | |
+++ src/jsprf.c 2009-07-26 12:33:12.000000000 -0700 | |
@@ -58,6 +58,8 @@ | |
*/ | |
#ifdef HAVE_VA_COPY | |
#define VARARGS_ASSIGN(foo, bar) VA_COPY(foo,bar) | |
+#elif defined(va_copy) | |
+#define VARARGS_ASSIGN(foo, bar) va_copy(foo,bar) | |
#elif defined(HAVE_VA_LIST_AS_ARRAY) | |
#define VARARGS_ASSIGN(foo, bar) foo[0] = bar[0] |
This file contains hidden or 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 | |
# | |
# Automatically sets the build number for a target in Xcode based | |
# on either the Subversion revision or Git hash depending on the | |
# version control system being used | |
# | |
# Simply add this script as a 'Run Script' build phase for any | |
# target in your project | |
# |
This file contains hidden or 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
git clone git://github.com/sivel/speedtest-cli.git speedtest-cli |
This file contains hidden or 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
sudo usermod -aG git www-data |
This file contains hidden or 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
if true { | |
notify :method "mailto" :options ["[email protected]"] :message "/ $subject$ /"; | |
} |
This file contains hidden or 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
chown $(stat -f%u:%g "$SRCDIR") "$DSTDIR" | |
chmod $(stat -f%Mp%Lp "$SRCDIR") "$DSTDIR" | |
(ls -lde "$SRCDIR" | tail +2 | sed 's/^ [0-9]*: //'; echo) | chmod -E "$DSTDIR" |