Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🧀
chedda

yonderbread yonderbread

🧀
chedda
View GitHub Profile
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
import requests
MULLVAD_ID = ""
def get_token(mullvad_id: str):
with requests.post(f"https://api.mullvad.net/www/accounts/{MULLVAD_ID}",
headers={
"Host": "api.mullvad.net",
"Origin": "https://api.mullvad.net",
"Referer": "https://mullvad.net/",
@yonderbread
yonderbread / answerfile
Created May 20, 2021 20:27 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@yonderbread
yonderbread / autoexec.cfg
Last active June 13, 2021 04:27
My CS:GO config
// CROSSHAIR
cl_crosshair_drawoutline "0"
cl_crosshair_dynamic_maxdist_splitratio "0.0"
cl_crosshair_dynamic_splitalpha_innermod "1"
cl_crosshair_dynamic_splitalpha_outermod "0.300000"
cl_crosshair_dynamic_splitdist "5"
cl_crosshair_friendly_warning "1"
cl_crosshair_outlinethickness "0.5"
cl_crosshair_sniper_show_normal_inaccuracy "0"
cl_crosshair_sniper_width "1"
@yonderbread
yonderbread / setup_csgo_server.sh
Last active May 19, 2021 19:52
Installs a csgo server in your home directory within a csgo_server folder.
#!/bin/bash
echo "WARNING: MAKE SURE YOU BACK UP YOUR OLD SERVER DIRECTORIES!!!"
echo "This will delete any folder in your home directory"
echo "named `csgo_server`, do CTRL+C within the next 7 seconds to cancel"
echo "the installation."
sudo add-apt-repository multiverse
sudo dpkg --add-architecture i386
sudo apt update
sudo apt -y install lib32gcc1 steamcmd
#!/bin/bash
# Clean up previous directories
rm -rf aseprite
# Update packages
sudo apt update && sudo apt upgrade -y
# Install dependencies and other packages
sudo apt install -y aria2 g++ wget git unzip cmake ninja-build libx11-dev libxcursor-dev libxi-dev libgl1-mesa-dev libfontconfig1-dev
# Delete old deps directory if it exists and cd into it
sudo apt update
sudo apt-get install -y libtool-bin cmake libproxy-dev uuid-dev liblzo2-dev autoconf automake bash bison bzip2 diffutils file flex m4 g++ gawk groff-base libtool libslang2 make patch perl pkg-config shtool subversion tar texinfo zlib1g zlib1g-dev gettext libexpat1-dev libssl-dev cvs gperf unzip python libxml-parser-perl gcc-multilib gconf-editor libxml2-dev g++-multilib gitk libncurses5 mtd-utils libncurses5-dev libvorbis-dev git autopoint autogen sed build-essential intltool libelf1:i386 libglib2.0-dev xutils-dev lib32z1-dev lib32stdc++6 xsltproc gtk-doc-tools
cd $HOME
git clone https://github.com/RMerl/am-toolchains
git clone https://github.com/RMerl/asuswrt-merlin.ng
mkdir ~/amng-build
rsync -a --del ~/asuswrt-merlin.ng/ ~/amng-build
sudo ln -s ~/am-toolchains/brcm-arm-sdk/hndtools-arm-linux-2.6.36-uclibc-4.5.3 /opt/brcm-arm
ln -s ~/am-toolchains/brcm-arm-sdk ~/amng-build/release/src-rt-6.x.4708/toolchains
echo "PATH=\$PATH:/opt/brcm-arm/bin" >> ~/.profile
@yonderbread
yonderbread / install_golang_armv61.sh
Created April 29, 2021 20:15
a little script to install golang on my raspberry pi
export GOLANG_URL="https://golang.org/dl"
export GOLANG_FILENAME="go1.16.3.linux-armv6l.tar.gz"
sudo apt update && sudo apt install wget -y
wget "$GOLANG_URL/$GOLANG_FILENAME"
sudo rm -rf /usr/local/go && tar -C /usr/local -xzf $GOLANG_FILENAME
sudo echo "export PATH=$PATH:/usr/local/go/bin" >> /etc/profile
source /etc/profile
rm -rf $GOLANG_FILENAME
sudo apt-get install -y gnupg1 apt-transport-https dirmngr
export INSTALL_KEY=379CE192D401AB61
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $INSTALL_KEY
echo "deb https://ookla.bintray.com/debian generic main" | sudo tee /etc/apt/sources.list.d/speedtest.list
sudo apt update && sudo apt install -y speedtest
export VERSION="1.15.5" # Change to desired version
export ARCH="amd64"
export FILENAME="go${VERSION}.linux-${ARCH}.tar.gz"
curl -O -L "https://golang.org/dl/${FILENAME}"
tar -xf "${FILENAME}"
sudo chown -R root:root ./go
sudo mv -v go /usr/local
rm -rf $FILENAME