Skip to content

Instantly share code, notes, and snippets.

View baadaa's full-sized avatar
🥚
bald

Bumhan Yu baadaa

🥚
bald
View GitHub Profile
@baadaa
baadaa / enable-app.sh
Created September 21, 2021 17:04
Bypass Gatekeeper on MacOs for certain apps
# For a certain application run in Terminal:
sudo xattr -rd com.apple.quarantine /Applications/LockedApp.app
@baadaa
baadaa / speedup.js
Last active June 4, 2021 15:25
Playback speed
document.querySelectorAll('video').forEach( vid => vid.playbackRate = 1.75 )
curl "api.openweathermap.org/data/2.5/weather?id=5128549&appid=9bb1be56049c4c4feecbb8f086e85d5c&units=metric" | json_pp
curl "api.openweathermap.org/data/2.5/onecall?lon=40.9115&lat=73.7824&appid=9bb1be56049c4c4feecbb8f086e85d5c&units=metric" | json_pp
@baadaa
baadaa / gist:84557afb8efbc79fc5a3d8a3c1638353
Last active September 21, 2020 17:51
youtube-dl audio extract template
youtube-dl -f bestaudio [[insert-url-here]] --extract-audio --audio-format mp3 --audio-quality 0 --metadata-from-title "%(artist)s - %(title)s" --embed-thumbnail --add-metadata -o "%(title)s.%(ext)s"
@baadaa
baadaa / .gitconfig
Created September 4, 2020 17:19
.gitconfig global
[user]
name = Bumhan Yu
email = bumhan.yu@gmail.com
[core]
excludesfile = /Users/bumhanyu/.gitignore_global
@baadaa
baadaa / Fuzzy-Search-UI.md
Created April 25, 2020 17:53
Fuzzy Search for In-Page navagation UI

Simple Fuzzy Search UI implementation

Summary

  • For an in-page navigation UI, implemented Jake Albaugh's Fuzzy Search
  • HTML markup consists of two sections: fuzzy search form area, and a full list area.
  • Users can either quick fuzzysearch for a specific company or browse the full list.

Live Demo

Visit this page to see it in action

@baadaa
baadaa / Cloudinary-API.MD
Last active April 25, 2020 16:36
Cloudinary API for Node: Load all photo assets saved in the cloud, and save as a JSON

Create Resource Photo List from Cloudinary Account

Summary

  • Running as a server-side app, this creates a JSON file at ../data/ with list of images from Cloudinary.
  • Not meant to be constantly running on the server as the client-side app loads the JSONs only at first load. Run this only if/when there's an update to Cloudinary resource archive—i.e. files added or/and removed.
  • Created for a simple photo slideshow use case in this personal app

Setup

Make sure to create api-creds.js file as below. (Not included in this Gist)

@baadaa
baadaa / code --list-extensions
Last active September 4, 2020 14:50
VS Code Extensions list dump from work
CoenraadS.bracket-pair-colorizer
dawhite.mustache
dbaeumer.vscode-eslint
DiegoMolina.css-minify
donjayamanne.githistory
eriklynd.json-tools
esbenp.prettier-vscode
formulahendry.auto-rename-tag
HookyQR.beautify
HookyQR.minify
@baadaa
baadaa / keybindings.json
Last active September 4, 2020 15:06
VS Code key binding dump from work
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+1", "command": "workbench.action.focusFirstEditorGroup" },
{ "key": "ctrl+2", "command": "workbench.action.focusSecondEditorGroup" },
{ "key": "ctrl+3", "command": "workbench.action.focusThirdEditorGroup" },
{ "key": "cmd+1", "command": "workbench.action.openEditorAtIndex1" },
{ "key": "cmd+2", "command": "workbench.action.openEditorAtIndex2" },
{ "key": "cmd+3", "command": "workbench.action.openEditorAtIndex3" },
{ "key": "cmd+4", "command": "workbench.action.openEditorAtIndex4" },
{ "key": "cmd+5", "command": "workbench.action.openEditorAtIndex5" },
@baadaa
baadaa / settings.json
Last active September 4, 2020 14:58
VS Code user settings dump from work
{
"files.associations": {
"*.conf": "json",
"*.block": "html",
"*.region": "html"
},
"editor.fontFamily": "Fira Code",
"editor.fontSize": 15,
"editor.lineHeight": 20,
"editor.tabSize": 2,