TLDR: Use for...of instead of forEach() in asynchronous code.
For legacy browsers, use for...i or [].reduce()
To execute the promises in parallel, use Promise.all([].map(...))
| # Last updated May, 2024 for Apple silicon Macs | |
| # Install Homebrew if you don't already have it: https://brew.sh | |
| # install nano from homebrew | |
| brew install nano nanorc | |
| # update your nanorc file | |
| echo 'include "'"$(brew --cellar nano)"'/*/share/nano/*.nanorc"' >> ~/.nanorc | |
| # close and re-open your terminal and you'll have syntax highlighting |
| /********* | |
| pollux labs, 2020 | |
| *********/ | |
| /*** Your WiFi Credentials ***/ | |
| const char* ssid = "your ssid"; | |
| const char* password = "your password"; | |
| /* | |
| https://events.ham-yota.com/logbook?search=om5ast&eventStation= | |
| Dropdown from LogBook filter in browser console | |
| */ | |
| var options = $('#logbook-search-form > div.form-group.form-group--station > label > select option'); | |
| var values = $.map(options ,function(option) { | |
| return option.value; | |
| }); | |
| console.log(values.join(',')); | |
| /* |
Typing vagrant from the command line will display a list of all available commands.
Be sure that you are in the same directory as the Vagrantfile when running these commands!
vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUsergh repo list --limit 100 --visibility privategh repo list --limit 100 --visibility publicgh repo list --limit 100 --visibility public --forkgh repo list --limit 100 --visibility public --sourcegh repo list --limit 100 --visibility public --json nameWithOwnergh repo list --limit 100 --visibility public --json nameWithOwner | jq '.[] | .nameWithOwner'