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> | |
<html> | |
<head> | |
<link rel="stylesheet" href="style.css" type="text/css"> | |
</head> | |
<body> |
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 bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <[email protected]> | |
# Created: 2010-08-16 | |
set -um | |
# check input | |
[ $# -gt 0 ] || { sed -n '2,/^#$/ s/^# //p' <"$0"; exit 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
t.sh | |
while true | |
do | |
echo "stderr $(date)" 1>&2 | |
echo "stdout $(date)" | |
done | |
bash /tmp/t.sh 2>&1 1>/tmp/output | sleep 9999 |
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
.b1 { | |
background-color: #ccc; | |
height: 200px; | |
width: 400px; | |
} | |
.b4 { | |
background-color: #a00; | |
height: 80%; | |
width: 300px; |
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
.b1 { | |
background-color: #ccc; | |
height: 200px; | |
width: 400px; | |
} | |
.b4 { | |
background-color: #a00; | |
height: 80%; | |
width: 300px; |
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/python | |
# | |
# This is the relay script mentioned in http://blog.zorinaq.com/?e=81 | |
# | |
# Listens on the address and port specified by --local-ip and --local-port, and | |
# relay all connections to the endpoint specified by --remote-hosts and | |
# --remote-port. Multiple remote hosts can be specified: one will be selected | |
# randomly for each connection. | |
# | |
# Optionally, if --mode 1:<secret> is specified, insert the secret key as the |
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 python | |
# | |
# Proof of Concept: UDP Hole Punching | |
# Two client connect to a server and get redirected to each other. | |
# | |
# This is the client. | |
# | |
# Koen Bollen <meneer koenbollen nl> | |
# 2010 GPL | |
# |
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
s = 'xyabax' | |
d = dict() | |
def calc0(s): | |
global inf | |
inf = len(s) + 1 | |
return calc(s) | |
def calc(s): |
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/python | |
import logging | |
import socket | |
from threading import Thread | |
class PipeThread(Thread): | |
pipes = [] |
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
//////////////////////////////////////////////////////////////////////////////// | |
// Lab 6 | |
//////////////////////////////////////////////////////////////////////////////// | |
// Include the checkoff program: | |
.include "checkoff.uasm" | |
// Leave the following as zero to run ALL the test cases, and get your solution | |
// validated if all pass. If you have trouble with test case N, set it to N | |
// to run JUST that test case (for easier debugging): |
OlderNewer