Skip to content

Instantly share code, notes, and snippets.

View enkunkun's full-sized avatar

enkunkun enkunkun

View GitHub Profile
@enkunkun
enkunkun / gist:1d3387703af59a5115d4545e86b1d727
Last active December 12, 2016 15:54
download youtube videos with uploader and playlist name on youtube-dl
youtube-dl -o "%(uploader)s/%(playlist_title)s/%(title)s-%(id)s.%(ext)s" <playlist url>
(--download-archive archive.txt)
(-f [ext=mp4])
"%(uploader)s" -> display name
"%(uploader_id)s" -> channel's id
@enkunkun
enkunkun / gist:4085f8861a77d36326c6e136ae9df06d
Last active October 9, 2017 15:46
Maya 2014 のインストール

Windows版

  1. Visual C++ 2005 Service Pack 1 Redistributable ATLのインストールに失敗する
  1. もう一度 Maya Installer からインストールするときに途中で止まる
  • ログなどを確認し、インストールが終わってそうだったら TrustedInstaller をキルすると進む
  1. 言語を英語にするには
  • 環境変数に MAYA_UI_LANGUAGE -> en_US を追加する
  • Rapid Environment Editor http://rapidee.com
@enkunkun
enkunkun / gist:fd94a5d5d32d7416dfd9fd2c61372629
Last active December 28, 2017 14:04
年賀状の季節ですね
昔は筆まめのパッケージ版を毎年買っていた。結構するもんで、3,4000円くらいしていた気がする。
ある年、喪中になったおかげで買わずに済んだ年があった。そこからはネットプリントで図柄を印刷してもらうようになった。
ただ、宛名は印刷してもらえない。
住所録は筆まめに入っているのだが、無料版だと印刷に制限がかかっている。
そこで、一覧表を印刷してから、手で書いている。
来年以降は手で書かずに済むようにしたいので方法を考えていた。
書店には年賀状のムック本が置いてある。この本は500円ほどで購入できる上に筆まめベーシックが入っているそうだ。
ベーシックであればもちろん宛名の印刷はできるだろうし(フォントは選べないかもしれないが)、筆まめ公式サイトで売っているバージョンよりも安い。
使わない手はないだろう。
来年の年賀状はネットプリント図柄+ベーシック宛名にするかもしれない。
@enkunkun
enkunkun / gist:c90890ab64489bc29f572e4f6f19549b
Created January 23, 2018 16:17
Eclipseのインストールにはまらないために
// 1. JDKをインストール (64bit)
// 2. JAVA_HOME, PATH=%JAVA_HOME%\bin; する
// 3. 一度サインアウトして再度ログイン
4. 7zipをインストールする
5. Eclipseをダウンロードする (Windows 64bit, Ultimate)
6. 7zipでzipを開く (pleiades-4.x.x-ultimate-win-64bit-jre_20xxxxxx.zip)
7. pleiadesフォルダを選択する
8. 解凍ダイアログを開いて、解凍先をC:にする
9. 起動する
10. Have a nice day!
@enkunkun
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
^C
"Instance Name: Canon MG7700 series" -> "Canon MG7700 series"
@enkunkun
enkunkun / gist:de666cccc10751d12b77132e2e421351
Last active June 9, 2018 09:54
Upload to Google Drive with rclone
rclone - rsync for cloud storage
https://rclone.org/
https://rclone.org/drive/
https://github.com/ncw/rclone/issues/397
> rclone config
> rclone about remote:
==> 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
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
@enkunkun
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 https://drive.google.com/files/https://drive.google.com/file/d/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/view
  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.
https://translate.google.com/translate?sl=auto&tl=ja&u=https%3A%2F%2Fwww.google.com
@enkunkun
enkunkun / gist:602c12ecffe0ef74618e8a4b92ea1b95
Created October 11, 2019 10:03
Error: stack level too deep
$ brew config
HOMEBREW_VERSION: 2.1.13
ORIGIN: https://github.com/Homebrew/brew
HEAD: aa043c1d678afd26f50156a83417c296cb9d5a4b
Last commit: 3 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: e9ca140a5bd9591173852080a305c8667c8f76bd
Core tap last commit: 4 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: octa-core 64-bit skylake