Skip to content

Instantly share code, notes, and snippets.

View tizee's full-sized avatar
πŸ™
Work and persevere

Jeff Chiang tizee

πŸ™
Work and persevere
  • Earth, Solar system
View GitHub Profile
@tizee
tizee / main.js
Last active July 15, 2023 15:13
Twitter video download script for Tampermonkey
// ==UserScript==
// @name twitter video downloader
// @namespace http://tampermonkey.net/
// @version 1.0
// @description download twitter video
// @author tizee
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitter.com
// @grant GM_xmlhttpRequest
// ==/UserScript==
@tizee
tizee / main.js
Last active July 11, 2023 02:53 — forked from zoubingwu/twitter_insta_block.js
Twitter insta block
// ==UserScript==
// @name Twitter Insta Block with Firefox support
// @namespace your-namespace-here
// @version 1.1
// @description Adds a "Block User" button on Twitter timeline conversations and blocks the user with one click
// @author zoubingwu, tizee
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@tizee
tizee / latency.txt
Created February 17, 2022 09:01 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@tizee
tizee / Github_public_key.asc
Last active September 23, 2021 16:13
Github_public_key.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQGNBGBBAswBDACsIaoD08APqP8f0DA/+Oj/z2nKcrFYoYcpPKlbe1U/aMCow8ET
meJg28/DEZjrqVEgeK1FLVy5ySexYltQZcJVaAMUo+UCceFLqxUwk/diCB4BMx2Q
cb3C+Lr94rl4QSR+og245U9VAeeiKOF2N3H7MXYs74IyX26bwVefRCES9QAjNJI2
OU5gdX/fJpEjuEVVDiZ7sdFCpq892owj8EpFfx35p6biIiTl+Gu/5ZTAnhl1MzxE
ClY1LnzrLIksz7AFFrXJpySTPhjtYr0JTnwmVaQAbjSquq/GtTNl8BoeJS6PqGmj
mSVinhW4iOvX5aSDziTHbvBYfOXg7l5IlxcfVMIP757VdHzYg+uERJnQ4MDtAuUQ
rf7J5oKHicQfeNfQmLCpSc2RLU45zm7Ach5iVMdyCi6arkb+jLYpdZJzVlOoXQgY
o9YKVxJakhhXqxHBNP9yZEaTig8RLZN2uit9mExWLfPGA+b7CCXyRithBisxE8um
@tizee
tizee / ANSI.md
Created April 26, 2021 17:13 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1b
  • Decimal: 27
@tizee
tizee / TrueColour.md
Last active October 31, 2020 15:39 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@tizee
tizee / keybase.md
Last active July 31, 2020 04:27
Keybase Proof

Keybase proof

I hereby claim:

  • I am tizee on github.
  • I am tizee (https://keybase.io/tizee) on keybase.
  • I have a public key whose fingerprint is 97C6 519E C21B AD50 8129 0E67 D000 B7FE 7324 A871

To claim this, I am signing this object:

@tizee
tizee / πŸ“Š Weekly development breakdown
Last active October 29, 2020 15:16
πŸš€ coding life
TypeScript 9 hrs 34 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 34.0%
JavaScript 7 hrs 28 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 26.5%
Markdown 4 hrs 49 mins β–ˆβ–ˆβ–ˆβ–Œβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 17.1%
Other 1 hr 52 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.6%
HTML 1 hr 31 mins β–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 5.4%