Skip to content

Instantly share code, notes, and snippets.

@0xAB41
0xAB41 / ubuntu and Linux mint post installation
Last active October 13, 2018 09:01
Things to do after installing Ubuntu or Linux Mint
#Install Sublime Text 2
sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text
#Install Oracle Java
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get install oracle-java7-installer
sudo update-alternatives --config java
@0xAB41
0xAB41 / simple_mass_downloader.py
Created November 23, 2012 12:55
A simple mass file downloader in python
import urllib
def start_download(url, base, limit, ctype, ext,file_save_dir):
"""Download 'limit' number of files in base+offset.ext form(ex: 2400.jpg to 2452.jpg) from a url
Args:
url: url including the terminal slash
base: base number of the filename
limit: number of files to fetch
ctype: content type of the file
ext: extension of the file