Skip to content

Instantly share code, notes, and snippets.

View RustyRaptor's full-sized avatar
🛠️
Building a dyson sphere

RustyRaptor RustyRaptor

🛠️
Building a dyson sphere
View GitHub Profile
@RustyRaptor
RustyRaptor / fetch_updates.sh
Last active January 12, 2024 16:43
Update all AUR git repos in a folder
#!/bin/sh
# Place this in the folder where you git clone AUR repos
# Make it executable and just run it in place.
# Doesn't always succeed you still need to monitor the output
# and fix things when they break.
for dir in */; do
echo "$dir"
cd "$dir"
@RustyRaptor
RustyRaptor / get_deps.sh
Last active February 2, 2023 00:15
Installs a list of dependencies you provide for an AUR package.
#!/bin/bash
# Installs a list of dependencies.
# First tries to install from official repos then tries to install from AUR
# Place in the folder where you store AUR packages and run on a list of deps
# example: ./get_deps.sh 'libluv' 'libtermkey' 'libuv' 'libvterm-0.1' 'luajit'
for dep in "$@"
do
@RustyRaptor
RustyRaptor / install_aur.sh
Last active February 1, 2023 21:46
clone an install an AUR package
#!/bin/bash
# Installs a given list of AUR packages
# Place in the folder where you want to clone your AUR packages
# Has to be a folder with nothing but AUR repos. Other folders will break this.
# example ./install_aur obs-studio-git teamviewer teams tbsm
for dep in "$@"
do
git clone "https://aur.archlinux.org/$dep.git"
@RustyRaptor
RustyRaptor / preprocessor_fun.h
Created May 24, 2018 16:47 — forked from aras-p/preprocessor_fun.h
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,