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
GIT_COMMITTER_DATE="`date`" git commit --amend --date "`date`" |
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
{ | |
"require": { | |
"guzzlehttp/guzzle": "~5.2" | |
} | |
} |
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 ruby | |
require 'mechanize' | |
require 'filecache' | |
cache = FileCache.new("data-usage", "/tmp", 60 * 30, 3) | |
unless cache.get('usage').nil? | |
puts cache.get('usage') | |
exit 0 |
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
find . -name '*.java' ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \; |
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
<?php | |
/* | |
* FILTER_VALIDATE_URL Validates value as URL (according to » http://www.faqs.org/rfcs/rfc2396) | |
* http://php.net/manual/en/filter.filters.validate.php | |
*/ | |
$check = filter_var('http://google.com/', FILTER_VALIDATE_URL); | |
var_dump($check); | |
// $check = string(18) "http://google.com/" |
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
{ | |
"require": | |
{ | |
"symfony/dom-crawler": "2.2.x-dev", | |
"symfony/css-selector": "2.2.x-dev" | |
} | |
} |
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
set :application, "symfony" | |
set :domain, "#{application}.yourdomain.com" | |
set :deploy_to, "/www/#{domain}" | |
set :app_path, "app" | |
set :user, "yourusername" | |
set :repository, "file:///local/path/to/project/repo" | |
set :scm, :git | |
set :deploy_via, :copy |
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
server { | |
listen 80; | |
server_name yourdomain.com; | |
root /www/yourdomain.com/current/web; | |
error_log /var/log/nginx/yourdomain.error.log; | |
access_log /var/log/nginx/yourdomain.access.log; | |
# strip app.php/ prefix if it is present |
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/lib/gromlist/gromlist.py 2012-11-12 11:36:55.697698407 +0000 | |
+++ gromlist.py 2012-11-12 11:41:32.703071996 +0000 | |
@@ -1,4 +1,4 @@ | |
-#!/usr/bin/env python | |
+#:!/usr/bin/env python | |
# -*- coding: UTF-8 -*- | |
### | |
# | |
@@ -1047,8 +1047,21 @@ | |
# Calculate the CRC of the files in the rom folder |
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
<?php | |
/* | |
* Linode Kernel Version alerter. | |
* | |
* Fetches a list of the available Linode kernels and alerts you if | |
* your currently running version is out of date. | |
* | |
* Crontab: * 23 * * php /path/to/this/script | |
* @author Gareth Jones | |
*/ |
OlderNewer