Found this gem on medium
Can help with problems like:
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
TL;DR
Found this gem on medium
Can help with problems like:
gyp: No Xcode or CLT version detected!
gyp ERR! configure error
TL;DR
I often need to play and experiment and using different environments help. In the era of virtualisation we have many options. For this exercise, I'm using Ubuntu Multipass which allow you to vey quickly create virtual machines.
The steps described here will not only install the latest version of Node.js but will also setup the environment to install any global packages in ~/.npm-packages.
$ multipass launch -n nodejs| #!/usr/bin/env bash | |
| # Refer to https://github.com/k3s-io/k3s/releases for your prefered release | |
| export INSTALL_K3S_VERSION="v1.24.10+k3s1" | |
| for node in node1 node2 node3;do | |
| multipass launch -n $node -c 2 -m 4G | |
| done | |
| # Init cluster on node1 |
The Clockify API is well documented and uses a straight forward REST API
Here is a quick proof of concept run:
$ export API_KEY="<your-key>"
$ python3
Python 3.7.7 (default, Mar 10 2020, 15:43:33)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.So, the concept is to get a summary of the size of each S3 bucket - almost like the du command on Linux.
The code concept from below is still untested, but I will soon test it and hopefulle have a modified general purpose utility for wider use.
Basic code from stackexchange.com:
#!/bin/bash
aws_profile=('profile1' 'profile2' 'profile3');
#loop AWS profiles| // Also refer to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | |
| const numbers = [1, 2, 3]; | |
| const doubleNumbers = numbers.map((num) => { | |
| return num * 2; | |
| }); | |
| console.log(numbers); | |
| console.log(doubleNumbers); |
| const person = { | |
| name: 'Pete' | |
| }; | |
| const newPerson1 = person; // person is referenced (not a copy) | |
| const newPerson2 = { | |
| ...person // perons is spread (copied) and the reference is not used | |
| }; |
| <div id="app"></div> |