For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 中西文切換鍵的默認設置寫在 default.yaml 裏面 | |
| # 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵 | |
| # | |
| # 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R | |
| # Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用 | |
| # | |
| # 已輸入編碼時按切換鍵,可以進一步設定輸入法中西文切換的形式。 | |
| # 可選的臨時切換策略有三: | |
| # inline_ascii 在輸入法的臨時西文編輯區內輸入字母、數字、符號、空格等,回車上屏後自動復位到中文 | |
| # commit_text 已輸入的候選文字上屏並切換至西文輸入模式 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const randomColor = (() => { | |
| "use strict"; | |
| const randomInt = (min, max) => { | |
| return Math.floor(Math.random() * (max - min + 1)) + min; | |
| }; | |
| return () => { | |
| var h = randomInt(0, 360); | |
| var s = randomInt(42, 98); |
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Add a scheduled sync task at 4:00 am | |
| # Some privileges should be granted to `cron` *manually*, so you may test `* * * * *` (run every second) first to grant the needed privileges in advance | |
| 0 4 * * * osascript /path/to/your/sync-from-chrome-to-safari.scpt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See https://github.com/rikumi/iconsur | |
| yarn global add iconsur | |
| sudo iconsur set /Applications/Android\ File\ Transfer.app -k Airdroid | |
| sudo iconsur set /Applications/Android\ Studio.app/ -l -c 7a5 -s 0.8 | |
| sudo iconsur set /Applications/DaisyDisk.app/ -l | |
| sudo iconsur set /Applications/Decompressor.app/ -l | |
| sudo iconsur set /Applications/Discord.app/ | |
| sudo iconsur set /Applications/Google\ Chrome.app/ | |
| sudo iconsur set /Applications/IINA.app/ -l -c 161d22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| var ( |