Skip to content

Instantly share code, notes, and snippets.

View JayCuthrell's full-sized avatar
☁️
GOTO 10

Jay Cuthrell JayCuthrell

☁️
GOTO 10
View GitHub Profile
[tom]$ sudo yum install socat
[tom]$ sudo /sbin/iptables -L -n
[tom]$ socat -u TCP4-LISTEN:6000,reuseaddr,fork OPEN:/tmp/captureport6000.txt,creat,append
(open another terminal on a remote host)
[jerry]$ telnet tom 6000
Trying 192.168.1.202...
Connected to tom.
Escape character is '^]'.
<html>
<head>
<!-- based on source from -->
<!-- http://Bacolicio.us -->
<!-- and -->
<!-- http://browsersize.googlelabs.com -->
<title>Yep. Got this idea from looking at Bacolicio.us and Google Page Size.</title>
<style type="text/css" media="screen">
body { margin: 0; padding: 0; }
#googlebrowsersizeoverlay { position: absolute; top: 0%; left: 0%; opacity: 0.4; filter: alpha(opacity=40); }
javascript:parent.frames['content'].setOverlayImage('http://bacolicious.s3.amazonaws.com/bacon.png')
{"location":{"latitude":40.689244,"longitude":-74.044514, "accuracy":20.0}}
<?xml version="1.0" encoding="UTF-8"?>
<feed gd:kind="buzz#searchFeed" xmlns="http://www.w3.org/2005/Atom" xmlns:activity="http://activitystrea.ms/spec/1.0/" xmlns:buzz="http://schemas.google.com/buzz/2010" xmlns:crosspost="http://purl.org/syndication/cross-posting" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:media="http://search.yahoo.com/mrss/" xmlns:poco="http://portablecontacts.net/ns/1.0" xmlns:thr="http://purl.org/syndication/thread/1.0">
<link href="https://www.googleapis.com/buzz/v1/activities/track?q=vmworld" rel="self" type="application/atom+xml"/>
<link href="http://pubsubhubbub.appspot.com/" rel="hub"/>
<title type="text">Google Buzz Track Feed for vmworld</title>
<updated>2010-08-29T19:28:55.493Z</updated>
<id>tag:google.com,2010:buzz-feed:public:posted:105250506097979753968</id>
<generator uri="http://www.google.com/buzz">Google Buzz</generator>
</feed>
// Searching on the term "vmworld"
https://www.googleapis.com/buzz/v1/activities/track?q=vmworld
// Searching on the terms "ReadWriteWeb" and "ReadWriteHack"
https://www.googleapis.com/buzz/v1/activities/track?q=ReadWriteWeb+OR+ReadWriteHack
cd /path/to/a/web/visible/directory/
git clone git://github.com/mgkimsal/zfkit.git
cd zfkit/library
tar -xzf Zend.tgz
# Verify your environment
$ cat /etc/issue.net
CentOS release 5.5 (Final)
$ uname -a
Linux porksoda 2.6.18.8 #1 SMP Tue Nov 10 16:12:12 UTC 2009 i686 i686 i386 GNU/Linux
$ gcc -v
Using built-in specs.
# capture all web traffic for 5 seconds without saving to a file
$ sudo yconalyzer -p 80 -t 5
46 Packets received
0 Packets dropped
Results of monitoring port 80 for 22.817000 seconds
Start time: Tue Sep 7 09:56:51 2010
End time: Tue Sep 7 09:57:12 2010
Total Connections (terminated by FIN): 11
Avg Client Data: 429 bytes
# yum install php53-pear php53 php53-cli php53-common \
> php53-devel php53-gd php53-mbstring php53-mcrypt \
> php53-mysql php53-pdo php53-soap php53-xml php53-xmlrpc \
> php53-bcmath php53-pecl-apc php53-pecl-memcache
[...]
Complete!