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
var repr = function (o, depth, max) { | |
var result, i; | |
depth = depth === undefined ? 0 : depth; | |
max = max === undefined ? 2 : max; | |
if (depth > max) { | |
return '<..>'; | |
} | |
switch (typeof o) { | |
case 'string': return '"' + o.replace(/"/g, '\\"') + '"'; | |
case 'function': return o.toString(); |
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
#/bin/bash | |
set -e | |
if [ -z "$(which brew)" ]; then | |
echo "This script requires Homebrew." | |
exit | |
fi | |
if [ -z "$VIRTUAL_ENV" ]; then |
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
# found this from Armin R. on Twitter, what a beautiful gem ;) | |
import ctypes | |
from types import DictProxyType, MethodType | |
def main(): | |
import datetime | |
class _(monkey(int)): |
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
#!/bin/bash | |
HOST=$1 | |
if [ -z "$HOST" ]; then | |
echo "Enter host IP:" | |
read HOST | |
fi | |
sudo service denyhosts stop |