Skip to content

Instantly share code, notes, and snippets.

View xykj61's full-sized avatar

🍓Ⓥ 🏹 keaton dunsford🧡 xykj61

View GitHub Profile
#! /bin/bash
# Confirm tmux is installed
sudo apt list tmux;
# Confirm tmux source
tmux source ~/.tmux.conf;
# Change default shell to Bash
sudo chsh -s /bin/bash;
@xykj61
xykj61 / fake-zod.sh
Last active October 9, 2018 22:17
Urbit: zero to fake ~zod on Mac.
# Homebrew: install dependencies
brew update;
brew install autoconf automake cmake gcc git gmp libsigsegv libtool meson ninja pkg-config python2 openssl re2c;
# Install Urbit packages
mkdir -p ~/github/urbit/;
cd ~/github/urbit/;
git clone https://github.com/urbit/urbit.git;
git clone https://github.com/urbit/arvo.git;
@xykj61
xykj61 / ubuntu-18_04-lts-root.sh
Last active July 14, 2018 19:34
Ubuntu 18.04 LTS instance onboarding -- root user (hack bootstrapping for DigitalOcean development).
#! /bin/bash
# Initial setup
cd ~;
# Initial APT packages update/upgrade
sudo apt update;
sudo apt upgrade --yes --allow-change-held-packages --allow-downgrades --allow-remove-essential;
#! /bin/bash
@xykj61
xykj61 / backups.sh
Last active July 3, 2018 22:21
Backup procedures for the production ships on the Urbit network.
# Backup fora
for node in {general,updates,answers,proposals,archive}; do cp -r ~/fora-ship-2/home/web/fora/$node/posts* ~/github/urbit/fora-posts/$node/; done;
cd ~/github/urbit/fora-posts/;
git status;
git add -A;
git -c user.name="Keaton Dunsford" -c user.email="keaton@tlon.io" -c "core.editor=nvim" commit -av;
git push origin master;
@xykj61
xykj61 / updates.sh
Last active August 3, 2018 19:00
Update procedures for the production ships on the Urbit network.
# Functions
function git_update_master () {
git fetch --all;
git checkout master &> /dev/null;
git -c "core.editor=nvim" pull origin master;
}
# Update instance, one-liner
sudo apt update; \
sudo apt upgrade -y; \
@xykj61
xykj61 / ubuntu-18_04-lts-root.sh
Last active July 11, 2018 19:06
Ubuntu 18.04 LTS instance onboarding -- Tmux daemon create session.
#! /bin/bash
tmux new-session -d -s urbit -n bash 'curl https://storage.googleapis.com/media.urbit.org/onboarding/ubuntu-18_04-lts.sh | bash'
@xykj61
xykj61 / ubuntu-18_04-lts.sh
Last active July 11, 2018 19:38
Ubuntu 18.04 LTS instance onboarding.
#! /bin/bash
# Initial setup
cd ~;
# Check user = ubuntu
whoami;
# Check successfully installed SSH public key
cat ~/.ssh/authorized_keys;
~tonduc-mapped
~tontec-micrux
~tonweb-pilseb
~tonfyn-ponhep
~tonpex-hinnym
~tonsum-racdyl
~tonsev-hidrym
~tontug-ribnec
~tonfyr-tonbur
~tontus-ridren
~tonrun-siltyp
~tonmul-sornyr
~tonber-sogmex
~tonzod-satnyx
~tonlep-sittep
~tonreb-somleb
~tontyl-sabdel
~tonfes-sopsem
~tonlux-savfur
~tonpyl-sornut
gsed -i '/^~ton/!d' ~/Downloads/marzod-planets-ton.txt