Skip to content

Instantly share code, notes, and snippets.

View lewis-carson's full-sized avatar

Lewis Carson lewis-carson

  • 05:33 (UTC +01:00)
View GitHub Profile
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 27, 2024 16:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@claymcleod
claymcleod / pycurses.py
Last active July 20, 2024 00:12
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()
@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) });