sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
# Useful to prevent Macbooks to go to sleep when closing the lid instead of running tools that requires a Kernel Extension (e.g. InsomniaX) and more | |
# | |
# References: | |
# https://www.unix.com/man-page/osx/1/pmset/ | |
# https://www.unix.com/man-page/osx/8/caffeinate/ | |
# To stop sleep for a command: ###################### | |
caffeinate -disu make | |
# To permanently change sleep settings: ###################### |
#!/bin/bash | |
################################################################### | |
# Script Name : get-md-images.sh | |
# Description : Download all remote images written as markdown | |
# in our files and replace URLs by local path. | |
# Author : Yann Defretin | |
# Email : yann@defret.in | |
################################################################### |
const http2 = require('http2'); | |
const fs = require('fs'); | |
const path = require('path'); | |
const zlib = require('zlib'); | |
const brotli = require('brotli'); // npm package | |
const PORT = 3032; | |
const BROTLI_QUALITY = 11; // slow, but we're caching so who cares | |
const STATIC_DIRECTORY = path.resolve(__dirname, '../dist/'); | |
const cache = {}; |