We're gonna install the Okla Speedtest (speedtest.net) CLI and a write the results into a Airtables table.
First we're gonna install all required dependecies to run the speedtest CLI.
sudo apt-get install gnupg1 apt-transport-https dirmngr jq| #!/usr/bin/env python | |
| # Try to determine how much RAM is currently being used per program. | |
| # Note per _program_, not per process. So for example this script | |
| # will report RAM used by all httpd process together. In detail it reports: | |
| # sum(private RAM for program processes) + sum(Shared RAM for program processes) | |
| # The shared RAM is problematic to calculate, and this script automatically | |
| # selects the most accurate method available for your kernel. | |
| # Licence: LGPLv2 |
| // https://css-tricks.com/building-skeleton-screens-css-custom-properties/ | |
| .loading { | |
| position: relative; | |
| width: 100%; | |
| display: block; | |
| margin: 0 0 10px; | |
| height: 20px; | |
| &--inner { |
| // from https://reinink.ca/articles/server-side-apps-with-client-side-rendering#turbolinks | |
| require('turbolinks').start() | |
| document.addEventListener('turbolinks:load', (event) => { | |
| const root = document.getElementById('app') | |
| if (window.vue) { | |
| window.vue.$destroy(true) | |
| } |
| #!/usr/bin/env bash | |
| if [ "$1" == "" ]; then | |
| echo "Usage: ./push_to_new_remote.sh <git folder> <name of the new git remote>" | |
| exit 1 | |
| fi | |
| if [ "$2" == "" ]; then | |
| echo "Usage: ./push_to_new_remote.sh <git folder> <name of the new git remote>" | |
| exit 1 |
| docker system prune -a --volumes |
We're gonna install the Okla Speedtest (speedtest.net) CLI and a write the results into a Airtables table.
First we're gonna install all required dependecies to run the speedtest CLI.
sudo apt-get install gnupg1 apt-transport-https dirmngr jq| # this opens a SOCKS tunnel on localhost:1337 | |
| ssh -D 1337 -q -C -N <user@host> |
| # | |
| # Cookbook Name:: <INSERT COOKBOOK NAME> | |
| # Recipe:: new_relic_agent | |
| # | |
| # Add apt repo | |
| apt_repository 'newrelic' do | |
| uri 'http://apt.newrelic.com/debian' | |
| key 'https://download.newrelic.com/548C16BF.gpg' | |
| components ['non-free'] |
| # Install asyncssh (https://github.com/ronf/asyncssh) via Pip | |
| pip3 install asyncssh | |
| # Install pproxy (https://github.com/qwj/python-proxy) via Pip | |
| pip3 install pproxy | |
| # Start pproxy to connect to remote host via SSH using username and private key, listening on localhost:8080 | |
| pproxy -l http://:8080 -r ssh://<REMOTE HOST IP/HOSTNAME>/#<SSH USER NAME>::<ABSOLUTE PATH TO SSH PRIVATE KEY> | |
| # Start pproxy to connect to remote host via SSH using username and password, listening on localhost:8080 |