Skip to content

Instantly share code, notes, and snippets.

View cheeaun's full-sized avatar
📬
Subscribe to my newsletter https://cheeaun.substack.com/

Chee Aun cheeaun

📬
Subscribe to my newsletter https://cheeaun.substack.com/
View GitHub Profile
@cheeaun
cheeaun / servers-custom-emojis.csv
Last active April 24, 2024 02:39
Servers with custom emojis count
domain count
pixey.org 22671
landofkittens.social 15322
metapixl.com 13859
lea.pet 13344
fedi.absturztau.be 12684
moth.zone 12665
mastodon.sergal.org 11789
shota.house 11212
shitposter.world 9858
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 49 columns, instead of 36 in line 8.
Code,0000,0030,0100,0130,0200,0230,0300,0330,0400,0430,0500,0530,0600,0630,0700,0730,0800,0830,0900,0930,1000,1030,1100,1130,1200,1230,1300,1330,1400,1430,1500,1530,1600,1630,1700,1730,1800,1830,1900,1930,2000,2030,2100,2130,2200,2230,2300,2330
CC1,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC10,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC11,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC12,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC13,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC14,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC15,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,l,m,l,l,l,l
CC16,l,l,l,l,l,l,l,l,l,l,l,l,l,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,m,
@cheeaun
cheeaun / mapbpx-tiles3dloader.js
Created October 9, 2021 01:29
Mapbox GL JS + Deck.gl Tiles3DLoader example
import MapboxLayer from '@deck.gl/mapbox/dist/esm/mapbox-layer';
import { Tiles3DLoader } from '@loaders.gl/3d-tiles';
import { Tile3DLayer } from '@deck.gl/geo-layers';
const buildingsLayer = new MapboxLayer({
id: 'buildings',
type: Tile3DLayer,
data: 'URL TO tileset.json',
loader: Tiles3DLoader,
loadOptions: {
export default function TimeSymbol({ type = 'wd' }) {
const count = 3;
const size = 6;
const gutter = 1;
const typeHighlights = {
wd: [0, 1, 0],
sat: [0, 0, 1],
sun: [1, 0, 0],
}[type.toLowerCase()];
const typeColor = {
@cheeaun
cheeaun / README.md
Last active April 29, 2024 21:50
Karabiner script to map new Macbook Globe🌐/fn key to open Mumu emoji picker
@cheeaun
cheeaun / youtube-dl-specific-format.md
Last active June 8, 2021 03:43
youtube-dl download specifc format
  1. youtube-dl -F VIDEO_ID - shows a list of formats available with codes in the first column
  2. youtube-dl -f FORMAT_CODE VIDEO_ID - specify the format code and download the exact format
@cheeaun
cheeaun / ocr.sh
Last active December 6, 2023 20:38
macOCR script for Raycast. Preview https://twitter.com/cheeaun/status/1395973544983425025
#!/bin/bash
# Dependency: requires macOCR
# Download: https://github.com/schappim/macOCR
# @raycast.schemaVersion 1
# @raycast.title macOCR
# @raycast.mode silent
# @raycast.author Lim Chee Aun
# @raycast.authorURL https://github.com/cheeaun
@cheeaun
cheeaun / polyline.svg
Created April 29, 2021 13:01
Render encoded polyline on SVG: polyline.svg#[ENCODED_POLYLINE_STRING]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
npx local-cors-anywhere
@cheeaun
cheeaun / random-chmod-commands.txt
Last active August 26, 2022 08:37
Random chmod commands
Set all files to 644
> find . -type f -exec chmod 644 {} \;
Set all folders to 755
> find . -type d -exec chmod 755 {} \;
Set all .bin files to executable
> chmod +x node_modules/.bin/*
Find all .bin files