Skip to content

Instantly share code, notes, and snippets.

View kylethedeveloper's full-sized avatar
trying to reinvent time

Kyle kylethedeveloper

trying to reinvent time
View GitHub Profile
@project237
project237 / get_youtube_playlist_json.js
Last active February 17, 2023 17:57
Get a list of video metadata of any public or private youtube playlist (title, id, time left, channel, url) as a json file
// Modifier: user237
// Forked from: https://gist.github.com/silver-mixer/43009c048a5e7e60f2182198ad0a105b
// Description: To download a list of video metadata of any public or private youtube playlist, as a json document, run this script on the playlist page.
// date created: 2023-09-02
(() => {
const VERSION = "user237_v1";
const REGEX_LIST_ID = /\?list=([a-zA-Z0-9-_]+)($|&)/;
const REGEX_TIMELEFT = /t=([0-9]+)/; // get the first capture group using [1]
@Technetium1
Technetium1 / pyfiglet_test.py
Created November 24, 2020 01:19
Test all the pyfiglet fonts with a string. You should probably pipe the output to a file.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from time import sleep
import pyfiglet
with open("pyfigletfonts.txt", "r") as file:
fonts = file.read().splitlines()
for fonty in fonts:
@worldofprasanna
worldofprasanna / terminal-capture.md
Last active April 12, 2025 11:08
Multiple screen terminal capture using asciinema & tmux

Commands Reference

  1. Start a new tmux named session tmux new -s terminal-capture
  2. Split the screen using these commands,
  • vertical split <C-b>"
  • horizontal split <C-b>%
  1. To navigate between the panes,
  • To goto Left pane <C-b> left-key
  • To goto Right pane <C-b> right-key
  • To goto Top pane up-key
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 15, 2025 07:37
set -e, -u, -o, -x pipefail explanation

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

@urbie-mk2
urbie-mk2 / xf86-input-synaptics-1.8.99.1.xf86PostTouchEvent.patch
Last active December 4, 2019 20:22
xf86PostTouchEvent back in xf86-input-synaptics-1.8.99.1
diff -ru xf86-input-synaptics-1.8.99.1/src/synaptics.c xf86-input-synaptics-1.8.99.1-mod/src/synaptics.c
--- xf86-input-synaptics-1.8.99.1/src/synaptics.c 2015-11-25 07:28:43.000000000 +0100
+++ xf86-input-synaptics-1.8.99.1-mod/src/synaptics.c 2016-06-15 14:54:09.961917509 +0200
@@ -1190,7 +1190,8 @@
{
InputInfoPtr pInfo = dev->public.devicePrivate;
SynapticsPrivate *priv = (SynapticsPrivate *) (pInfo->private);
-
+ int i;
+