Skip to content

Instantly share code, notes, and snippets.

@claui
claui / gettext_workaround.log
Created October 28, 2020 08:22
Code signature workaround for dylibs on macOS 11.0 (Apple Silicon)
$ brew reinstall gettext
[…]
$ gettext --version
Killed: 9
$ replace_inode() {
local filename
for filename; do
chmod o+w "${filename}"
rm -f "${filename}.bak"
mv -f "${filename}" "${filename}.bak"
@timneutkens
timneutkens / index.js
Last active March 4, 2024 14:01
Clear console/terminal in node.js the right way
const readline = require('readline')
const blank = '\n'.repeat(process.stdout.rows)
console.log(blank)
readline.cursorTo(process.stdout, 0, 0)
readline.clearScreenDown(process.stdout)