Skip to content

Instantly share code, notes, and snippets.

View hclivess's full-sized avatar
🏠
Working from home

Jan Kučera hclivess

🏠
Working from home
View GitHub Profile
import re
import requests
from datetime import date
import matplotlib.pyplot as plt
web = requests.get("https://nyzo.co/queue/all").text
reds = re.findall("#f88", web)
yellows = re.findall("#ff0", web)
whites = re.findall('style=""', web)
@hclivess
hclivess / login.html
Last active November 7, 2019 12:26
Full tornado web authentication example that is actually working
<html>
<body>
<form action="/login" method="post">
Name: <input type="text" name="name">
<input type="submit" value="Sign in">
</form>
</body>
</html>
import random
more0s = 0
more1s = 0
more0s_list = []
more1s_list = []
preset = []
for x in range(10000):
"""
Generic helpers Bismuth
"""
import re
import hashlib
import base64
from decimal import Decimal
__version__ = '0.0.5'
@hclivess
hclivess / console_scroll_down.js
Created September 10, 2019 18:10
console_scroll_down.js
(function() {
var intervalObj = null;
var retry = 0;
var clickHandler = function() {
console.log("Clicked; stopping autoscroll");
clearInterval(intervalObj);
document.body.removeEventListener("click", clickHandler);
}
function scrollDown() {
var scrollHeight = document.body.scrollHeight,
@hclivess
hclivess / unfollow-non-followers-twitter.js
Created September 6, 2019 23:47 — forked from jalbam/unfollow-non-followers-twitter.js
Code to stop following those ones who are not following you back on Twitter and keeping those you want or follow anyone you want, with certain filters (working in July 2019)
/*
Unfollow (stop following) those people who are not following you back on Twitter (or unfollow everyone if desired).
This will work for new Twitter web site code structure (it was changed from July 2019, causing other unfollow-scripts to stop working).
Instructions:
1) The code may need to be modified depending on the language of your Twitter web site:
* For English language web site, no modification needed.
* For Spanish language web site, remember to set the 'LANGUAGE' variable to "ES".
* For another language, remember to set the 'LANGUAGE' variable to that language and modify the 'WORDS' object to add the words in that language.
@hclivess
hclivess / delete_fb_friend_requests.js
Last active September 12, 2019 17:55
delete_fb_friend_requests.js
!!! DELETE FRIEND REQUESTS OUTGOING: https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main
javascript:var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}
!!! ADD NEW FRIENDS: https://m.facebook.com/friends/center/requests/?rfj&no_hist=1
javascript:var inputs = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _40x9 _56bu');
@hclivess
hclivess / fb_message_ai.py
Created September 5, 2019 12:51
fb_message_ai.py
from fbchat import Client
from fbchat.models import *
import time
import json
import random
from textgenrnn import textgenrnn
with open("secret.json") as file:
parsed = json.loads(file.read())
@hclivess
hclivess / fb_message_sender.py
Last active September 6, 2019 14:01
fb_message_sender.py
from fbchat import Client
from fbchat.models import *
import time
import json
import random
counter = 0
with open("secret.json") as file:
parsed = json.loads(file.read())
@hclivess
hclivess / add_fb_friends.js
Created September 4, 2019 22:02
add_fb_friends.js
javascript:
var delayInput = prompt("Delay between actions (ms)", "1000");
var stopAfter = prompt("Stop after how many friend requests are sent?", "100");
var workDelay = parseInt(delayInput, 10);
var loading = document.createElement("div");
loading.setAttribute("id", "noni_loading");
loading.setAttribute("style", "position: fixed; background: rgba(255,255,255,0.8); top: 0; left: 0; width: 100%; font-size: 24px; z-index: 1000; padding: 12px;");
document.body.appendChild(loading);
document.getElementById("noni_loading").innerHTML = "No friends added.";