Skip to content

Instantly share code, notes, and snippets.

@jsit
jsit / kottke-recommends.opml
Last active May 11, 2022
Kottke Recommends OPML
View kottke-recommends.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.1">
<head>
<title>Kottke Recommended Follows</title>
</head>
<body>
<outline text="Kottke Recommends" title="Kottke Recommends">
<outline title="A Thing Or Two" xmlUrl="https://www.athingortwohq.com/newsletter?format=rss"/>
<outline title="A Whole Lotta Nothing" xmlUrl="https://a.wholelottanothing.org/feed/"/>
<outline title="Anil Dash" xmlUrl="https://anildash.com/rss/"/>
View keybase.md

Keybase proof

I hereby claim:

  • I am jsit on github.
  • I am jays (https://keybase.io/jays) on keybase.
  • I have a public key whose fingerprint is 0B61 0F1F 2188 2218 5930 D6A9 CF75 BDF8 9AA7 EF4D

To claim this, I am signing this object:

@jsit
jsit / Wordle Streak Transfer.txt
Last active Feb 27, 2022
Wordle Streak Transfer
View Wordle Streak Transfer.txt
https://www.nytimes.com/games/wordle/index.html?data={%22statistics%22:{%22currentStreak%22:32,%22maxStreak%22:32,%22guesses%22:{%221%22:0,%222%22:1,%223%22:5,%224%22:20,%225%22:11,%226%22:6,%22fail%22:1},%22winPercentage%22:98,%22gamesPlayed%22:44,%22gamesWon%22:43,%22averageGuesses%22:4}}
View removeUTMCodes.js
javascript:(function()%7Bvar%20tidyurl=window.location.href.replace(/utm_(term%7Ccontent%7Csource%7Cmedium%7Ccampaign)=%5B%5E&%5D+&?/g,%22%22).replace(/mc_(eid%7Ccid)=%5B%5E&%5D+&?/g,%22%22).replace(/ref=%5B%5E&%5D+&?/g,%22%22).replace(/%5C??$/g,%22%22);if(history.replaceState)%7Bhistory.replaceState(null,%22%22,tidyurl)%7Delse%7Bwindow.location=tidyurl%7D%7D)();
@jsit
jsit / kill_idiot.sl
Created Jun 22, 2021
Kill messages from user and all replies to messages from user in slrn
View kill_idiot.sl
% Path: pingwin.icm.edu.pl!agh.edu.pl!news.wnaft.agh.edu.pl!news.memax.krakow.pl!news.sim.pl!lublin.pl!uw.edu.pl!news.nask.pl!orion.cst.tpsa.pl!news.task.gda.pl!news.icm.edu.pl!home.extravaganza.pl!jr211
% From: jr211@students.mimuw.edu.pl (Jan Rekorajski)
% Newsgroups: pl.comp.os.advocacy
% Subject: Re: Dajcie =?iso-8859-2?Q?ju=BF_spok=F3j?= Expertowi
% Date: 12 Apr 1999 02:38:42 GMT
% Organization: The Shire
% Lines: 249
% Message-ID: <slrn7h2n5i.17q.jr211@home.extravaganza.pl>
% References: <N6VM2.4295$_u5.498155@news.tpnet.pl> <370A77BD.7FDDBAED@vela.filg.uj.edu.pl> <Pine.LNX.4.02.9904070915210.829-100000@manjak.knm.org.pl> <c7g16c39by.fsf@home.bti.pl> <slrn7gn3dv.s0.druzus@uran.nat.org.pl> <370BD987.C4BDC2D8@fnet.pl>
% NNTP-Posting-Host: pf157.warszawa.ppp.tpnet.pl
@jsit
jsit / .gitconfig
Created Dec 22, 2020
Git config with conditional to test Git version
View .gitconfig
[alias]
lg = "!if (( \
$(echo \"$(git --version | sed -E 's/git version ([0-9]+.[0-9]+).*/\\1/') > 2.20\" | bc) \
)); then \
DATE="--date=human"; \
else \
DATE="--date=short"; \
fi; \
git log --pretty=tiny --abbrev-commit --$DATE"
@jsit
jsit / fimoculous-blogs.opml
Last active Sep 14, 2020
fimoculous blogs of the year rss opml
View fimoculous-blogs.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml>
<outline text="fimoculous">
<outline xmlUrl="http://amysrobot.com/index.rdf" />
<outline xmlUrl="http://busblog.tonypierce.com/feed" />
<outline xmlUrl="http://diablocody.blogspot.com/feeds/posts/default?alt=rss" />
<outline xmlUrl="http://earlboykins.blogspot.com/feeds/posts/default?alt=rss" />
<outline xmlUrl="http://eyeteeth.blogspot.com/feeds/posts/default?alt=rss" />
<outline xmlUrl="http://feeds.feedburner.com/Artsjournal" />
<outline xmlUrl="http://feeds.feedburner.com/Metafilter" />
@jsit
jsit / blogger-minima-blue.html
Last active Jan 4, 2020
Minima Blue Blogger Theme
View blogger-minima-blue.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><$BlogPageTitle$></title>
<$BlogMetaData$>
<style type="text/css">
/*
@jsit
jsit / ag-filename-match.vim
Last active Sep 18, 2019
Native Vim search with Ag, including second parameter for filename match pattern
View ag-filename-match.vim
function! ParseAgList(...)
let l:string = join(a:000)
" http://vpaste.net/qTrzV
" Thanks irc://chat.freenode.net/m_ben,isnick
let l:pat = '\v%([^\\]\\)@<!\s+|([''"])%(.{-})\\@<!\1\zs\s*'
let l:args = split(l:string, pat)
if len(l:args) > 1
" sanitize
@jsit
jsit / GitHub File View Bookmarklets.md
Created Dec 20, 2018
GitHub File View Bookmarklets
View GitHub File View Bookmarklets.md

GitHub File View Bookmarklets

Collapse JS

javascript:var%20files%20=%20document.querySelectorAll('.file-header[data-path$=".js"]%20.js-details-target[aria-expanded=true]');%20for%20(i%20=%200;%20i%20<%20files.length;%20i++)%20{%20files[i].click();%20}

Expand JS

javascript:var%20files%20=%20document.querySelectorAll('.file-header[data-path$=".js"]%20.js-details-target[aria-expanded=false]');%20for%20(i%20=%200;%20i%20<%20files.length;%20i++)%20{%20files[i].click();%20}

Show all comments

javascript:var%20files%20=%20document.querySelectorAll('.js-toggle-file-notes:not(:checked)');%20for%20(i%20=%200;%20i%20&lt;%20files.length;%20i++)%20{%20files[i].click();%20}