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
/** | |
* jQuery BASE64 functions | |
* | |
* <code> | |
* Encodes the given data with base64. | |
* String $.base64Encode ( String str ) | |
* <br /> | |
* Decodes a base64 encoded data. | |
* String $.base64Decode ( String str ) |
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
#!/bin/bash | |
# Reload a varnish config | |
# Author: Kristian Lyngstol | |
FILE="/etc/varnish/ugc.vcl" | |
# Hostname and management port | |
# (defined in /etc/default/varnish or on startup) | |
HOSTPORT="localhost:6082" | |
NOW=`date +%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
NTP_SERVER=us.pool.ntp.org | |
NTP_SERVER=0.us.pool.ntp.org | |
NTP_SERVER=1.us.pool.ntp.org | |
NTP_SERVER=2.us.pool.ntp.org | |
NTP_SERVER=3.us.pool.ntp.org | |
NTP_SERVER=north-america.pool.ntp.org | |
NTP_SERVER=0.north-america.pool.ntp.org | |
NTP_SERVER=1.north-america.pool.ntp.org | |
NTP_SERVER=2.north-america.pool.ntp.org | |
NTP_SERVER=3.north-america.pool.ntp.org |
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
ctrl-z | |
bg | |
touch /tmp/stdout | |
touch /tmp/stderr | |
gdb -p $! | |
# In GDB | |
p dup2(open("/tmp/stdout", 1), 1) | |
p dup2(open("/tmp/stderr", 1), 2) |