Skip to content

Instantly share code, notes, and snippets.

View reallytiredofclowns's full-sized avatar

reallytiredofclowns

View GitHub Profile
@reallytiredofclowns
reallytiredofclowns / discuitstats.py
Last active August 19, 2024 00:18
Discuit activity summary script
# to do: error checking/resumption code (can use pagination cursor of post to determine when script paused?)
# clean up repetition
# timing issue: if fetching by latest, someone can make a comment
# that puts a post out of the date limits before the looping
# has a chance to fetch the post
# do a second sweep after hitting the date limit?
# would have to store the script's start time and figure out
# when it halts due to hitting the lower date limit and
# reprocess comments according to that...
@reallytiredofclowns
reallytiredofclowns / discuit-report-notification.user.js
Created February 16, 2024 23:49
Temporary tool for moderators to auto check for disc reports on discuit.net
// ==UserScript==
// @name discuit-report-notification
// @namespace discuit-aw-userscripts
// @version 2024-02-13
// @description Moderator notification for disc reports.
// @author AuralWanderer
// @match https://discuit.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net
// @grant none
// ==/UserScript==
@reallytiredofclowns
reallytiredofclowns / discuit-expand-subscriptions.user.js
Created February 17, 2024 16:11
Auto expand subscriptions menu on discuit.net
// ==UserScript==
// @name discuit-expand-subscriptions
// @namespace discuit-aw-userscripts
// @version 2024-02-10
// @description Autoexpand discuit.net sidebar subscription menu.
// @author AuralWanderer
// @match https://discuit.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net
// @grant none
// ==/UserScript==
@reallytiredofclowns
reallytiredofclowns / discuit_active_users_chart.py
Created March 29, 2024 15:04
Charting active Discuit daily, 2-daily, weekly users
import pandas
fullDF = pandas.read_csv("c:/users/bobloblaw/downloads/datadump.csv")
fullDF["date"] = fullDF["createdAt"].str.slice(0, 10).str.replace("-", "")
# for completeness, want to ensure every date is represented,
# but this should be true as there was daily activity
# DateRange = pandas.date_range(start = "20230616", end = "20240229")
# DateRange = pandas.DataFrame(index = DateRange)
@reallytiredofclowns
reallytiredofclowns / discuit_domination.py
Created April 1, 2024 16:28
Discuit user domination stats from data dump
# disc domination
import pandas
fullDF = pandas.read_csv("d:/docs/download/discuitdump/concat.csv")
fullDF = fullDF.query("deleted != True")[["disc", "user"]]
discUser = (fullDF
.groupby(["disc", "user"], as_index = False)
.size()
.rename(columns = {"size": "userItems"}))
disc = (discUser[["disc", "userItems"]]
@reallytiredofclowns
reallytiredofclowns / discuit-hide-downvotes.user.js
Created April 14, 2024 12:54
Userscript to hide view of downvotes on discuit.net
// ==UserScript==
// @name discuit-hide-downvotes
// @namespace discuit-aw-userscripts
// @version 2024-04-11
// @description Hide downvotes on Discuit
// @author AuralWanderer
// @match https://discuit.net/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=discuit.net
// @grant none
// ==/UserScript==
@reallytiredofclowns
reallytiredofclowns / discuit-comment-permalink.user.js
Created April 14, 2024 14:07
Userscript to add comment permalinks to Discuit posts