Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# ---------------------------
# This is a bash script for configuring Arch for pro audio USING PIPEWIRE.
# ---------------------------
# NOTE: Execute this script by running the following command on your system:
# wget -O ~/install-audio.sh https://raw.githubusercontent.com/brendaningram/linux-audio-setup-scripts/main/arch/install-audio.sh && chmod +x ~/install-audio.sh && ~/install-audio.sh
# Exit if any command fails
set -e
#!/bin/bash
set -e
if [[ $(id -u) -ne 0 ]] ; then echo "Please run as root" ; exit 1 ; fi
fonts_pkgs=(
ttf-jetbrains-mono-nerd
ttf-roboto
ttf-hack
ttf-hack-nerd
#!/bin/env bash
error_exit() {
echo "$1" > /dev/stderr
exit 1
}
HOSTNAME="Mayuri"
core_pkgs=(
#!/bin/bash
export dev_pkgs=(
rustup
gcc
python
ruff
zig
zls
uv
@0x61nas
0x61nas / make.conf
Created November 9, 2024 15:53
Portage make config
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j8"
@0x61nas
0x61nas / linux-sys-calls.md
Last active September 23, 2024 09:54
x86-64 linux syscalls
@0x61nas
0x61nas / main.cpp
Created September 12, 2024 08:27
CPP constants is a mess
#include <iostream>
#define sos(x) std::cout << x << std::endl
class Entity {
private:
int m_x, m_y;
char *m_name;
// the mutable members is allowed to be modified in a const functions.
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
{
description = "NextJS Template";
inputs = {
nixpkgs.url = "nixpkgs";
systems.url = "github:nix-systems/x86_64-linux";
utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
function shrink_path {
# Replace the home directory with ~ for brevity
local path="${PWD/#$HOME/~}"
local new_path=""
local -a path_components=("${(@s:/:)path}")
local num_components=${#path_components[@]}
# Loop through each component except the last one
for (( i=1; i < num_components; i++ )); do
if [[ -n ${path_components[i]} ]]; then
new_path+="%{$fg[yellow]%}${path_components[i][1]}%{$reset_color%}%{$fg[white]%}:%{$reset_color%}"