#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 ...
#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. ...