Skip to content

Instantly share code, notes, and snippets.

View 0x61nas's full-sized avatar
🥺
in stand by mode

0x61nas

🥺
in stand by mode
View GitHub Profile
#!/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 / 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";
};
{ lib, pkgs, ... }:
{
home.packages = with pkgs; [ delta ];
programs.git = {
enable = true;
userName = "0x61nas";
userEmail = "[email protected]";
ignores = [ "*~" ];
signing = {
#signByDefault = true;
{ lib, pkgs, config, ... }:
{
services.gpg-agent = {
enable = true;
enableSshSupport = true;
# Cache the PIN for 3 hours
defaultCacheTtl = 3600*3;
#grabKeyboardAndMouse = false;
#pinentryPackage = pkgs.pinentry;
};