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
Apple removed colored sub-pixel antialiasing in MacOS Mojave | |
(https://developer.apple.com/videos/play/wwdc2018/209/ starting from ~28min) | |
To make fonts look normal in Sublime Text, add to Preferences: | |
// For the editor | |
"font_options": [ "gray_antialias" ], | |
// For the sidebar / other elements | |
"theme_font_options": [ "gray_antialias" ], |
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
// dependencies | |
const fs = require('fs'); | |
const log = require('../log'); | |
const dockerSecret = {}; | |
dockerSecret.read = function read(secretNameAndPath) { | |
try { | |
return fs.readFileSync(`${secretNameAndPath}`, 'utf8'); | |
} catch(err) { |
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
#!/usr/bin/python | |
import requests | |
import time | |
import sys | |
import json | |
# Login and get a token | |
endpoint = "https://fromshado.ws" | |
# Admin credentials | |
ADMINUSER = "" |
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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
OlderNewer