Edit your alsamixer settings
alsamixer
Store the changes on a file
alsactl --file /home/<>/.config/asound.state store
#!/usr/bin/sh | |
nvgpu=$(lspci | grep -iE 'VGA|3D' | grep -i nvidia | cut -d ":" -f 3) | |
nvkernmod=$(lspci -k | grep -iEA3 'VGA|3D' | grep -iA3 nvidia | grep -i 'kernel driver' | grep -iE 'vfio-pci|nvidia') | |
if [[ ! -z $nvgpu ]]; then | |
if [[ -z $nvkernmod ]]; then | |
# Check for internet connection | |
wget -q --spider http://google.com | |
if [ $? -eq 0 ]; then |
Edit your alsamixer settings
alsamixer
Store the changes on a file
alsactl --file /home/<>/.config/asound.state store
|unallocated space|root partition|
Free unallocated space in front of root partition, options for merging:
Format unallocated space with gparted or man mkfs
.
git clean -xfd | |
git submodule foreach --recursive git clean -xfd | |
git reset --hard | |
git submodule foreach --recursive git reset --hard | |
git submodule update --init --recursive |
#!/bin/bash | |
# Demonstrates how to create a headless display using xvfb. | |
# Create the display: | |
Xvfb :100 -ac & | |
PID1=$! | |
export DISPLAY=:100.0 | |
# Run the application that needs the display: |
$ grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:-
gives:compositor doesn't support wlr-screencopy-unstable-v1
lea rdi, main ; main
call cs:__libc_start_main_ptr
.text
main:
la $s0, A # load variables A and B into registers
lw $s0, 0($s0)
#!/bin/bash | |
# Description: Workaround for the borked discord linux updater | |
# | |
# Note: | |
# 1. Downloads an updated discord linux build into ~/.cache/discord-tmp | |
# 2. Edits and symlinks the newly downloaded .desktop file to your ~/.local/share/applications | |
# | |
# Author: Niinu <github.com/ojsl1> | |
# Email: ojsl@protonmail.ch |
On linux systems the password fail delay ie. password authentication is managed by either shadow or PAM.
As of the 2020 release of PAM 1.5.1 the delay can be directly disabled by adding nodelay
to /etc/security/faillock.config
Separately append the nodelay
parameter to each auth ... pam_faillock.so
line within your /etc/pam.d/
configuration files such as system-auth
or common-auth
, and the other relevant pam files such as sudo
, su
and su-l
. See below example.