sudo mkdir /usr/local
sudo chown -R `whoami` /usr/local
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local
brew install git
cd /usr/local
git init
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
| sudo apt-get install build-essential libsqlite3-dev zlib1g-dev libncurses5-dev libgdbm-dev libbz2-dev libreadline5-dev libssl-dev libdb-dev | |
| wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz | |
| tar -xzf Python-2.7.3.tgz | |
| cd Python-2.7.3 | |
| ./configure --prefix=/usr --enable-shared | |
| make | |
| sudo make install | |
| cd .. |
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
Roll your own iPython Notebook server with Amazon Web Services (EC2) using their Free Tier.
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 | |
| echo "-----------------------------------------------" | |
| echo "A very simple script to make nmap scanning a little quicker to kick off" | |
| echo "By Glenn '/dev/alias' Grant (devalias.net)" | |
| echo "v0.3" | |
| echo "-----------------------------------------------" | |
| _iphost=$1 | |
| _now=$(date +"%Y%m%d-%H%M") | |
| _nmapopts="-A -vvv ${@:2}" | |
| _nmapoptshidden="--webxml" |
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
| from django import forms | |
| from django.core import validators | |
| from django.core.exceptions import ValidationError | |
| class MinLengthValidator(validators.MinLengthValidator): | |
| message = 'Ensure this value has at least %(limit_value)d elements (it has %(show_value)d).' | |
| class MaxLengthValidator(validators.MaxLengthValidator): | |
| message = 'Ensure this value has at most %(limit_value)d elements (it has %(show_value)d).' |
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
| # Call virtualenvwrapper's "workon" if .venv exists. This is modified from-- | |
| # http://justinlilly.com/python/virtualenv_wrapper_helper.html | |
| # which is linked from-- | |
| # http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory | |
| check_virtualenv() { | |
| if [ -e .venv ]; then | |
| env=`cat .venv` | |
| echo "Found .venv in directory. Calling: workon ${env}" | |
| workon $env | |
| fi |
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
| # Call virtualenvwrapper's "workon" if .venv exists. This is modified from-- | |
| # http://justinlilly.com/python/virtualenv_wrapper_helper.html | |
| # which is linked from-- | |
| # http://virtualenvwrapper.readthedocs.org/en/latest/tips.html#automatically-run-workon-when-entering-a-directory | |
| check_virtualenv() { | |
| if [ -e .venv ]; then | |
| env=`cat .venv` | |
| if [ "$env" != "${VIRTUAL_ENV##*/}" ]; then | |
| echo "Found .venv in directory. Calling: workon ${env}" | |
| workon $env |
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
| diff --git a/Library/Formula/libdnet_python.rb b/Library/Formula/libdnet_python.rb | |
| new file mode 100644 | |
| index 0000000..31f0446 | |
| --- /dev/null | |
| +++ b/Library/Formula/libdnet_python.rb | |
| @@ -0,0 +1,18 @@ | |
| +require 'formula' | |
| + | |
| +class LibdnetPython <Formula | |
| + depends_on 'libdnet' |
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
| # Test Internet Connection | |
| ping -c 1 google.com > /dev/null | |
| if [ "$?" != 0 ] | |
| then | |
| echo [*] [Internet Connection]: FAILED...; | |
| echo [x] [warning]:This Script Needs An Active Internet Connection; | |
| sleep 3 |
OlderNewer