pacman -S curl docker ebtables ethtool wget unzip
Also cfssl is needed but available on AUR, using pacaur
pacaur -S cfssl
| pacman | |
| ====== | |
| view logs: /var/log/pacman.log | |
| update system | |
| # pacman -Syu | |
| list installed packages | |
| # pacman -Q |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| ## Runs when I change directory into this project to use its Kubeconfig and update my context status in my prompt | |
| CONFIG=$(pwd)/kubeconfig.yaml | |
| alias kubectl="KUBECONFIG=$CONFIG kubectl" | |
| alias helm="helm --kubeconfig $KUBECONFIG" | |
| kubectl config use-context $(kubectl config current-context) |
| Check if remote port is open with bash: | |
| echo >/dev/tcp/8.8.8.8/53 && echo "open" | |
| Suspend process: | |
| Ctrl + z | |
| Move process to foreground: | |
| fg | |
| Generate random hex number where n is number of characters: |
| #!/usr/bin/perl | |
| # | |
| # VPN pid checker to report online or offline in emoji | |
| # | |
| # Used in tmux prompt so... | |
| # a. No warnings desired | |
| no warnings; | |
| # b. Need to output utf8 for terminal | |
| binmode(STDOUT, ":utf8"); |
| #!/usr/local/bin/zsh | |
| # Check PID file and display status before prompt | |
| # Example path could be /Users/mike/.zprezto/modules/prompt/functions/vpn_status | |
| # Usage...customize zsh theme (that has prezto module support)... | |
| # e.g. ~/.zprezto/modules/prompt/external/statusline/prezto/prompt_statusline_setup | |
| # Add this: | |
| # autoload -Uz vpn_status | |
| # add-zsh-hook precmd vpn_status |
| #!/bin/sh | |
| # Kill other sessions | |
| killall openconnect | |
| sleep 2 | |
| # Need these variables in current shell profile: | |
| openconnect --pid-file=$VPN_PID -b --servercert $VPN_CERT --authgroup=$VPN_AUTH -u $VPN_USER --script /etc/vpnc/vpnc-script $VPN_IP |
This collection of files serves as a simple static demonstration of how to post to a google spreadsheet from an external html <form> following the example by Martin Hawksey
You should be able to just open index.html in your browser and test locally.
However if there are some permissions errors you can make a quick html server with python. Open terminal and cd to the directory where the gist files are located and enter python -m SimpleHTTPServer. By default this creates a local server at localhost:8000
Table of Contents