Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Re:CW
// @namespace http://river.lgbt/
// @version 0.1
// @description Add "re:" to CWs in Mastodon Web UI
// @author River Song
// @match *://*/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=joinmastodon.org
// @grant none
// ==/UserScript==
@RiverSongFox
RiverSongFox / hello@nikolai.kim.pub
Created September 15, 2022 04:44
Nikolai's PGP Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGKsSWYBEACutHFjojyKVohjgcR0hkDoA93M+4pP6MQ15I9aAty58aq3R70S
JhvIhOwvtVMJVguYlpjI0frn3VbSkU4rbQSZT7pFacv0W5734kzsLH+xe8tzBwM4
2kdhaCl6fokKTMvkLyT/HJCgKx4vtxUEGc0sYeevvrpUz+Omd78YBmL3Cx7fTipg
4pXYOynObRqB6P6eoI6q+UXbTEVr4svVBlUEzzRZK+WJctTNNcJ2YCt0Ecw0SIRF
UbvFcMnRaD4CCrBuFg+mJIZ6URZAZk0yPu6Ny/ngGfzmH11Xz+Kt60xAX6UNmKK/
sIUTLvKsGJw5qwdBWSx4N8VsSCD5Vxhqvvkjsc9k7dNO3T7fhrS+rtNq3Tqzf+7r
gSNITeSLuxKdorb4Kq5pfAVF0CmGSfEZMWdLoeyI+gtRwb6+GVLIqIMU2BWw91u0
ZvV6FIDTdzHuEjIVaREcpZNGCfJNEVW0YYb2mZzo0X9ciTIbheYWywSGD4pOn62R
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@RiverSongFox
RiverSongFox / wordCount.js
Created July 20, 2019 07:23
IELTS Word Counter
function wordCount(text) {
const txt = trim(text).replace(/\s+/g, ' ')
let wc = 0
if (txt !== "") {
wc = txt.split(' ').length
}
return wc
}
@RiverSongFox
RiverSongFox / fastboot-log.txt
Created January 4, 2017 20:11
ZE550KL Flashing via Fastboot
C:\ft>fastboot.exe flash boot 16stock\16boot.img
target reported max download size of 268435456 bytes
sending 'boot' (24547 KB)...
OKAY [ 0.774s]
writing 'boot'...
FAILED (remote: can't flash unsigned image)
finished. total time: 0.962s
C:\ft>fastboot.exe flash recovery 16stock\16recovery.img
@RiverSongFox
RiverSongFox / index.html
Created October 12, 2016 12:53
Static vs Dynamic allocation #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Static vs Dynamic allocation</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@RiverSongFox
RiverSongFox / main.c
Created August 18, 2016 19:19
ARC+TAB Unpacker
/*
* ARC package extractor utility
* Based on ARC/TAB description from http://forum.xentax.com/viewtopic.php?t=2105
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
struct TabHeader {
@RiverSongFox
RiverSongFox / DECODE_UTF16LE.ABAP
Created February 20, 2016 09:18
Non-latin symbols decoding for Subject certificate field
*&---------------------------------------------------------------------*
*& Form DECODE_UTF16LE
*&---------------------------------------------------------------------*
* Для «расшифровки» кириллицы в поле Субъект сертификата подписи
*----------------------------------------------------------------------*
FORM decode_utf16le CHANGING cv_subject TYPE string.
DATA
: lv_buffer TYPE string
, lv_ucode(4) TYPE c
, lv_char TYPE c
@RiverSongFox
RiverSongFox / se11.txt
Last active October 26, 2015 12:40
Find and export SAP Application Logs messages
z00_log_header_tab = standard table of z00_log_header
LOGNUMBER BALOGNR
OBJECT BALOBJ_D
SUBOBJECT BALSUBOBJ
DATE BALDATE
TIME BALTIME
USER BALUSER
z00_log_message_tab = standard table z00_log_message
Set oShell = CreateObject("WScript.Shell")
strHomeFolder = oShell.ExpandEnvironmentStrings("%USERPROFILE%")
strLogFolder = strHomeFolder + "\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.MSO"
Set oFS = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFS.GetFolder(strLogFolder)
Dim oMoment: oMoment = Now()