On mac:
- Download the latest release.
- Extract the binary and place it in
/usr/local/bin.
| .ONESHELL: | |
| $(VERBOSE).SILENT: | |
| SHELL := /bin/bash | |
| CYAN := \033[0;36m | |
| NC := \033[0m | |
| .DEFAULT_GOAL := help | |
| help: | |
| grep -E '^[a-zA-Z_-]+:[ \t]+.*?# .*$$' $(MAKEFILE_LIST) | sort | awk -F ':.*?# ' '{printf " ${CYAN}%-24s${NC}\t%s\n", $$1, $$2}' |
| <?php | |
| return [ | |
| 'a5', | |
| 'a4', | |
| 'tablet_9.7', | |
| 'laptop_13', | |
| 'laptop_15', | |
| 'buckwheat', | |
| ]; |
| #!/usr/bin/env node | |
| const fs = require('fs') | |
| const os = require('os') | |
| const readline = require('readline') | |
| const home = `${os.homedir()}` | |
| const configFile = `${home}/.ssh/config` | |
| const lines = fs.readFileSync(configFile, 'utf-8').split('\n') |
| (async function() { | |
| const REMOVE_BUTTON_TEXT = 'Remove from Watch later' | |
| // de-DE: const REMOVE_BUTTON_TEXT = 'Aus "Später ansehen" entfernen' | |
| // pt-BR: const REMOVE_BUTTON_TEXT = 'Remover de Assistir mais tarde' | |
| // swe-SE: const REMOVE_BUTTON_TEXT = 'Ta bort från Titta senare' | |
| // zh-Hans-CN: const REMOVE_BUTTON_TEXT = '从稍后观看中移除' | |
| // ru-RU: const REMOVE_BUTTON_TEXT = 'Удалить из плейлиста "Смотреть позже"' | |
| const playlistName = document.querySelector('#title a').text |
| _task() { | |
| TASKS=$(./tasks.sh ls-func) | |
| local -a LIST=() | |
| while IFS='' read -r line; do LIST+=("$line"); done < <(compgen -W "$TASKS") | |
| } | |
| complete -F _task task |
| TARGETS = func1 func2 func3 | |
| $(TARGETS): %: | |
| ./funcs.sh $* |
| convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico |
On mac:
/usr/local/bin.| #!/bin/bash | |
| readonly INTERFACE="wg0" | |
| # Generate peer keys | |
| readonly PRIVATE_KEY=$(wg genkey) | |
| readonly PUBLIC_KEY=$(echo ${PRIVATE_KEY} | wg pubkey) | |
| readonly PRESHARED_KEY=$(wg genpsk) | |
| readonly IP=$(curl ifconfig.so) |
| USERNAME= | |
| DOMAIN= |