Skip to content

Instantly share code, notes, and snippets.

View 9bow's full-sized avatar
🤔
doing fewer things better

Junghwan Park 9bow

🤔
doing fewer things better
View GitHub Profile
@9bow
9bow / Convert .mov or .MP4 to .gif.md
Created April 23, 2024 12:20 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

@9bow
9bow / obsidian-web-clipper.js
Created February 21, 2024 07:32 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@9bow
9bow / ish-apks.txt
Created July 2, 2022 10:21 — forked from andypiper/ish-apks.txt
Setup iSH / Alpine Linux on iPad
# edit the login message
vi /etc/motd
# switch to usable repos - iSH defaults often failed with EOF errors
echo https://dl-cdn.alpinelinux.org/alpine/v3.13/main > /etc/apk/repositories
echo https://dl-cdn.alpinelinux.org/alpine/v3.13/community >> /etc/apk/repositories
# install some basics
apk add zsh bash
apk add sed attr dialog dialog-doc bash bash-doc bash-completion grep grep-doc

Disable Device Enrollment Program (DEP) notification on macOS BigSur and Monterey

Requirements

  1. Restart in Recovery Mode

    Restart your Mac then hold down the Command & R keys together until you're in the Recovery Mode menu

  2. Click on Utilities then select: Startup Security Utility

@9bow
9bow / modern_js.md
Created February 10, 2022 11:44 — forked from gaearon/modern_js.md
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@9bow
9bow / React Native Clear Cache
Created January 27, 2022 13:16 — forked from jarretmoses/React Native Clear Cache
Clearing the Cache of your React Native Project
RN < 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.50 - watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* && rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean && npm install && npm start -- --reset-cache
RN >= 0.63 - watchman watch-del-all && rm -rf node_modules && npm install && rm -rf /tmp/metro-* && npm run start --reset-cache
npm >= 5 - watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && npm install && npm start -- --reset-cache
Windows - del %appdata%\Temp\react-native-* & cd android & gradlew clean & cd .. & del node_modules/ & npm cache clean --force & npm install & npm start -- --reset-cache
@9bow
9bow / bmt_cmd.sh
Created May 4, 2021 00:57
Benchmark Golang float32 conversion
$ go test -run ^$ -bench Benchmark -count 10 | tee sprint1.txt
goos: darwin
goarch: amd64
pkg: github.com/9bow/go-test-bmt-float32-to-str
cpu: Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
BenchmarkFormatFloatPWithJoin-16 7291 138532 ns/op 69585 B/op 2050 allocs/op
BenchmarkFormatFloatPWithJoin-16 9146 135195 ns/op 69584 B/op 2050 allocs/op
BenchmarkFormatFloatPWithJoin-16 8947 135255 ns/op 69584 B/op 2050 allocs/op
BenchmarkFormatFloatPWithJoin-16 8982 134507 ns/op 69584 B/op 2050 allocs/op
BenchmarkFormatFloatPWithJoin-16 8881 133829 ns/op 69585 B/op 2050 allocs/op
@9bow
9bow / AWSCertifiedDeveloperUnofficialStudyGuide.md
Created April 30, 2021 03:26 — forked from serithemage/AWSCertifiedDeveloperUnofficialStudyGuide.md
AWS 공인 개발자 - 어소시에이트 수험 가이드

Disable Device Enrollment Program (DEP) notification on macOS Catalina.md

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

   c. It will then show a remaining time of about 10-15 minutes

@9bow
9bow / 1226 Burger Index.ipynb.json
Created May 24, 2019 03:49 — forked from hyeshik/1226 Burger Index.ipynb.json
An IPython notebook for analysis of the distributions of fast-food hamburger shops.
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "",
"signature": "sha256:f99925a6f73a1e36bc91415d84266705e3bdf72304d8dba7bcfb6c94ca7b270a"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [