Skip to content

Instantly share code, notes, and snippets.

View lewis-carson's full-sized avatar

Lewis Carson lewis-carson

View GitHub Profile
@4lun
4lun / reddit-unsubscribe-all-subreddits.js
Last active March 1, 2024 07:31
Unsubscribe from all subreddits
// Visit https://www.reddit.com/subreddits/ and run the following in console (browser dev tools)
// Wait until all the buttons have visibly toggled, refresh page to confirm.
$('.fancy-toggle-button .remove').each(function(i, elem) { setTimeout(function(){ $(elem).trigger('click'); }, i*500) });
@claymcleod
claymcleod / pycurses.py
Last active November 20, 2024 00:23
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active November 20, 2024 03:08
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname