Skip to content

Instantly share code, notes, and snippets.

import asyncio
import hashlib
import os
import datetime as dt
import configparser
from shutil import copyfile
import time
import msvcrt
import threading
@swablueme
swablueme / artstation.py
Last active July 3, 2018 10:49
artstation artist likes downloader
import re
import json
import requests
import math
import os
from multiprocessing import Pool
requests.packages.urllib3.disable_warnings()
#artist to download from
@swablueme
swablueme / fugwacom.bat
Created July 3, 2018 09:17
.bat that kills all wacom processes and restarts it on windows
FOR %%i in (1, 1, 2) do (
FOR %%A in (
"WTabletServicePro.exe"
"Wacom_Tablet.exe"
"Wacom_TabletUser.exe"
"Wacom_TouchUser.exe"
) DO taskkill /f /im %%A
net stop "WTabletServicePro"
net start "WTabletServicePro"
)
@swablueme
swablueme / tumblr_notes.py
Last active May 4, 2018 06:22
prints out the username of a tumblr user from a weighted random pick depending on whether a person reblogged, said or liked
import re
import random
from collections import defaultdict
#open a text file containing tumblr notes
fp = open("notes.txt")
#lists that contain the usernames of people who have liked, reblogged and said
reblogged_leest=[]
liked_leest=[]
@swablueme
swablueme / echodownloader.py
Last active July 3, 2018 11:01
downloads unimelb echo lectures
import requests
import os.path
import json
import re
#URL for echo
baseurl="https://echo360.org.au"
#list of subject names with which to name folders
subjectname=["COMP10001", "another_subject"]