Skip to content

Instantly share code, notes, and snippets.

View enkunkun's full-sized avatar

enkunkun enkunkun

View GitHub Profile
enkunkun /
Last active January 10, 2020 09:47
Mount swapfile when booting from external storage (see: )
sudo mv com.example.mountswap.plist /Library/LaunchAgents
sudo chown root:wheel /Library/LaunchAgents/com.example.mountswap.plist
sudo launchctl load com.example.mountswap.plist
enkunkun / gist:7884bc9a8206fadb69673f3ec92047e1
Last active February 26, 2020 09:08
avrdude leonardo catalina firmware update
$ ./avrdude -C./avrdude.conf -v -patmega32u4 -c arduino -P /dev/cu.usbmodem14601 -b 19200 -e -Ulock:w:0x3F:m -Uefuse:w:0xfb:m -Uhfuse:w:0xd8:m -Ulfuse:w:0xff:m
avrdude: Version 6.3-20171130
Copyright (c) 2000-2005 Brian Dean,
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "./avrdude.conf"
User configuration file is "/Users/mikawa-lab/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
enkunkun / gist:602c12ecffe0ef74618e8a4b92ea1b95
Created October 11, 2019 10:03
Error: stack level too deep
$ brew config
HEAD: aa043c1d678afd26f50156a83417c296cb9d5a4b
Last commit: 3 days ago
Core tap ORIGIN:
Core tap HEAD: e9ca140a5bd9591173852080a305c8667c8f76bd
Core tap last commit: 4 hours ago
CPU: octa-core 64-bit skylake
enkunkun / gist:89515ae4f2c0e5d6926253368839d937
Created March 22, 2019 13:08
Download converted videos from Google Drive
  1. Sign in to your Google Account.
  2. cookies.txt - Chrome ウェブストア
  3. To download cookies for this tab click here, <- click
  4. $ youtube-dl --cookies /Downloads/cookies.txt
  5. Average download bandwidth is 11.58Mbps, = 1.45 MB/s, = 1.38 MiB/s.
  6. You got a .mp4 video file.
  7. And you can re-uploading video files to Google Drive.
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
and run
enkunkun / gist:de666cccc10751d12b77132e2e421351
Last active June 9, 2018 09:54
Upload to Google Drive with rclone
rclone - rsync for cloud storage
> rclone config
> rclone about remote:
enkunkun / gist:bc25ccc3d02ea98524e45286a194e9e3
Last active February 26, 2018 06:57
リモートUI メモ
~ $ dns-sd -B
Browsing for _http._tcp
DATE: ---Mon 26 Feb 2018---
14:38:42.515 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
14:38:42.516 Add 2 4 local. _http._tcp. Canon MG7700 series
"Instance Name: Canon MG7700 series" -> "Canon MG7700 series"
enkunkun / gist:c90890ab64489bc29f572e4f6f19549b
Created January 23, 2018 16:17
// 1. JDKをインストール (64bit)
// 2. JAVA_HOME, PATH=%JAVA_HOME%\bin; する
// 3. 一度サインアウトして再度ログイン
4. 7zipをインストールする
5. Eclipseをダウンロードする (Windows 64bit, Ultimate)
6. 7zipでzipを開く (
7. pleiadesフォルダを選択する
8. 解凍ダイアログを開いて、解凍先をC:にする
9. 起動する
10. Have a nice day!
enkunkun / gist:fd94a5d5d32d7416dfd9fd2c61372629
Last active December 28, 2017 14:04