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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><style type="text/css"> | |
html, body, #map_canvas { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
} | |
</style> | |
<script type="text/javascript" src="//maps.googleapis.com/maps/api/js?v=3.6&sensor=false&client=google-fusiontables"> | |
</script> |
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
UPDATE users SET pass = md5('mypasswordchanged2012') WHERE uid > 1; | |
UPDATE users SET mail = concat('myaddr+', replace(mail, '@', '_'), '@testdomain.org') WHERE uid <> 0 AND instr(mail, '@testdomain.org') = 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
/*****************************************************************************\ | |
* Batch Spreadsheet geocode find county * | |
* Author: Alan Christopher Thomas * | |
* http://alanchristopherthomas.com/ * | |
\*****************************************************************************/ | |
//Pull counties (administrative_area_level_2) from Google geocoder | |
function onOpen() { | |
// Add the Geocode menu | |
SpreadsheetApp.getActiveSpreadsheet().addMenu("Geocoder", [{ |
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 | |
$variable = fopen('http://google.com/', "rb"); | |
echo stream_get_contents($variable); | |
?> |
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
//$casper awardspdf-casper.js [startpath] | |
var casper = require('casper').create(); | |
var _adminUser = ''; //drupal user | |
var _adminPass = ''; //drupal pass | |
var _baseURL = 'http://localhost:8080'; //no slash | |
var _loginPath = '/user'; |
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
https://[Pipermail_server]/mailman/private/[listname].mbox/[listname].mbox |
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
#!/bin/sh | |
# | |
# Log commit messages as a 'highlight' in RescueTime Premium | |
# | |
# To enable this hook: | |
# | |
# 1. Place this file in your project's .git/hooks directory and make sure its name is "post-commit". | |
# 2. Make sure it has executable permissions (chmod +x post-commit) | |
# 3. All commits will be automatically logged as highlight events. | |
# |
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
pv dump.sql.gz | gzcat | mysql -uroot -p dbname |
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
/** | |
* Perform a Network Service Lookup, using StatDNS API. | |
* | |
* @param {"google.com"} dn A well-formed domain name to resolve. | |
* @return {String} Resolved IP address | |
* @customfunction | |
*/ | |
function NSLookup(dn) { | |
// From gist.github.com/mogsdad/ece531531e0ef5dc355d |
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 | |
//$server_name = $_SERVER["SERVER_NAME"] | |
$server_name = "3b38a450c-92602-463c8-5581855-84c64c57741f--pr-389.probo.build"; | |
// Get parts of the domain to use subdomain later. | |
$domain_parts = explode('.',$server_name); | |
OlderNewer