Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kunstderfuge on github.
  • I am kunstderfuge (https://keybase.io/kunstderfuge) on keybase.
  • I have a public key ASABqox6A6fBnz-blQQOw1ZIJvgRtne7uos7e3ydRDVfpgo

To claim this, I am signing this object:

{
"4ch": {
"pol": [
"146981635",
"147075091",
"147146601",
"147433975",
"147547939",
"147591553",
"147647514",
We can't make this file beautiful and searchable because it's too large.
,username,timestamp,permalink-href,body,image1-src
0,Sgt. Dawson GSF III%,2021-01-30 04:27:27+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693750?q=#msg,Howdy,
1,Gen. BLooDAgenT,2021-01-30 04:27:46+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693751?q=#msg,hey,
2,Sgt. Dawson GSF III%,2021-01-30 04:35:52+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693752?q=#msg,,https://cdn.discordapp.com/attachments/804930715245609010/804932874322575390/Screenshot_20210129-063018_LIVE_BOLD.jpg
3,Gen. BLooDAgenT,2021-01-30 04:53:01+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693753?q=#msg,cool,
4,DIXIE_ALSF,2021-01-30 04:53:52+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693754?q=#msg,That's pretty cool,
5,Sgt. Nightmareborn78 GSF III%,2021-01-30 05:02:51+00:00,https://discordleaks.unicornriot.ninja/discord/view/190693755?q=#msg,Guns Up Patriots,
6,LCpl Honey_Badger ✝,2021-01-30 13:09:03+00:00,https://discordleaks.unicornriot.ninja/discord/view/1
import scrapy
import json
class ChanSpider(scrapy.Spider):
name = 'chanspider'
custom_settings = {
'CONCURRENT_REQUESTS': 1,
'CONCURRENT_REQUESTS_PER_DOMAIN': 1,
'DOWNLOAD_DELAY': 5,
@KunstDerFuge
KunstDerFuge / scrape_8chan_threads.py
Created July 26, 2021 01:24
Scrape 8chan Q threads from archive.is
import pandas as pd
from selenium import webdriver
import json
import glob
from random import randrange
import time
with open("qthreads.json") as json_file:
data = json.load(json_file)
drop num_images media
1 0 []
2 0 []
3 0 []
4 1 [{'filename': 'GodBlessAmerica.png', 'url': 'https://qalerts.app/media/63d961c72b558a8009823025001eebe46be8903b830cebca81dc7a27a7e4025c.png'}]
5 1 [{'filename': 'largest_flying_flag_in_america.jpg', 'url': 'https://qalerts.app/media/ff7cc2f6948249459aec737c0848d47dbb8d525e11772060f4fe33fd1b58fad3.jpg'}]
6 0 []
7 0 []
8 0 []
9 0 []
@KunstDerFuge
KunstDerFuge / split_csv.py
Created March 6, 2022 23:59
Split CSV into files of up to N rows
import glob
import pandas as pd
import math
import os
max_rows = 100000
for file in glob.glob('*.csv'):
filename = os.path.splitext(file)[0]
print(f'Loading {file}...')
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.1 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<movement-title>Music21 Fragment</movement-title>
<identification>
<creator type="composer">Music21</creator>
<encoding>
<encoding-date>2022-08-30</encoding-date>
<software>music21 v.7.3.3</software>
</encoding>
################################
#
# INSTALL PREREQUISITE PACKAGES:
# pip install PySDL2 vulkan
#
# Based on script from https://github.com/realitix/vulkan/blob/master/example/example_sdl2.py
import ctypes
import os
import sdl2
@KunstDerFuge
KunstDerFuge / vrcompositor_backtrace
Last active June 7, 2023 03:15
Backtrace of SteamVR / ALVR vrcompositor crash
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/robert/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/vrcomposit'.
Program terminated with signal SIGABRT, Aborted.
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
Downloading source file /usr/src/debug/glibc/glibc/nptl/pthread_kill.c
44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0;
[Current thread is 1 (Thread 0x7f27af7fe6c0 (LWP 22521))]
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44
#1 0x00007f27e15b22d3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78