Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env sh
echo "Updating local cache"
sudo apt update
echo "Done updating local cache"
echo "Updating all packages"
sudo apt-get -y dist-upgrade
echo "Done updating all packages"

chmod

The syntax for permissions is:

chmod UGO FILE

'UGO' representing User, Group, and Other respectively.

The following codes add up to create the permissions.

Futures & Streams


"I find that sometimes real-world analogies work well for explaining / remembering concepts. Here's one - it's not perfect but it helps me." "Think that you are at one of those modern sushi restaurants where you have a belt going around the room with sushi boats on it. You just sit down and wait till one goes by, grab it and eat. But they also allow you to order carry out." — Nitya Narasimhan, 2018/06/17

Future

"A Future represents a computation that doesn’t complete immediately. Where a normal function returns the result, an asynchronous function returns a Future, which will eventually contain the result. The future will tell you when the result is ready." — Dart documentation

Verifying my Blockstack ID is secured with the address 1EM69aan9S7rxK3HcFUsXKEym73peM713y https://explorer.blockstack.org/address/1EM69aan9S7rxK3HcFUsXKEym73peM713y