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
#!/usr/bin/perl | |
$re1='.*?'; # Non-greedy match on filler | |
$re2='(?:\\/[\\w\\.\\-]+)+'; # Uninteresting: unixpath | |
$re3='.*?'; # Non-greedy match on filler | |
$re4='((?:\\/[\\w\\.\\-]+)+_o.jpg)'; # Unix Path 1 | |
$re=$re1.$re2.$re3.$re4; | |
while (<STDIN>) { |
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
#!/usr/bin/perl | |
#Simple Perl script to save me from having to memorise the parameters. | |
#Archives a whole website. | |
die("Usage: archive.pl \"URL(s)\" [wait]\n") unless ($ARGV[0]); | |
my $waitTime = 1; | |
$waitTime = $ARGV[1] if ($ARGV[1]); | |
system("wget --mirror --page-requisites --continue --convert-links --user-agent=\"\" -e robots=off --wait $waitTime $ARGV[0]"); |
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 | |
$depth=$_GET['depth']; | |
$numurls=$_GET['numurls']; | |
$code =$_GET['code']; | |
if (!isset($numurls)) { | |
$numurls=100; | |
} | |
if (!isset($depth)) { | |
$depth=2; |
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
#!/bin/sh | |
LOCALNET="10.0.0.0/255.255.255.0" | |
iptables -F | |
iptables -X | |
iptables -F -t nat | |
iptables -X -t nat | |
# setting default policy | |
iptables -P INPUT DROP | |
iptables -P OUTPUT ACCEPT | |
iptables -P FORWARD ACCEPT |
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 | |
error_reporting(0); | |
header("Content-type: text/html; charset=utf-8"); | |
require_once '../sdk.class.php'; | |
$ec2 = new AmazonEC2(); | |
$response = $ec2->describe_regions(); | |
foreach ($response->body->regionInfo->item as $item) { | |
$region_endpoint = (string) $item->regionEndpoint; | |
$region_name = (string) $item->regionName; | |
$ec2->set_hostname($region_endpoint); |
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
#!/usr/bin/php | |
<?php | |
if (empty($argv[1])) { | |
print ("usage: $argv[0] <arg1> <arg2> ...\n"); | |
print (" Args: machine_name AMI availability_zone instance_size key_pair machine_type_tag deployment_tag security_group\n"); | |
print (" EXAMPLE: test-99 ami-a9559ec0 us-east-1a m1.small private-key webserver temp webserver\n"); | |
print (" EXAMPLE: test-99 ami-bba4fbfe us-west-1a m1.small private-key worker temp internal\n"); | |
print ("\n"); | |
print (" NOTE: WORKS IN EAST AND WEST ONLY!!\n"); | |
exit(); |
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
Yes, it's true. I'm moving on. Thanks for all of the kind words, everyone! I feel that working at Gnip has | |
been the best place that I've ever worked and I'm sad to leave. I made a bunch of good friends during my stay | |
here and I'd love it if people keep in touch. | |
As for my new gig, I'm sure that everyone has heard me talk about my love for the sea. I've been accepted into | |
this season's episode of Whale Wars on Animal Planet. I'll be living and working on the "Bob Barker" in the | |
Arctic Circle and fighting the Japanese whaling fleet for a full summer. My plane leaves on midnight on March | |
9th. I hope that you all tune-in and keep your fingers crossed for me and those poor whales out there! | |
http://animal.discovery.com/tv/whale-wars/ |
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
+-------------------------------+--------+---------+------------+---------+----------------+-------------+-------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+ | |
| Name | Engine | Version | Row_format | Rows | Avg_row_length | Data_length | Max_data_length | Index_length | Data_free | Auto_increment | Create_time | Update_time | Check_time | Collation | Checksum | Create_options | Comment | | |
+-------------------------------+--------+---------+------------+---------+----------------+-------------+-------------------+--------------+-----------+----------------+---------------------+---------------------+---------------------+-------------------+----------+----------------+---------+ | |
| admin_users | MyISAM | 10 | Dynamic | 17 | 44 | 764 | 281474976710655 | 2048 |
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
<stevewebb> Hey. | |
<beekermememe> Hey | |
<beekermememe> curl -v https://secure.dishonline.com:4444/secure_network_authentication/A21FF00E85C8666CE044001A4B0AA2BC | |
<beekermememe> * About to connect() to secure.dishonline.com port 4444 | |
<beekermememe> * Trying 23.21.52.20... connected | |
<beekermememe> * Connected to secure.dishonline.com (23.21.52.20) port 4444 | |
<beekermememe> * successfully set certificate verify locations: | |
<beekermememe> * CAfile: /etc/pki/tls/certs/ca-bundle.crt | |
<beekermememe> CApath: none | |
<beekermememe> * SSLv2, Client hello (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
9:13:42 PM Alex Cook: We are back up | |
9:13:49 PM Alex Cook: I think it was WRA2 controller | |
9:13:51 PM steveholly051802: Ahh. | |
9:13:53 PM steveholly051802: ok | |
9:13:56 PM Alex Cook: https://rpm.newrelic.com/accounts/47839/applications/177265/transactions#id=52084693 | |
9:15:35 PM steveholly051802: So we were ok. The WRA2 service was hanging or something? | |
9:15:55 PM Alex Cook: it looks like it not 100% sure yet | |
9:16:29 PM Alex Cook: is mapi going down now?? | |
9:16:34 PM steveholly051802: I'm seeing mapi errors now too. | |
9:16:39 PM steveholly051802: It could be amazon. |
OlderNewer