Skip to content

Instantly share code, notes, and snippets.

@caseywatts
caseywatts / bookmarkleting.md
Last active April 12, 2025 09:23
Making Bookmarklets

This is one chapter of my "Chrome Extension Workshops" tutorial, see the rest here: https://gist.github.com/caseywatts/8eec8ff974dee9f3b247

Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book

Making Bookmarklets

I'm feeling very clever. I've got this sweet line of javascript that replaces "cloud" with "butt". My mom would LOVE this, but she doesn't computer very well. I'm afraid to show her the Developer Console and have her type/paste this in. But she IS pretty good at bookmarks, she knows just how to click those!

A bookmark normally takes you to a new web page. A bookmarklet is a bookmark that runs javascript on the current page instead of taking you to a new page. To declare that it is a bookmarklet, the "location" it points to starts with javascript:.

@glasslion
glasslion / vtt2text.py
Last active March 9, 2025 02:54
This script convert youtube subtitle file(vtt) to plain text.
"""
Convert YouTube subtitles(vtt) to human readable text.
Download only subtitles from YouTube with youtube-dl:
youtube-dl --skip-download --convert-subs vtt <video_url>
Note that default subtitle format provided by YouTube is ass, which is hard
to process with simple regex. Luckily youtube-dl can convert ass to vtt, which
is easier to process.
@mikepruett3
mikepruett3 / shell-setup.ps1
Last active April 16, 2025 06:55
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
@yardnsm
yardnsm / android_backup.md
Last active March 1, 2025 14:02
My "checklist" for backing up my Android devices

vim:fdl=2:

Android backup

Mainly for Google Pixel phones.

I mostly use Google's backup to Google Drive (which is freaking amazing). It backs up the following:

  • App data
  • Call history
@david-crespo
david-crespo / README.md
Last active February 15, 2023 21:30
Download FB tagged photos and videos

Download photos and videos you're tagged in on Facebook

Why

When you download an archive of your Facebook account, Facebook includes photos and videos you've uploaded, but not photos and videos you're tagged in that were uploaded by other people. This is a script to automatically download those.

Setup

This requires Python 3.

@Engr-AllanG
Engr-AllanG / fireflyguide.md
Last active March 24, 2025 13:10
Firefly-III Ubuntu 20.04 Proxmox Installation Guide

Read all the comments first - there are a number of corrections and important points in the comment section

This is a summarized guide I created while installing Firefly-III in a Proxmox (6.2-15) container running Ubuntu 20.04.

I followed this tutorial. It has a link to this other tutorial for installing mariaDB. Furthermore, the official Firefly-iii documentation is Here

This guide has everything I did in one concise summary. Not much is explained. This will take about 1.5 hrs.

Note: I initially followed the official instructions and used a LAMP stack. I had issues with apache and getting the webserver to work (likely because I am not familiar with apache and am more comfortable with nginx).

@bennewton999
bennewton999 / dailyNoteTemplate.txt
Last active September 2, 2024 01:36
My current Daily Note Template in Obsidian utilizing Templater and DataView Plugins
---
creation date: <% tp.file.creation_date() %>
tags: DailyNote <% tp.file.title.split('-')[0] %>
---
modification date: <%+ tp.file.last_modified_date("dddd Do MMMM YYYY HH:mm:ss") %> // This doesn't currently work in front matter, hoping that gets fixed.
# <% tp.file.title %>
<< [[<% tp.date.now("YYYY-MM-DD", -1, tp.file.title, "YYYY-MM-DD") %>]] | [[<% tp.date.now("YYYY-MM-DD", 1, tp.file.title, "YYYY-MM-DD") %>]]>>
@taskylizard
taskylizard / fmhy.md
Last active April 17, 2025 13:34
/r/freemediaheckyeah, in one single file (view raw)

"Any sufficiently advanced technology is indistinguishable from magic." by - Arthur C. Clarke | CCCB LAB

Arthur C. Clarke was a scientist, science writer and author of science fiction stories and novels. This quote of his reflects on the early beginnings of technology and offers us a way of linking up the two exhibitions that have been held this year at the CCCB: Black Light and Stanley Kubrick.

this quote it's also refered on [YouTube] Why Magic Systems don't feel Magical | Tale Foundry - 2023/05/31

Learning