This file contains hidden or 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
let http = require('http'); | |
(function follow(url){ | |
url = url.indexOf('?') !== -1 ? url.replace(/\?/,'.json?') : url + '.json'; | |
http.get(url, response => { | |
let rawData = ''; | |
response.on('data', data => { | |
rawData += data; | |
}); | |
response.on('end', data => { |
This file contains hidden or 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
# File in: /etc/lighttpd/conf-available/99-sites-enabled.conf | |
include_shell "/usr/local/share/lighttpd/include-sites-enabled.pl" |
This file contains hidden or 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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Testing IE Compatibility Mode</title> | |
<script src="ieUserAgent.js" type="text/javascript"></script> | |
</head> | |
<body> | |
<div id="results">Results:</div> | |
<script type="text/javascript"> | |
var val = "IE" + ieUserAgent.version; |
This file contains hidden or 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
zi() { | |
if [[ ! -z $1 ]]; then | |
steps=$1; | |
SIZE=`grep 'FontName' ~/.config/Terminal/terminalrc | cut -d' ' -f 2` | |
NEWSIZE=$((SIZE + steps)) | |
REGEXPR='s/FontName.*/FontName=Monospace '$NEWSIZE'/g' | |
sed -i "$REGEXPR" ~/.config/Terminal/terminalrc | |
else | |
echo "Usage: zi [zoom steps]"; | |
fi; |