#cli #node #git #direnv #awsDirenv setup for multiple git/GitHub, npm and AWS accounts/credentialsIn this post, we’ll look at how to configure direnv to manage multiple git, GitHub, npm and AWS accounts and credentials on a single machine. ...
#git #cligit diff by wordThe default diffing algorithm for git diff is by lines. There are scenarios where it’s more interesting to diff by word, for example: long lines. In that case it’s useful to use --word-diff=color. ...
#git #github #cli #vscodegit/GitHub CLI set editor to vim or VSCodeThe GitHub CLI (gh binary), defaults to nano as its editor. Developers may want to set it to vim or VSCode to keep it in line with the git CLI’s behaviour. ...
#cliConvert images to data URLs at the command line (Mac OS)Converting images to data URLs using the Mac OS command line is a fun demonstration of the command line’s capabilities. To convert an image file to a data URL, we can use the following shell function: function img-data() { TYPE=$(file --mime-type -b $1) ENC=$(base64 $1) ech ...
#cli #terminal #macCatalina "Apple cannot check for malicious software" Command Line FixFix “X can’t be opened because Apple cannot check for malicious software” and “Developer or app can’t be verified” using the command line. Mac OS X Catalina has introduced a new host of permission issues. There are workarounds for applications ...
#node #sequelize #git #cli #javascriptProgress and roadblocks: a journey into open-sourceEnhancing generators for ES6 in the Sequelize CLI This is the story of my discovery of ES6-class style model definitions with Sequelize (see Using ES6 classes for Sequelize 4 models). The realisation that the current Sequelize CLI model generator didn’t support it (as is e ...
#node #javascript #cliHow to make beautiful, simple CLI apps with NodeChannel your inner Sindre Sohrus and ship a beautifully simple CLI app using Node. Command line apps are a neat way to package repetitive tasks. This will walk you through some tools that are useful to build CLI apps. ...