Dashboard UI for viewing host machine system information based on node-red-dashboard and node-red-contrib-os. Includes CPU, Memory & other info.
UI Preview
Nodes
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| #!/usr/bin/env ruby | |
| require 'fileutils' | |
| # Originally -- Dave Deriso -- [email protected] | |
| # Contributor -- G. Richard Bellamy -- [email protected] | |
| # If you contribute, put your name here! | |
| # To get your team ID: | |
| # 1. Go to your GitHub profile, select 'Personal Access Tokens', and create an Access token | |
| # 2. curl -H "Authorization: token <very-long-access-token>" https://api.github.com/orgs/<org-name>/teams | |
| # 3. Find the team name, and grabulate the Team ID |
| Go to Bitbucket and create a new repository (its better to have an empty repo) | |
| git clone [email protected]:abc/myforkedrepo.git | |
| cd myforkedrepo | |
| Now add Github repo as a new remote in Bitbucket called "sync" | |
| git remote add sync [email protected]:def/originalrepo.git | |
| Verify what are the remotes currently being setup for "myforkedrepo". This following command should show "fetch" and "push" for two remotes i.e. "origin" and "sync" | |
| git remote -v |
| var collectionNames = db.getCollectionNames(), stats = []; | |
| collectionNames.forEach(function (n) { stats.push(db[n].stats()); }); | |
| stats = stats.sort(function(a, b) { return b['size'] - a['size']; }); | |
| for (var c in stats) { print(stats[c]['ns'] + ": " + stats[c]['size'] + " (" + stats[c]['storageSize'] + ")"); } |
I wrote a really simple JavaScript script that uses jQuery to extract all the categories from Facebook's "Create a page" page.