This is a rough shopping list of skills/accounts that will be a benefit for this guide.
- Equinix Metal portal account
GO
experience (basic)iptables
usage (basic)qemu
usage (basic)
#!/bin/bash | |
list_vrfs () { | |
echo -e "\nChoose an option:" | |
PS3=$'\n''Choose an option: ' | |
options=("Show all VRFs" "Show VRFs in a specific metro" "Show specific VRF by UUID") | |
select opt in "${options[@]}" | |
do | |
case $opt in |
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"net" | |
"os" | |
"strconv" | |
"strings" |
#!/bin/bash | |
# Delete all unused image layers | |
docker system prune --all | |
# Delete all unused image layers non-interactive | |
docker system prune --all -f | |
# Run a container from Docker Inc. which cleans up the Virtual Machine | |
docker run --privileged --pid=host docker/desktop-reclaim-space |
In response to https://github.com/terraform-providers/terraform-provider-linode/issues/7 , this gist offers a one-time static list of Linode Regions, Types, Images, and Kernels.
This list will go stale. Consider using the means discussed in that issue or use the Linode CLI to generate fresh results.
linode-cli --text regions list | tr '\t' '|' > regions.md
linode-cli --text images list | tr '\t' '|' > images.md
linode-cli --text kernels list | tr '\t' '|' > kernels.md
linode-cli --text linodes types | tr '\t' '|' > linode-types.md
In this attempt, we will:
# use the latest ubuntu environment (18.04) available on travis | |
dist: bionic | |
language: go | |
# You don't need to test on very old versions of the Go compiler. It's the user's | |
# responsibility to keep their compiler up to date. | |
go: | |
- 1.16.x |
<cfscript> | |
// return true if closure passes for any query row (supplied as a struct) | |
// based on http://cfdocs.org/querysome available in Lucee | |
boolean function QuerySome(required query q, required function f) { | |
for (var r in q) if (f(r)) return true; | |
return false; | |
} | |
</cfscript> |
function createStore (reducers) { | |
var state = reducers() | |
const store = { | |
dispatch: (action) => { | |
state = reducers(state, action) | |
}, | |
getState: () => { | |
return state | |
} | |
} |
vi lib/vagrant-linode/version.rb | |
vi CHANGELOG.md | |
git commit -m 'version 0.1.2' lib/vagrant-linode/version.rb CHANGELOG.md | |
git tag -s v0.1.2 # -u E2D09AB6 | |
git push --tags origin master | |
gem build vagrant-linode.gemspec | |
gem push vagrant-linode-0.1.2.gem |