Skip to content

Instantly share code, notes, and snippets.

View loadletter's full-sized avatar

loadletter

  • Systemd considered harmful
View GitHub Profile
@loadletter
loadletter / 4chan_Linkify.user.js
Last active November 5, 2022 02:24
Mirror of scripts from the defunct usercripts.org
// ==UserScript==
// @name 4chan Linkify
// @namespace csimi
// @author csimi
// @description Linkification of text links.
// @homepage http://userscripts.org/users/156405/scripts
// @version 2.0.5
// @updateURL http://userscripts.org/scripts/source/87750.meta.js
// @icon http://i.imgur.com/JHVzK.png
// @include http://boards.4chan.org/*
@loadletter
loadletter / test2.py
Created May 29, 2014 23:29
Pyjcdht test2
import binascii, os, random
from dht import DHT
class TestDHT(DHT):
testpeers = []
testhash = binascii.a2b_hex('f919bc3c68eed436c485a564c51984a35af9151c')
prevhash = ""
cnt = 0
def loop(self):
try:
@loadletter
loadletter / announcer.py
Created May 28, 2014 20:04
Bittorrent HTTP announce
import binascii, urllib, socket, random, struct
from bcode import bdecode
from urlparse import urlparse, urlunsplit
def announce(tracker, hashes):
tracker = tracker.lower()
parsed = urlparse(tracker)
if parsed.scheme == "udp":
#return scrape_udp(parsed, hashes)
pass
@loadletter
loadletter / autoloadreply.user.js
Last active August 29, 2015 14:00
Load the Reply form on vanilla 4chan (without any extension)
// ==UserScript==
// @name Autoload the Reply form
// @namespace loadletter
// @description Load the Reply form on vanilla 4chan (without any extension)
// @include http://boards.4chan.org/*
// @include https://boards.4chan.org/*
// @run-at document-end
// @version 1
// @grant none
// ==/UserScript==
@loadletter
loadletter / inline.css
Last active August 29, 2015 14:00
inlineCSS
body.hasDropDownNav { margin-top: 45px;}.extButton.threadHideButton { float: left; margin-right: 5px; margin-top: -1px;}.extButton.replyHideButton { margin-top: 1px;}div.op > span .postHideButtonCollapsed { margin-right: 1px;}.dropDownNav #boardNavMobile, { display: block !important;}.extPanel { border: 1px solid rgba(0, 0, 0, 0.20);}.tomorrow .extPanel { border: 1px solid #111;}.extButton,img.pointer { width: 18px; height: 18px;}.extControls { display: inline; margin-left: 5px;}.extButton { cursor: pointer; margin-bottom: -4px;}.trashIcon { width: 16px; height: 16px; margin-bottom: -2px; margin-left: 5px;}.threadUpdateStatus { margin-left: 0.5ex;}.futaba_new .stub,.burichan_new .stub { line-height: 1; padding-bottom: 1px;}.stub .extControls,.stub .wbtn,.stub input { display: none;}.stub .threadHideButton { float: none; margin-right: 2px;}div.post div.postInfo { width: auto; display: inline;}.right { float: right;}.center { display: block; margin: auto;}.pointer { cursor: pointe
//only once
var textback = document.getElementsByClassName("navLinks navLinksBot desktop")[0].getElementsByTagName('a')[1].text;
/*
..
...
crap */
document.getElementsByClassName("navLinks navLinksBot desktop")[0].getElementsByTagName('a')[1].text = textback + " - Page 5";
𝕳𝖊𝖑𝖉𝖊𝖓𝖘𝖆𝖌𝖊𝖓
𝖁𝖔𝖒
𝕶𝖔𝖘𝖒𝖔𝖘𝖎𝖓𝖘𝖊𝖑
cat DHTservers | while read line; do echo " {"; echo " address = \"`echo -n $line | cut -d' ' -f1`\""; echo " port = `echo -n $line | cut -d" " -f2`"; echo " public_key = \"`echo -n $line | cut -d" " -f3`\""; echo " },"; done
@loadletter
loadletter / libsodium_ok.png
Last active August 29, 2015 13:57
tox-haiku-gcc2
libsodium_ok.png
#colored man pages
export LESS_TERMCAP_mb=$'\e[1;35m'
export LESS_TERMCAP_md=$'\e[1;35m'
export LESS_TERMCAP_me=$'\e[0m'
export LESS_TERMCAP_se=$'\e[0m'
export LESS_TERMCAP_so=$'\e[01;44;33m'
export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[01;32m'