The Linux syscalls, ref: https://web.archive.org/web/20230126185338/https://soliduscode.com/linux-system-calls/
R10RAX | System call | RDI | RSI | RDX |
---|
#!/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 |
# 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" |
The Linux syscalls, ref: https://web.archive.org/web/20230126185338/https://soliduscode.com/linux-system-calls/
R10RAX | System call | RDI | RSI | RDX |
---|
#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%}" |