Skip to content

Instantly share code, notes, and snippets.

View AnthonyBloomer's full-sized avatar

Anthony Bloomer AnthonyBloomer

View GitHub Profile
@AnthonyBloomer
AnthonyBloomer / rarbg.py
Created January 3, 2019 00:36
Get working rarbg mirror
import requests
import sys
if __name__ == "__main__":
mirrors = [
'https://www.rarbg.is/',
'https://rarbgunblock.com/',
'https://rarbgmirror.com/',
'http://rarbgaccess.org/',
'http://rarbgmirror.org/',
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;
require 'colorize'
progression = 0
jackpot = 16
milestones = {
4 => '€500',
8 => '€2,500',
12 => '€100,000',
16 => '€250,000'
git fetch --all
git merge origin/master
git push
@AnthonyBloomer
AnthonyBloomer / git2dropbox.py
Created June 12, 2017 20:30
Backup public Github repos to a Dropbox account.
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)
wget --page-requisites https://www.example.com
@AnthonyBloomer
AnthonyBloomer / flickr.py
Created April 11, 2017 16:09
Download photosets on Flickr.
import requests
import urllib
import pprint
import os
import argparse
import sys
def main(photoset):
try:
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
@AnthonyBloomer
AnthonyBloomer / env.sh
Created February 5, 2017 01:37
Using Python 3 in virtualenv
virtualenv -p python3 envname
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)