Skip to content

Instantly share code, notes, and snippets.

View hypothesis_demo_bug_search_after_error.js
{
"total": 1920942,
"rows": [
{
"id": "YCs7TFI5EeyqEndNCfG9Fw",
"created": "2021-11-30T23:58:12.125455+00:00",
"updated": "2021-11-30T23:58:12.125455+00:00",
"user": "acct:jliskin@hypothes.is",
"uri": "https://pressbooks.uiowa.edu/salondeclasecopy/chapter/leccion-2c-programa-dual-west-liberty-iowa/",
"text": "I suggest putting words/phrases in alphabetical order",
View hypothesis_demo_bug_limit_2_ok.js
{
"total": 1920942,
"rows": [
{
"id": "nBXu2lLQEeyV2lNeCgRXyA",
"created": "2021-12-01T18:00:46.426922+00:00",
"updated": "2021-12-01T18:00:46.426922+00:00",
"user": "acct:gyuri@hypothes.is",
"uri": "https://www.youtube.com/channel/UC_27-UwLOxQTDfC1F-vLlxA",
"text": "x",
View hypothesis_demo_bug_limit_1_ok.js
{
"total": 1920942,
"rows": [
{
"id": "nBXu2lLQEeyV2lNeCgRXyA",
"created": "2021-12-01T18:00:46.426922+00:00",
"updated": "2021-12-01T18:00:46.426922+00:00",
"user": "acct:gyuri@hypothes.is",
"uri": "https://www.youtube.com/channel/UC_27-UwLOxQTDfC1F-vLlxA",
"text": "x",
View gm_youtube_metadata_discrepancy_demo_0_1.js
// ==UserScript==
// @name YouTube Metadata Discrepancy Preview
// @namespace http://github.com/kael#GM
// @version 0.1
// @description Compare client-side and remote YouTube pages metadata
// @author http://github.com/kael
//
// @include https://*.youtube.com/*
// ==/UserScript==
@kael
kael / wsclient.js
Created Nov 7, 2021 — forked from judell/wsclient.js
minimal hypothesis websocket client for js
View wsclient.js
function connect() {
return new Promise(resolve => {
var ws = new WebSocket('wss://hypothes.is/ws?access_token=...')
function waitSocket() {
if (ws.readyState == 1) {
clearInterval(interval)
resolve(ws)
}
}
var interval = setInterval(waitSocket, 1000)
View gist:e5ae5408d6b3fbf1ab35f9d264fb2d23
A1 search return (count) annotation "/vendor/mynamespace/*" value.priv "*"
ESEARCH (TAG "A1") COUNT 0
A1 OK Completed (0 msgs in 2.815 secs)
A2 search return (count) annotation "/vendor/messagingengine.com/*" value.shared "*"
ESEARCH (TAG "A2") COUNT 9563
A2 OK Completed (9563 msgs in 4.774 secs)
A3 uid fetch 446091 (annotation ("/*" value))
146809 FETCH (UID 446091 ANNOTATION
@kael
kael / LICENSE.txt
Created Feb 3, 2020 — forked from thingsinjars/LICENSE.txt
Chainable DOM Manipulation
View LICENSE.txt
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Simon Madine <http://thingsinjars.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@kael
kael / imap-capability.md
Created Nov 26, 2019 — forked from emersion/imap-capability.md
Common IMAP servers CAPABILITY responses
View imap-capability.md

FastMail

* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE AUTH=OTP SASL-IR
* CAPABILITY IMAP4 IMAP4rev1 LITERAL+ ID LOGINDISABLED ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE IDLE URLAUTH

Gandi.net

View IMAP ABNF
; extracted from RFC 3501 and adapted for Instaparse
address = "(" addr-name SP addr-adl SP addr-mailbox SP
addr-host ")"
addr-adl = nstring
; Holds route from [RFC-2822] route-addr if
; non-NIL
addr-host = nstring
@kael
kael / gist:ca673a1173bf8a37709c57a25e9775fd
Created Sep 10, 2019 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.
View gist:ca673a1173bf8a37709c57a25e9775fd

Client-side SSL

For excessively paranoid client authentication.


Updated Apr 5 2019:

because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.

some other notes: