This file contains 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
# Nerd Fonts for your IDE | |
# https://www.nerdfonts.com/font-downloads | |
brew tap homebrew/cask-fonts && brew install --cask font-3270-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-fira-mono-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-go-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-lgc-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-inconsolata-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-monofur-nerd-font | |
brew tap homebrew/cask-fonts && brew install --cask font-overpass-nerd-font |
This file contains 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
1) Install cloudflared using homebrew: | |
brew install cloudflare/cloudflare/cloudflared | |
2) Create /usr/local/etc/cloudflared/config.yaml, with the following content | |
proxy-dns: true | |
proxy-dns-upstream: | |
- https://1.1.1.1/dns-query | |
- https://1.0.0.1/dns-query |
This file contains 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
[unix_http_server] | |
file=/tmp/supervisor.sock ; path to your socket file | |
[supervisord] | |
logfile=/var/log/supervisord/supervisord.log ; supervisord log file | |
logfile_maxbytes=50MB ; maximum size of logfile before rotation | |
logfile_backups=10 ; number of backed up logfiles | |
loglevel=error ; info, debug, warn, trace | |
pidfile=/var/run/supervisord.pid ; pidfile location | |
nodaemon=false ; run supervisord as a daemon |
This file contains 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
sudo apt install ruby ruby-dev | |
sudo gem install travis | |
# install path: /var/lib/gems/ |
This file contains 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
sudo apt install ruby ruby-dev | |
sudo gem install travis | |
# install path: /var/lib/gems/ |
This file contains 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
```json | |
"ava": { | |
"require": "esm", | |
"babel": { | |
"extensions": [ | |
"js", | |
"mjs" | |
], | |
"testOptions": { | |
"presets": [ |
[get] /api/signages?stationCode=mkk&type=poster
{
MKK: {
"A1":[
{
"name": {
"zh-hk": "中銀",
"en": "BOC",
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
NewerOlder