Boot from USB Arch Linux drive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ignition": { "version": "2.2.0" }, | |
"passwd": { | |
"users": [ | |
{ | |
"name": "hankhill", | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This is meant for setting up a base image in Cubic for homelab | |
# bootstrapping. | |
# | |
# Installing: | |
# apt-get update -y && apt-get install -y curl wget | |
# bash <(curl -L $GIST_URL) | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple groupcache example: https://github.com/golang/groupcache | |
// Running 3 instances: | |
// go run groupcache.go -addr=:8080 -pool=http://127.0.0.1:8080,http://127.0.0.1:8081,http://127.0.0.1:8082 | |
// go run groupcache.go -addr=:8081 -pool=http://127.0.0.1:8081,http://127.0.0.1:8080,http://127.0.0.1:8082 | |
// go run groupcache.go -addr=:8082 -pool=http://127.0.0.1:8082,http://127.0.0.1:8080,http://127.0.0.1:8081 | |
// Testing: | |
// curl localhost:8080/color?name=red | |
package main | |
import ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this pull and run script on server | |
# bash <(curl -L tiny.cc/rossedman-ssh) | |
mkdir ~/.ssh | |
touch ~/.ssh/authorized_keys | |
chmod 700 ~/.ssh && chmod 600 ~/.ssh/* | |
curl https://github.com/rossedman.keys >> ~/.ssh/authorized_keys | |
echo "rossedman ALL=(ALL) NOPASSWD: ALL" | sudo tee --append /etc/sudoers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Use jq to curl down magic cards into individual files to process into DocumentDB in Azure | |
# | |
# List all sets to process | |
SETS=(MPS KLD DDR CN2 V16 EMN EMA SOI W16 DDQ OGW C15 EXP BFZ DDP V15) | |
for i in "${SETS[@]}" | |
do |
I hereby claim:
- I am rossedman on github.
- I am rossedman (https://keybase.io/rossedman) on keybase.
- I have a public key whose fingerprint is 6712 8DF7 76E3 7227 03EC C55B 1636 1A29 BE1E DAE7
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This needs to be installed here: | |
# /etc/systemd/system/consul.service | |
# | |
[Unit] | |
Description=consul | |
Requires=network-online.target | |
After=network-online.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Installation: | |
# | |
# 1. vim /etc/ssh/sshd_config | |
# PrintMotd no | |
# | |
# 2. vim /etc/pam.d/login | |
# # session optional pam_motd.so | |
# |
NewerOlder