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 | |
//$first_run = TRUE; // fetch all shared items from Google Reader on the first run | |
$id = 'YOUR_GOOGLE_ID_NUMBER'; | |
$delicious = array( | |
'user' =>'YOUR_DELICIOUS_USERNAME', | |
'password' => 'YOUR_DELICIOUS_PASSWORD', | |
); |
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 | |
$url = $_GET['url']; | |
$cookie = $_GET['cookie']; | |
$parts = parse_url($url); | |
$parts['user'] = $auth[$parts['host']]['user']; | |
$parts['pass'] = $auth[$parts['host']]['pass']; |
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> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
<title>Title</title> | |
<link rel="stylesheet" href="style.css"/> | |
<style></style> | |
<script src="script.js"></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
// Enable PHP filter module. | |
// Create a new node with this content. | |
// In Admin > Site Configuration > Error Reporting, set the default 403 page to this node. | |
Access to this page is restricted, please <?php print l(t('sign in'), 'user/login', array('query' => 'destination='. drupal_urlencode($_REQUEST['q']), 'absolute' => TRUE)); ?>. |
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/php | |
<?php | |
$in = fopen('php://STDIN','r'); | |
// report our settings before entering the main query loop: | |
send_reply(get_settings()); | |
// main loop: wait for a query, try and find match and reply. | |
while (!feof($in)){ |
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/php | |
<?php | |
define('AWSACCESSID', '1SVFNCKVJ7JWK2NPG002'); | |
$in = fopen('php://STDIN','r'); | |
// report our settings before entering the main query loop: | |
send_reply(get_settings()); |
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
o conf prerequisites_policy follow | |
o conf make_install_make_command 'sudo make' | |
o conf mbuild_install_build_command 'sudo ./Build' | |
o conf commit |
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
cpan | |
install Text::NSP | |
#install Text::SenseClusters | |
nohup huge-count.pl dest-dir source-dir & |
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 | |
// http://search.cpan.org/dist/WWW-WebStore-TinyURL/ | |
// http://asserttrue.blogspot.com/2009/02/data-urls-to-tinyurls-and-vice-versa.html | |
$file = $argv[1]; | |
print "Posting...\n"; | |
$tinyurl = post_data($file); | |
print $tinyurl . "\n"; |
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 | |
$response = file_get_contents('http://reflect.ws/ReflectProxy?' . http_build_query(array('url' => $url))); | |
if (strpos($response, 'http://reflect.ws/Reflection') === 0) | |
system(sprintf('open %s', escapeshellarg(trim($response)))); | |
else | |
exit(sprintf("Error: %s\n", $response)); |
OlderNewer