Skip to content

Instantly share code, notes, and snippets.

View archae0pteryx's full-sized avatar

Ryan archae0pteryx

  • @eyepop.ai
  • Oregon, USA
View GitHub Profile
04d01350c0862ac6fd293bcfce1f565acf3157f9dbc0e80e16ab2c7db3b8ea098925124ddffc67bfa46d7057f189d830dd132b7b30bbb5cb1dfc9604e33cd950ee z-yeti
@archae0pteryx
archae0pteryx / git-commands
Last active July 2, 2022 16:49
Helpful Git Snippets
git branch -r --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))' | grep <remote|author>
@archae0pteryx
archae0pteryx / random-posh-theme
Created May 23, 2022 18:00
Script to select random oh-my-posh theme on shell init
POSH_THEME_DIR="$(brew --prefix oh-my-posh)/themes"
LIST_OF_THEMES=()
while IFS='' read -r line; do LIST_OF_THEMES+=("$line"); done < <(find "$POSH_THEME_DIR" -type f -print)
TOTAL_NUM_THEMES=${#LIST_OF_THEMES[@]}
RAND_NUM=$(( RANDOM % TOTAL_NUM_THEMES ))
SELECTED_THEME="${LIST_OF_THEMES[$RAND_NUM]}"
echo "${SELECTED_THEME}"
alias c="cd ~/Code"
alias szsh="source ~/.zshrc"
alias zshconfig="vim ~/.zshrc"
alias alconfig="vim ~/.aliases"
alias sshconfig="vim ~/.ssh/config"
alias p="ping 8.8.8.8"
alias ip="curl https://icanhazip.com"
alias gco="git checkout"
@archae0pteryx
archae0pteryx / setup.sh
Last active June 30, 2022 18:15
Minecraft AWS Linux 2 Setup Script
#!/bin/bash
sudo useradd minecraft
sudo usermod -a -G minecraft ec2-user
sudo mkdir -p /opt/minecraft/server
sudo chmod -R 775 /opt/minecraft
sudo chown -R minecraft:minecraft /opt/minecraft
# Install java
sudo rpm --import https://yum.corretto.aws/corretto.key
```bash
# homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# oh-my-posh
brew install jandedobbeleer/oh-my-posh/oh-my-posh
@archae0pteryx
archae0pteryx / install
Last active April 10, 2023 16:46
install script
#!/bin/bash
curl parrot.live
@archae0pteryx
archae0pteryx / userChrome.css
Created July 27, 2023 14:55
firefox-tabs-bottom
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
/*
https://github.com/Arty2/userstyles
@version 0.2.5
1. Find your profile folder `about:support > Profile Folder > Open Folder` or locate the exact profile in use by visiting `about:profiles`.
2. Create a folder named `chrome` then create a file named userChrome.css inside it and paste the following code.
3. If userChrome.css doesn’t seem to work, open `about:config` and set `toolkit.legacyUserProfileCustomizations.stylesheets=true`.
4. Restart Firefox.
@archae0pteryx
archae0pteryx / AWS-EKS-instance-info.md
Last active November 15, 2023 15:57
cheapest aws eks instance pricing for CNI supported nodes

K8s CNI suppoorted AWS instance types (on demand)

Cheapest options in resource category as of nov 2023

instance vCPU RAM $/hr $/day $/mo $/yr
t3.nano 1 0.5 0.0052 0.208 4.992 59.904
t3.small 2 4 0.0208 0.208 4.992 149.76
t2.medium 2 4 0.0464 1.1136 33.408 400.896
t3.large 2 8 0.086 2.064 24.768 297.216