View rarbg.py
This file contains 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 requests | |
import sys | |
if __name__ == "__main__": | |
mirrors = [ | |
'https://www.rarbg.is/', | |
'https://rarbgunblock.com/', | |
'https://rarbgmirror.com/', | |
'http://rarbgaccess.org/', | |
'http://rarbgmirror.org/', |
View ResumeDownloader.java
This file contains 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 com.mashape.unirest.http.HttpResponse; | |
import com.mashape.unirest.http.JsonNode; | |
import com.mashape.unirest.http.Unirest; | |
import com.mashape.unirest.http.exceptions.UnirestException; | |
import org.json.JSONArray; | |
import org.json.JSONObject; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.net.URL; |
View hilo.rb
This file contains 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
require 'colorize' | |
progression = 0 | |
jackpot = 16 | |
milestones = { | |
4 => '€500', | |
8 => '€2,500', | |
12 => '€100,000', | |
16 => '€250,000' |
View commit_behind.sh
This file contains 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
git fetch --all | |
git merge origin/master | |
git push |
View git2dropbox.py
This file contains 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 github import Github | |
import dropbox | |
import os | |
import config | |
IGNORED_FILES = ['desktop.ini', 'thumbs.db', '.ds_store', 'icon\r', '.dropbox', '.dropbox.attr'] | |
dc = dropbox.client.DropboxClient(config.dropbox_access_token) | |
g = Github(config.github_username, config.github_password) | |
View page.sh
This file contains 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
wget --page-requisites https://www.example.com |
View flickr.py
This file contains 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 requests | |
import urllib | |
import pprint | |
import os | |
import argparse | |
import sys | |
def main(photoset): | |
try: |
View slidescrape.py
This file contains 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 slideshare import Slideshare | |
from pymongo import MongoClient | |
import argparse | |
if __name__ == '__main__': | |
parser = argparse.ArgumentParser() | |
parser.add_argument('topic') | |
args = parser.parse_args() | |
client = MongoClient('mongodb://localhost:27017/') | |
db = client.slideshare |
View env.sh
This file contains 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
virtualenv -p python3 envname |
View random_movie.py
This file contains 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 sys | |
import requests | |
import random | |
import subprocess | |
if len(sys.argv) == 2: | |
genre = sys.argv[1] | |
request = requests.get('https://yts.ag/api/v2/list_movies.json?genre=%s&minimum_rating=8&limit=50' % genre) |
NewerOlder