Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🧀
chedda

yonderbread yonderbread

🧀
chedda
View GitHub Profile
@yonderbread
yonderbread / readme
Last active January 18, 2022 23:04 — forked from Nadrieril/shell.nix
Building LineageOS on NixOS
Command steps to setup (copy shell.nix script into empty directory first!)
nix-shell -p gitRepo git
git config --global user.name "none"
git config --global user.email "none@none.com"
repo init -u https://github.com/LineageOS/android.git
repo sync -j4
source build/envsetup.sh
breakfast fajita
ccache -M 50G
@yonderbread
yonderbread / Optimizations_Artix.md
Created October 21, 2021 21:51 — forked from themagicalmammal/Optimizations_Artix.md
Set of optimizations, I use on my Artix Setup
@yonderbread
yonderbread / mullvad_get_vpn_configs.sh
Created September 23, 2021 21:45 — forked from noplanman/mullvad_get_vpn_configs.sh
Download all VPN config files for Mullvad VPN
#!/usr/bin/env bash
# Set the Mullvad account number.
ACCOUNT_NUMBER="1234"
# For the home network, make sure the external IP is set here
# to prevent local traffic from going through the VPN.
HOME_IP=""
# Load the config download page to get CSRF tokens.
@yonderbread
yonderbread / 1v1.cfg
Created July 1, 2021 23:55 — forked from sebastiandero/1v1.cfg
1v1 config for CSGO
bot_kick;
exec gamemode_competitive;
mp_free_armor 1;
mp_freezetime 3;
mp_weapons_allow_map_placed 1;
mp_humanteam any;
mp_restartgame 1;
mp_round_restart_delay 3;
mp_roundtime 80250;
mp_maxrounds 30;
" 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'
@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 / encode.py
Created October 30, 2020 01:43 — forked from gasman/encode.py
Encoding a file as a Youtube video - https://www.youtube.com/watch?v=hyqLv2_zBdA
# Encode inputfile.tar.gz as a series of video frames
# Frames are written to frames/frameNNNN.png
from PIL import Image
with open('inputfile.tar.gz', 'rb') as f:
data = f.read()
WIDTH = 120
HEIGHT = 90
CHUNK_SIZE = int((WIDTH * HEIGHT) / 8)
@yonderbread
yonderbread / ctjs-faq.md
Last active September 8, 2020 18:35 — forked from naturecodevoid/ctjs-faq.md
ct.js FAQ

ct.js FAQ

The camera won't follow my charater!

Make sure you have this code in your character's 'On Create' tab:

ct.camera.follow = this;

// Optional; sets the frame inside which the copy will be kept, in game pixels. Can be set to `null` so the copy is set to the center of the screen.