Skip to content

Instantly share code, notes, and snippets.

View henrywintif's full-sized avatar

Henry Wintif henrywintif

View GitHub Profile
@3kh0
3kh0 / rename-tab.js
Created October 25, 2021 14:36
A simple bookmarklet to rename any tab you wish!
javascript:(function(){/* Made by 3kh0 https://3kh0.github.io */ var title=prompt("Hello! Please enter the new title below:");document.title=title})();
@jberkus
jberkus / gist:6b1bcaf7724dfc2a54f3
Last active January 7, 2024 21:26
Finding Unused Indexes
WITH table_scans as (
SELECT relid,
tables.idx_scan + tables.seq_scan as all_scans,
( tables.n_tup_ins + tables.n_tup_upd + tables.n_tup_del ) as writes,
pg_relation_size(relid) as table_size
FROM pg_stat_user_tables as tables
),
all_writes as (
SELECT sum(writes) as total_writes
FROM table_scans
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: