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
11:37 ChameleonSix: ah cya later | |
11:37 ChameleonSix has left IRC (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client) | |
11:37 TheKiwi has left IRC (Ping timeout: 250 seconds) | |
11:37 l1x has left IRC (Ping timeout: 250 seconds) | |
11:37 zeller has left IRC (Ping timeout: 250 seconds) | |
11:37 pygirl24 has left IRC (Ping timeout: 250 seconds) | |
11:37 sublee has left IRC (Ping timeout: 252 seconds) | |
11:37 Somnius has left IRC (Ping timeout: 252 seconds) | |
11:37 merlinsbrain has left IRC (Ping timeout: 252 seconds) | |
11:37 topecnz has left IRC (Ping timeout: 252 seconds) |
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
setTimeout(function() { | |
// Set arbitrary delay to ensure addthis loads up | |
addthis.addEventListener('addthis.menu.open', function(evt) { | |
alert("pls work"); | |
}); | |
}, 10000); |
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
<VirtualHost *:80> | |
RewriteEngine On | |
RewriteMap lowercase int:tolower | |
# if already rewitten and we have the right path, stop right here | |
#RewriteCond /var/www/vhosts/${lowercase:%{SERVER_NAME}/htdocs} !-d | |
#RewriteRule ^/(.*)$ /var/www/vhosts/_default/htdocs/$1 [L,E=VHOST_ROOT:/var/www/vhosts/_default/htdocs] | |
RewriteRule ^(/var/www/vhosts/[^/]+/.*)$ $1 |
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
_gaq.push( | |
['test', 'test'] | |
['fucking', 'killme'] | |
); |
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
<!-- | |
LEAKED SOURCE FROM http://www.redditblog.com/2014/08/blog-post-471.html | |
--> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html dir='ltr' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'> | |
<head> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> | |
<script type="text/javascript">(function() { var b=window,f="chrome",g="tick",k="jstiming";(function(){function d(a){this.t={};this.tick=function(a,d,c){var e=void 0!=c?c:(new Date).getTime();this.t[a]=[e,d];if(void 0==c)try{b.console.timeStamp("CSI/"+a)}catch(h){}};this[g]("start",null,a)}var a;b.performance&&(a=b.performance.timing);var n=a?new d(a.responseStart):new d;b.jstiming={Timer:d,load:n};if(a){var c=a.navigationStart,h=a.responseStart;0<c&&h>=c&&(b[k].srt=h-c)}if(a){var e=b[k].load;0<c&&h>=c&&(e[g]("_wtsrt",void 0,c),e[g]("wtsrt_","_wtsrt",h),e[ |
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 | |
// simple technique to remove bugs from your code | |
// example buggy code | |
$your_code = "<html><Oh man>i hope i don't have any American cockroaches in my code</Oh man></html>"; | |
$list_of_bugs = array('American cockroach', 'Ants', 'Aphids', 'Aphids', 'Asian paper wasp', | |
'Asian paper wasp nest', 'Assassin bug', 'Australian bag moth', 'Australian bag moth pupa', | |
'Avondale spider', 'Backswimmer', 'Bamboo moth', 'Banana moth', 'Banana moth pupa', |
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
@media (min-width: 600px) { | |
body { | |
color: red; | |
border: red 2px solid; | |
} | |
} |
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 | |
$query = new EntityFieldQuery(); | |
$result = $query->entityCondition('entity_type', 'node') | |
->propertyCondition('type', 'news') | |
->execute(); | |
$item_nids = array_keys($result['node']); | |
$items = entity_load('node', $item_nids); |
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
# | |
# Use name-based virtual hosting. | |
# | |
NameVirtualHost *:80 | |
<VirtualHost *:80> | |
RewriteEngine On | |
RewriteMap lowercase int:tolower | |
# If already rewitten and we have the right path, stop right here |
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 'fileutils' | |
require 'optparse' | |
require 'sqlite3' | |
options = { } | |
OptionParser.new do |opts| | |
opts.banner = "Sup search" |
NewerOlder