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]

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;
+