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
<?php | |
include("lib/geoipcity.inc"); | |
include("lib/geoipregionvars.php"); | |
$ip = $_SERVER["REMOTE_ADDR"]; | |
$geo = geoip_open("/home/mattps/dontforgetyourumbrella.com/lib/GeoLiteCity.dat", GEOIP_STANDARD); | |
$record = geoip_record_by_addr($geo, $ip); | |
$city = $record->city; |
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 apt-get update | |
sudo apt-get install build-essential linux-headers-$(uname -r) | |
sudo apt-get install virtualbox-ose-guest-x11 |
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
<?php | |
$zipcode = $_GET[zipcode]; | |
$url = "http://maps.googleapis.com/maps/api/geocode/xml?sensor=false&address=" . $zipcode; | |
$geocode = simplexml_load_file($url); | |
$city = $geocode->result->address_component[1]->long_name; | |
for ($i = 2; $i < 6; $i++) | |
{ | |
if ($geocode->result->address_component[$i]->type == "administrative_area_level_1") | |
{ |
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
Options +FollowSymLinks | |
Options +Indexes | |
RewriteEngine on | |
RewriteCond %{SCRIPT_FILENAME} !-d | |
RewriteRule ^([^\.]+)$ $1.php [NC,L] |
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
result = urlfetch.fetch( | |
"http://yourserver.com/page/init.php, | |
headers = { "Authorization": | |
"Basic %s" % base64.encodestring("username:password")[:-1] | |
}); |
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
Allow from all | |
Satisfy any |
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
<?php | |
require_once 'library/limonade.php'; | |
dispatch('/', 'hello'); | |
function hello() | |
{ | |
return 'Hello world!'; | |
} |
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
a:9:{i:0;s:19:"akismet/akismet.php";i:1;s:21:"exec-php/exec-php.php";i:2;s:43:"google-analyticator/google-analyticator.php";i:3;s:36:"google-sitemap-generator/sitemap.php";i:4;s:30:"kb-robotstxt/kb-robots-txt.php";i:5;s:39:"syntaxhighlighter/syntaxhighlighter.php";i:6;s:37:"twitter-tools/twitter-tools-bitly.php";i:7;s:31:"twitter-tools/twitter-tools.php";i:8;s:40:"wptap-mobile-detector/mobiledetector.php";} |
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
def ReadSlow(value): | |
for c in list(value): | |
output += str(c + ", ") | |
return output.strip() |
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
oldhead=$1 | |
newhead=$2 | |
refname=$3 |
OlderNewer