Skip to content

Instantly share code, notes, and snippets.

View yonderbread's full-sized avatar
🧀
chedda

yonderbread yonderbread

🧀
chedda
View GitHub Profile
@yonderbread
yonderbread / config.py
Created April 11, 2022 21:07
My qutebrowser config
import os, sys
config.load_autoconfig(False)
c.backend = 'webengine'
c.qt.process_model = 'process-per-site'
# AUTO SAVE
c.auto_save.interval = 15000
c.auto_save.session = True
# CONTENT
c.content.cache.appcache = True
@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
{
"sources": [
{
"label": "AdAway official hosts",
"url": "https:\/\/adaway.org\/hosts.txt",
"enabled": true,
"allow": false,
"redirect": false
},
{
@yonderbread
yonderbread / debloat_android.sh
Created November 26, 2021 01:27
Removes a crapton of common bloat apps for various andoid manufacturer flavors
pm uninstall -k --user 0 net.oneplus.weather.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.cloud.basiccolorwhite.overlay
pm uninstall -k --user 0 com.oneplus.account.basiccolorwhite.overlay
pm uninstall -k --user 0 com.oneplus.deskclock.white.overlay
pm uninstall -k --user 0 com.oneplus.cloud.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.account.basiccolorblack.overlay
pm uninstall -k --user 0 com.oneplus.calendar.white.overlay
pm uninstall -k --user 0 com.oneplus.deskclock.black.overlay
pm uninstall -k --user 0 com.oneplus.calendar.black.overlay
pm uninstall -k --user 0 com.oneplus.soundrecorder.white.overlay
@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 / SetupWSL2.ps1
Created October 21, 2021 19:42
PowerShell script to setup and install WSL2
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
$WSLUpdateFileName = "wsl_update_x64.msi"
$WSLUpdateFileUrl = "https://wslstorestorage.blob.core.windows.net/wslblob/$WSLUpdateFileName"
Clear-Host
(New-Object System.Net.WebClient).DownloadFile(
$WSLUpdateFileUrl,
@yonderbread
yonderbread / todo.py
Last active October 3, 2021 19:17
A tiny, minimal todo program written in python.
#!/usr/bin/python
import os, sys
todo_cfg=os.path.expanduser("~/.config/todo")
todo_fp=os.path.join(todo_cfg, 'list')
if __name__ == '__main__':
if len(sys.argv) == 1:
if not os.path.exists(todo_cfg): os.mkdir(todo_cfg)
if not os.path.exists(todo_fp):
@yonderbread
yonderbread / PKGBUILD
Created October 1, 2021 02:09
Steinberg ASIO SDK PKGBUILD script with fixes.
# Maintainer: Joakim Hernberg <jhernberg@alchemy.lu>
# Contributor: Ray Rashif <schivmeister@gmail.com>
# Contributor: Tony Lambiris <tony@criticalsstack.com>
pkgname=steinberg-asio
pkgver=2.3.3
_pkgver=${pkgver}_2019-06-14
pkgrel=1
_fullname="asiosdk_${_pkgver}"
pkgdesc="Steinberg's ASIO SDK"
#!/usr/bin/env bash
set -e
apt update && apt upgrade -y
apt install -y git proot wget build-essential cmake make tor libmicrohttpd
clear
mkdir -p ~/bin
mkdir -p ~/._temp
cd ~/._temp
git clone https://github.com/xmrig/xmrig xmrig-git
cd xmrig-git && mkdir -p build && cd build
@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.