Instructions how to install Debian using debootstrap. Below instructions were verified to work with debootstrapping Debian 11.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
// #include <simlib/meta/concated_to_cstr.hh> | |
#include <array> | |
#include <cstddef> | |
#include <utility> | |
namespace meta { | |
template <char... chars> |
Sinks are for output, sources are for input. To stream source to sink a loopback must be created. More shall you find there.
Our output sink will be named recording
.
pacmd load-module module-null-sink sink_name=recording sink_properties=device.description=recording
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
list_sinks() { | |
pw-cli list-objects Node | grep -P '^\s+id |^\s+node\.name|^\s+media\.class = "Audio/Sink"' | grep 'media\.class' -B 2 --no-group-separator | paste -sd' \n' | sed 's/^\s*id [0-9]*, type .*node\.name = "\([^"]*\)".*/\1/' | (grep -vP "^($1)$" || true) | |
} | |
pactl unload-module module-combine-sink 2> /dev/null | |
selected_names_regex='' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -exuo pipefail | |
rm -rf sim-project | |
git init sim-project | |
cd sim-project | |
git commit -m 'Initial commit' --allow-empty | |
INITIAL_COMMIT=$(git rev-parse @) |
- make sure to install
grub
usinggrub-install
and configure it properly usinggrub-mkconfig -o /boot/grub/grub.cfg
(for uefi it is not so easy), but before runninggrub-mkconfig
installintel-ucode
oramd-ucode
- install
networkmanager vim htop net-tools wireless_tools
# net-tools forifconfig
, wireless_tools foriwconfig
- remember to configure pacman mirrors properly see
/etc/pacman.d/mirrorlist
- reboot
systemctl enable --now NetworkManager
- use
nmtui
to connect to internet - install
git man-pages procps-ng
# procps-ng forpkill
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
# Run: curl 'https://gist.githubusercontent.com/varqox/a4e5abd490059844e0e521db531a9d8f/raw/e69686e6b63791ef82fc3e182689986ffe838a53/INSTALL.sh' | sudo sh | |
curl 'https://gist.githubusercontent.com/varqox/a4e5abd490059844e0e521db531a9d8f/raw/85e25433f2f67576ea82b38a7cd461d424376901/%25E2%2581%2584usr%25E2%2581%2584share%25E2%2581%2584libalpm%25E2%2581%2584hooks%25E2%2581%258430-linux-modules-pre.hook' | sudo tee /usr/share/libalpm/hooks/30-linux-modules-pre.hook | |
curl 'https://gist.githubusercontent.com/varqox/a4e5abd490059844e0e521db531a9d8f/raw/85e25433f2f67576ea82b38a7cd461d424376901/%25E2%2581%2584usr%25E2%2581%2584share%25E2%2581%2584libalpm%25E2%2581%2584hooks%25E2%2581%258490-linux-modules-post.hook' | sudo tee /usr/share/libalpm/hooks/90-linux-modules-post.hook | |
curl 'https://gist.githubusercontent.com/varqox/a4e5abd490059844e0e521db531a9d8f/raw/85e25433f2f67576ea82b38a7cd461d424376901/%25E2%2581%2584etc%25E2%2581%2584tmpfiles.d%25E2%2581%2584linux-modules-cleanup.conf' | sudo tee /etc/tmpfiles.d |
This tutorial covers using NetworkManager with either wpa_supplicant or IWD backend. If you did not heard of IWD, it is propbable your NetworkManager uses wpa_supplicant.
- Edit connection and set:
Authentication
toProtected EAP (PEAP)
Anonymous identity
toanonymous@uw.edu.pl
Domain
toeduroam.uw.edu.pl
CA certificate
to file located at/etc/ssl/certs/Comodo_AAA_Services_root.pem
- Uncheck
No CA certifcate is required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
cd -P -- "$(dirname -- "$0")" # chdir to script directory | |
out_file="$HOME/backup/$(echo ${PWD#$HOME/} | sed 's@/@,@g').tar.zst" | |
((git ls-files -z --cached --recurse-submodules 2> /dev/null && | |
git ls-files -z --others --exclude-standard && | |
PROJECT_DIR=$PWD git submodule foreach --quiet 'git ls-files -z -o --exclude-standard | while read -d "" x; do echo -n "${PWD#$PROJECT_DIR/}/$x"; echo -ne "\0"; done' && |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstring> | |
#include <stack> | |
#include <iostream> | |
#ifndef __UNLINT_H | |
#define __UNLINT_H | |
#include <bits/localefwd.h> | |
#include <string> | |
#include <vector> |
NewerOlder