Skip to content

Instantly share code, notes, and snippets.

View kevinwestern's full-sized avatar

Kevin Western kevinwestern

View GitHub Profile

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname

Keybase proof

I hereby claim:

  • I am kevinwestern on github.
  • I am kestern (https://keybase.io/kestern) on keybase.
  • I have a public key ASCQ2RlgTDWHMFGSnMoOQdYSOCwJtWzcc_3SqHoWfrEhDgo

To claim this, I am signing this object:

@kevinwestern
kevinwestern / gist:069dc781d520d5218f799f1241779978
Created March 11, 2024 02:48
Delete reddit comments shown on your profile, from your profile page
window.getCSRF = () => document.cookie.split('; ').find(s => s.indexOf('csrf_token') === 0).substring('csrf_token='.length)
function deleteComment(id) {
fetch("https://www.reddit.com/svc/shreddit/graphql", {
"method": "POST",
"headers": {
"accept": "application/json",
"content-type": "application/json",
},
"body": JSON.stringify({