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
$USER = '[email protected]'; | |
$PASS = 'abc123'; |
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
public class Eep { | |
class Foo { | |
final int bar; | |
Foo() { | |
Eep.this.foo = this; | |
if (true) { | |
throw new RuntimeException("lolol"); | |
} | |
bar = 42; |
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
hist() { | |
local sortopts1= sortopts2= | |
while [[ $# != 0 && "$1" == -* ]]; do | |
if [ "$1" = -r ]; then | |
sortopts2=-r | |
elif [ "$1" = -n ]; then | |
sortopts1=-n | |
elif [[ "$1" = -rn || "$1" = -nr ]]; then | |
sortopts1=-n sortopts2=-r | |
else |
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
package scratch; | |
import java.lang.reflect.InvocationHandler; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.lang.reflect.Proxy; | |
import java.util.Arrays; | |
public class ProxySample { |
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 Errno; | |
use IO::Socket::INET; | |
my $sock = IO::Socket::INET->new( | |
LocalPort => 6666, | |
ReuseAddr => 1, |
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
#!bash | |
# database scan for enhanced cd command | |
cds() { | |
( | |
set -o pipefail | |
# XXX: handle directories with newlines in their names? | |
find "$HOME" -type d -print \ | |
| sort -u > "$HOME/.cdpaths" | |
exit $? |
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 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<title>Blah</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<body> | |
<script type="text/javascript"> | |
x = "blah"; | |
for (i=0; i<28; i++) { |
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/env perl | |
use strict; | |
use warnings; | |
use XML::XPath; | |
@ARGV == 1 or die "Usage: $0 infile.xml\n"; | |
my ($infile) = @ARGV; | |
my $xp; |
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
diff -ru OpenSSH-186 2/openssh/ssh.c OpenSSH-186/openssh/ssh.c | |
--- OpenSSH-186 2/openssh/ssh.c 2013-07-02 16:09:16.000000000 -0700 | |
+++ OpenSSH-186/openssh/ssh.c 2014-08-30 03:32:29.000000000 -0700 | |
@@ -1505,6 +1505,7 @@ | |
u_int n_ids; | |
char *identity_files[SSH_MAX_IDENTITY_FILES]; | |
Key *identity_keys[SSH_MAX_IDENTITY_FILES]; | |
+ int identity_file_userprovided[SSH_MAX_IDENTITY_FILES]; | |
#ifdef ENABLE_PKCS11 | |
Key **keys; |
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.010; | |
use autodie; | |
use File::Temp qw(tempdir); | |
use File::Spec; | |
use File::Slurp qw(read_dir); |