Blog

Showing 9 posts.

React Native Navigator Lifecycle Events

Posted
on March 19th, 2019
by Chanoch

Why does componentDidUnmount not get called in ny React Native project? There's a subtlety that requires you to read the documents to understand...

Read more...

Keeping slash trim in Ubuntu

Posted
on January 26th, 2019
by Chanoch

What the partitioning advice forgot to say...

Read more...

Set terminal title in package.json

Posted
on January 24th, 2019
in Javascript, nodejs
by Chanoch

So maybe like me you have 10-20 bash terminal tabs open and Alt-Tab through them to remember which one is running which? What if you could easily set the title of the terminal tab in package.json so running npm run dev would automatically update it?

Read more...

Installing verdaccio as a docker image in Ubuntu 18

Posted
on October 16th, 2018
in nodejs, Javascript
by Chanoch

In order to improve development in areas of dodgy access to internet - trains, government offices. it can be useful to install a local npm repository that will act as a proxy. This also allows publishing your private packages locally.

Read more...

Instal keystone.js using Mongodb Atlas as backend

Posted
on October 15th, 2018
in Javascript, nodejs
by Chanoch

Keystonejs is a simple blogging platform on nodejs and mongo - commonly considered by users as a simple alternative to wordpress.

Mongodb is investing in their saas offering Atlas including providing a free shared tier cluster.

This is a detailed description of how setup works and some gotchas to avoid. For a crib sheet description see the TLDR; blog that will appear at some point at the top of the article.

 

Read more...

Delete files from directory older than nn days

Posted
on October 12th, 2018
by Chanoch

find ../order_images/* -mtime +30 -exec rm {} \;

Read more...

Install docker machine on Ubuntu 18

Posted
on October 12th, 2018
by Chanoch

Summarised version of configuring docker-machine to provision docker hosts on digital ocean available here https://www.digitalocean.com/community/tutorials/how-to-provision-and-manage-remote-docker-hosts-with-docker-machine-on-ubuntu-18-04

Read more...

Installing docker on ubuntu crib-notes

Posted
on October 12th, 2018
by Chanoch

Short version of installing community edition

Read more...

Gun-toting social workers

Posted
on October 2nd, 2018
in Random
by Chanoch

How much has changed since the time of the black panthers?

Read more...

d