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
| import lxml.html | |
| import urllib | |
| def checkOSX(): | |
| ''' | |
| This script scrapes http://www.mozilla.com product | |
| download page grabs *Nix,OSX,Windows download links | |
| and checks the status code for each download url | |
| ''' |
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
| ##using capped internet of 4gb so i need to track programs that are using bandwidth without my knowlegde | |
| lsof -i |
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
| echo 'Installing numpy ...' | |
| sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/numpy-1.4.0.dev7542_20091216-py2.6-macosx-10.6-universal.egg | |
| echo 'Installing matplotlib ...' | |
| sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/matplotlib-1.0.svn_r8037-py2.6-macosx-10.6-universal.egg | |
| echo 'Installing scipy ...' | |
| sudo easy_install http://www.maths.otago.ac.nz/~fonnesbeck/scipy-0.7.1_20091217-py2.6-macosx-10.6-universal.egg | |
| echo 'Installing pymc ...' |
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 easy_install yolk | |
| yolk -U | cut -d ' ' -f 2 | xargs easy_install |
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
| /etc/init.d/nscd restart |
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
| dscacheutil -flushcache |
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
| ipconfig /displaydns |
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
| ipconfig /flushdns |
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
| @echo off | |
| setlocal | |
| set APP_NAME="name of app" | |
| set CHROME_PROVIDERS="content" | |
| set ROOT_DIR=%CD% | |
| set TMP_DIR="build" |
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
| ##replacenameofext with your extension name | |
| #!/bin/bash | |
| # short-name or xpi files name. | |
| EXT_NAME=nameofext | |
| ## Must be lowercase with no spaces | |
| CHROME_PROVIDERS="content" | |
| # # which chrome providers we have | |
| ## (space-separated list) | |
| ROOT_DIRS="defaults" | |
| # ...and these directories |