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 | |
*/ |
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
diff --git a/audio/audiostream.cpp b/audio/audiostream.cpp | |
index 1c5c435..32b38ef 100644 | |
--- a/audio/audiostream.cpp | |
+++ b/audio/audiostream.cpp | |
@@ -33,6 +33,7 @@ | |
#include "audio/decoders/quicktime.h" | |
#include "audio/decoders/raw.h" | |
#include "audio/decoders/vorbis.h" | |
+#include "audio/decoders/cdda.h" | |
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
String.prototype.replaceAt=function(index, char ) { return this.substr(0, index) + char + this.substr(index+char.length); } | |
String.prototype.replace2At=function(index, char1, char2 ) { return this.substr(0, index) + char1 + char2 + this.substr(index+char1.length+char2.length); } | |
function scram29c3run() { | |
var elem = document.getElementById( 'header-29c3-scramble' ); | |
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); } else | |
{ setTimeout( scram29c3run, 500 ); } | |
elem = document.getElementById( 'header-29c3-scramble2' ); | |
if ( elem ) { var scram = new scram29c3( elem ); scram.run(); } | |
} |
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
defaults write org.videolan.vlc NSRecentDocumentsLimit 0 | |
defaults delete org.videolan.vlc.LSSharedFileList RecentDocuments | |
defaults write org.videolan.vlc.LSSharedFileList RecentDocuments -dict-add MaxAmount 0 | |
defaults write com.apple.QuickTimePlayerX NSRecentDocumentsLimit 0 | |
defaults delete com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments | |
defaults write com.apple.QuickTimePlayerX.LSSharedFileList RecentDocuments -dict-add MaxAmount 0 |
OlderNewer