I hereby claim:
- I am nopdotcom on github.
- I am nopdotcom (https://keybase.io/nopdotcom) on keybase.
- I have a public key ASAqgSM1o-vSpf6QSLt8DnI27Gp_4JJZ5AsusfOKa_GdNgo
To claim this, I am signing this object:
#!/bin/sh | |
# | |
# If you're on an existing Ubuntu 16.04 machine, you can skip down to the DEPENDENCIES | |
# section. Otherwise you can use this file as a cloud-init on various providers. | |
# | |
# It would be much simpler if it only worked on one provider. | |
# | |
# This script takes a while to run. The file "ready" is created when finished. | |
# If you're logged in early, you can watch progress on most systems with the command | |
# |
#!/bin/sh | |
# | |
# This script takes a while to run. The file "ready" is created when finished. | |
# If you're logged in early, you can watch progress with the command | |
# | |
# tail -f /var/log/cloud-init-output.log | |
# | |
set -e | |
set -x | |
if [ "$(id -u)" != 0 ]; then |
#!/bin/sh | |
# | |
# This script takes a while to run. The file "ready" is created when finished. | |
# If you're logged in early, you can watch progress with the command | |
# | |
# tail -f /var/log/cloud-init-output.log | |
# | |
DEBIAN_FRONTEND=noninteractive | |
export DEBIAN_FRONTEND | |
if ! id ubuntu >/dev/null 2>&1; then |
#!/bin/sh | |
# | |
# This script takes a while to run. The file "ready" is created when finished. | |
# If you're logged in early, you can watch progress with the command | |
# | |
# tail -f /var/log/cloud-init-output.log | |
# | |
DEBIAN_FRONTEND=noninteractive | |
export DEBIAN_FRONTEND | |
if ! id ubuntu >/dev/null 2>&1; then |
# usage: | |
# $ ssh 192.168.1.1 | |
# ssh: The host key has changed!!!1 | |
# $ fuck you, ssh | |
# nop@192.168.1.1:~$ | |
fuck () { | |
local lastcmd=$(history -p '!!:0') | |
if [ "$lastcmd" != "ssh" ]; then | |
echo "The last command doesn't look like ssh." |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object: