Skip to content

Instantly share code, notes, and snippets.

@nightpool
nightpool / webcrack.js
Last active August 8, 2019 17:53 — forked from twilight-sparkle-irl/webcrack.discord.min.js
webcrack for tumblr
// With acknowledgments to zoe bootsy.
// Copyright 2019, licensed under the GPL v3.0 or later.
const webcrack3_injection = (_module, _exports, require) => {
window.webcrack3 = {
require,
moduleFunctions: require.m,
findModuleFunctionWithSourceLike (string_or_regex) {
const predicate = typeof string_or_regex === "string" ?
s => s.indexOf(string_or_regex) !== -1 :
@nightpool
nightpool / code.rb
Last active February 6, 2019 15:33
Module.prepend vs. alias_method_chain: FIGHT!
# classic situation:
class B1
def foo
'B'
end
end
module A1
def foo
@nightpool
nightpool / -
Created December 12, 2018 12:57
48724=404 http://twinkbodylover.tumblr.com/!
34150=200 https://rearview-vidz.tumblr.com/notes/175463431312/E3aWCDoSN?from_c=1478552213&large=true
34623=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375484947
48725=404 http://twinkbodylover.tumblr.com/%89=s%BB%A55%02~%E7%CD%81%A3
48726=404 http://twinkbodylover.tumblr.com/%89=s%BB%A55%02~%E7%CD%81%A3
34624=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375484562
34625=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375484066
34626=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375483563
34627=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375483107
34628=200 http://alexmandarino.tumblr.com/notes/69790636731/9EkXEnwSt?from_c=1375482697
{
"type": "Video",
"id": "https://peertube.mastodon.host/videos/watch/969ea381-4800-4718-b085-8c6ab1c518bb",
"name": "Innovation on the Social Web",
"duration": "PT1754S",
"uuid": "969ea381-4800-4718-b085-8c6ab1c518bb",
"tag": [],
"category": {
"identifier": "15",
"name": "Science & Technology"
{"type":"Video","id":"https://peertube.mastodon.host/videos/watch/969ea381-4800-4718-b085-8c6ab1c518bb","name":"Innovation on the Social Web","duration":"PT1754S","uuid":"969ea381-4800-4718-b085-8c6ab1c518bb","tag":[],"category":{"identifier":"15","name":"Science & Technology"},"licence":{"identifier":"6","name":"Attribution - Non Commercial - No Derivatives"},"language":{"identifier":"en","name":"English"},"views":16,"sensitive":false,"waitTranscoding":false,"state":1,"commentsEnabled":true,"published":"2018-05-10T02:56:26.260Z","updated":"2018-06-09T08:46:07.820Z","mediaType":"text/markdown","content":"Presentation by Sandro Hawke of W3C/MIT (https://w3c.social/@sandro) at the Web Conference 2018\r\n\r\nSession was \"W3C – The Next Big Thing of Web: Future Web Outlook\" https://www2018.thewebconf.org/program/w3c-track/","support":null,"icon":{"type":"Image","url":"https://peertube.mastodon.host/static/thumbnails/969ea381-4800-4718-b085-8c6ab1c518bb.jpg","mediaType":"image/jpeg","width":200,"height":110},"ur
11:08 < cwebber2> ========== START MEETING LOGGING ==========
11:08 < cwebber2> scribe: nightpool
11:08 < cwebber2> present+
11:08 < eprodrom> present+
11:08 < nightpool> present+
11:08 < yookoala> +1
11:09 < eprodrom> q+
11:09 < yookoala> present+
11:09 < cwebber2> present+ ajordan
11:09 eprodrom: I wanted to ask, could you coordinate with aaron and get us back on the schedule here, so we don't have to do this again?
["https://www.w3.org/ns/activitystreams",
"https://w3id.org/security/v1",
{
"zot": "https://social.stephanmaus.de/apschema#",
"id": "@id",
"type": "@type",
"meData": "zot:meData",
"meDataType": "zot:meDataType",
"meEncoding": "zot:meEncoding",
"meAlgorithm": "zot:meAlgorithm",
use std::collections::HashSet;
use std::fmt;
use std::fs::File;
use std::io::BufReader;
use std::io::prelude::*;
#[derive(Clone, Debug)]
enum Edit {
None,
Add,
@nightpool
nightpool / -
Created October 30, 2017 03:04
This file has been truncated, but you can view the full file.
{"0": {"boxes": {"0": {"occluded": 0, "ybr": 578, "ytl": 417, "xbr": 2770, "outside": 0, "attributes": [], "xtl": 2420}, "1": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2770, "outside": 0, "attributes": [], "xtl": 2420}, "2": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2771, "outside": 0, "attributes": [], "xtl": 2421}, "3": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2771, "outside": 0, "attributes": [], "xtl": 2421}, "4": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2772, "outside": 0, "attributes": [], "xtl": 2422}, "5": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2772, "outside": 0, "attributes": [], "xtl": 2422}, "6": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2773, "outside": 0, "attributes": [], "xtl": 2423}, "7": {"occluded": 0, "ybr": 577, "ytl": 417, "xbr": 2768, "outside": 0, "attributes": [], "xtl": 2416}, "8": {"occluded": 0, "ybr": 578, "ytl": 418, "xbr": 2764, "outside": 0, "attributes": [], "xtl": 2409}, "9": {"occluded": 0, "ybr": 579, "ytl": 419, "xbr": 2760, "outside": 0,
@nightpool
nightpool / -
Created October 30, 2017 02:58
This file has been truncated, but you can view the full file.
{"0": {"boxes": {"0": {"occluded": 0, "ybr": 578, "ytl": 417, "xbr": 2770, "outside": 0, "attributes": [], "xtl": 2420}, "1": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2770, "outside": 0, "attributes": [], "xtl": 2420}, "2": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2771, "outside": 0, "attributes": [], "xtl": 2421}, "3": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2771, "outside": 0, "attributes": [], "xtl": 2421}, "4": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2772, "outside": 0, "attributes": [], "xtl": 2422}, "5": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2772, "outside": 0, "attributes": [], "xtl": 2422}, "6": {"occluded": 0, "ybr": 577, "ytl": 416, "xbr": 2773, "outside": 0, "attributes": [], "xtl": 2423}, "7": {"occluded": 0, "ybr": 577, "ytl": 417, "xbr": 2768, "outside": 0, "attributes": [], "xtl": 2416}, "8": {"occluded": 0, "ybr": 578, "ytl": 418, "xbr": 2764, "outside": 0, "attributes": [], "xtl": 2409}, "9": {"occluded": 0, "ybr": 579, "ytl": 419, "xbr": 2760, "outside": 0,