Skip to content

Instantly share code, notes, and snippets.

View retornam's full-sized avatar
🎯
Focusing

retornam retornam

🎯
Focusing
View GitHub Profile
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
'''
##using capped internet of 4gb so i need to track programs that are using bandwidth without my knowlegde
lsof -i
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 ...'
sudo easy_install yolk
yolk -U | cut -d ' ' -f 2 | xargs easy_install
/etc/init.d/nscd restart
dscacheutil -flushcache
ipconfig /displaydns
ipconfig /flushdns
@echo off
setlocal
set APP_NAME="name of app"
set CHROME_PROVIDERS="content"
set ROOT_DIR=%CD%
set TMP_DIR="build"
##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