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
print("Executing on %s as %s" % (env.host, env.user)) | |
# Using dict-style interpolation is more readable and slightly shorter: | |
print("Executing on %(host)s as %(user)s" % env) | |
# Reference: http://docs.fabfile.org/en/1.11/usage/env.html |
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/sh | |
#for i in $(networksetup -listallhardwareports | grep Device | gawk '{print $2}') | |
for i in $( ifconfig -l ) | |
do | |
echo "\"$i\" :" \"$(ipconfig getifaddr $i)\" | |
# grep -e 'en*' -e 'tun*' | |
done |
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
#!/usr/bin/python | |
# | |
# git-slim | |
# | |
# Remove big files from git repo history. | |
# | |
# Requires GitPython (https://github.com/gitpython-developers/GitPython) | |
# | |
# References: | |
# - http://help.github.com/remove-sensitive-data/ |
NewerOlder