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
No. Time Source Destination Protocol Length Info | |
1 0.000000 10.116.254.17 10.116.254.1 NFS 172 V3 GETATTR Call (Reply In 2), FH:0xbec98b1c | |
Frame 1: 172 bytes on wire (1376 bits), 172 bytes captured (1376 bits) | |
Internet Protocol Version 4, Src: 10.116.254.17 (10.116.254.17), Dst: 10.116.254.1 (10.116.254.1) | |
Transmission Control Protocol, Src Port: 798 (798), Dst Port: nfs (2049), Seq: 1, Ack: 1, Len: 120 | |
Remote Procedure Call, Type:Call XID:0x2f8a18a9 | |
Fragment header: Last fragment, 116 bytes | |
1... .... .... .... .... .... .... .... = Last Fragment: Yes | |
.000 0000 0000 0000 0000 0000 0111 0100 = Fragment Length: 116 |
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"> | |
<title>Rawr</title> | |
<p>JS follows | |
<pre> | |
<script type="text/javascript"> | |
function wr(str) { | |
document.write(str + "<br>"); | |
} | |
var a = {valueOf: function(x) { wr("a"); return 1; }}; | |
var b = {valueOf: function(x) { wr("b"); return 2; }}; |
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/perl | |
use strict; | |
use warnings; | |
{ | |
package Base; | |
sub scan_stash { | |
my ($for, $stash, $seen) = @_; | |
if (my $glob = $stash->{$for}) { |
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
#include <vector> | |
#include <ostream> | |
#include <iostream> | |
#include <string> | |
#include <cstdlib> | |
struct Node { | |
Node *next; | |
int val; | |
Node(Node *n, int v) : next(n), val(v) { } |
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/perl | |
use strict; | |
use warnings; | |
use WWW::Mechanize; | |
use JSON::Syck qw(Load Dump); | |
use DB_File; | |
my $URL = 'https://graph.facebook.com/%s?method=GET&format=json&access_token=XYZ'; |
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/perl | |
use strict; | |
use warnings; | |
use open qw(:utf8 :std); | |
use HTML::TreeBuilder; | |
use XML::XPath; | |
use HTML::Entities; | |
use Text::CSV; |
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 | |
$a = "blah blah blah --"; | |
$b = "img src=http://jesnetplus.com/evil.js width=400 height=400 alt=hi"; | |
?> | |
<!DOCTYPE html> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Broken</title> |
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/perl | |
use strict; | |
use warnings; | |
use 5.012; | |
use XML::XPath; | |
my $xp = XML::XPath->new(filename => 'blist.xml'); |
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
quicksort lst = case lst of | |
pivot:rest -> (quicksort less) ++ [pivot] ++ (quicksort grtr) where | |
less = filter (<= pivot) rest | |
grtr = filter (> pivot) rest | |
empty -> empty |
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
fgrep() { | |
# Parse options | |
local dashv=0 dashq=0 dashx=0 opt= OPTIND=1 | |
local usage=' | |
echo "Usage: fgrep [-vqx] string" >&2; | |
return 1; | |
' | |
while getopts "vqx" opt; do | |
case "$opt" in |