Skip to content

Instantly share code, notes, and snippets.

View WWelna's full-sized avatar
🥷
( ͡° ͜ʖ ͡°)

William Welna WWelna

🥷
( ͡° ͜ʖ ͡°)
View GitHub Profile
@WWelna
WWelna / ChromeTwitter.js
Created January 8, 2021 03:58
How to mess with twitter via webdev console.
function getCookie(cname) { // Stolen From -> https://www.w3schools.com/js/js_cookies.asp
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i <ca.length; i++) {
var c = ca[i];
while (c.charAt(0) == ' ') {
c = c.substring(1);
}
if (c.indexOf(name) == 0) {
@WWelna
WWelna / kjv_bible.json
Created January 8, 2021 04:09
King James Bible in JSON
This file has been truncated, but you can view the full file.
[
{
"chapter": "1",
"book": "Genesis",
"verse": "1",
"text": "In the beginning God created the heaven and the earth."
},
{
"chapter": "1",
"book": "Genesis",
@WWelna
WWelna / grabposts.py
Created February 2, 2021 03:53
Grab posts of User from Gab Scrape
#!/bin/python3
# Terrible Data Dumper for Gab Data
#
# https://archive.org/details/Gab-Scrape-01092017-050518
# https://archive.org/details/Gab-Scrape-03272017
#
# Put script in same directory as download, and use.
import json
@WWelna
WWelna / gab2redis.py
Created February 10, 2021 11:57
Loading Gab dump into Redis
#!/bin/python3
import json
import lzma
import redis
import glob
from datetime import timedelta
r = redis.Redis()
ids = []
@WWelna
WWelna / dumpredis.py
Created February 11, 2021 01:14
Dump Gab from Redis to JSON
#!/bin/python3
import redis
r = redis.Redis()
print("LOADING...")
k = r.keys("GABPOST*")
print("SORTING...")
y = []
@WWelna
WWelna / bydate.py
Last active February 11, 2021 07:16
Dump Gab posts by date
#!/bin/python3
import orjson
from datetime import datetime
strp = "%Y-%m-%dT%H:%M:%S+00:00"
with open("gab_posts.json", 'r') as f:
for line in f:
j = orjson.loads(line)
d = datetime.strptime(j['created_at'], strp)
@WWelna
WWelna / gabstats.json
Last active February 11, 2021 07:15
Gab Stats - Posts per day - from 2016-8-10 to 2018-5-5
{
"2016-08-10":24,
"2016-08-11":22,
"2016-08-12":14,
"2016-08-13":10,
"2016-08-14":30,
"2016-08-15":45,
"2016-08-16":1094,
"2016-08-17":1247,
"2016-08-18":1701,
@WWelna
WWelna / stats.py
Created March 3, 2021 07:53
stats.py for DDoSecrets Gab - Account posting stats
#!/bin/python3
import orjson as json
accounts_have_posted = 0
accounts_have_posted_10 = 0
no_data = 0
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f:
j = json.loads(line)
@WWelna
WWelna / DDoSecrets-GabStats-UserCreation.json
Created March 3, 2021 10:31
DDoSecrets Gab Dump - User Account Creations per Day - 2016-08-10 to 2021-02-19
{
"2016-08-10":29,
"2016-08-11":16,
"2016-08-12":7,
"2016-08-13":5,
"2016-08-14":4,
"2016-08-15":20,
"2016-08-16":113,
"2016-08-17":32,
"2016-08-18":51,
@WWelna
WWelna / stats-usercreation.py
Created March 3, 2021 11:28
DDoSecrets - Gab Stats - User Creation
#!/bin/python3
import orjson as json
from datetime import datetime
import dateutil.parser
import collections
dates = {}
with open('/xs/Archive-Gab/ddosecrets_gabdump.json') as f:
for line in f: