Skip to content

Instantly share code, notes, and snippets.

/* ==UserStyle==
@name github tab size
@namespace nightpool.club
@version 1.0.0
@description smaller tabs on github!
@author nightpool
==/UserStyle== */
@-moz-document domain("github.com") {
.tab-size[data-tab-size="8"] {
@nightpool
nightpool / make a gif.sh
Last active November 17, 2022 08:52
make good looking small gifs
function gif() {
for file in "$@"
do
echo "${file%.*}".gif
ffmpeg -i "$file" -filter_complex "[0:v] fps=15,scale=w=${WIDTH:-960}:h=-1,split [a][b];[a] palettegen [p];[b] fifo [b]; [b][p] paletteuse" "${file%.*}".gif
done
}
@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,