Skip to content

Instantly share code, notes, and snippets.

View nerdyslacker's full-sized avatar
🦥
Let's nap instead

Karen nerdyslacker

🦥
Let's nap instead
View GitHub Profile
@themagicalmammal
themagicalmammal / .bashrc
Created December 22, 2021 05:23
My Bash (Void Setup)
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
eval "$(starship init bash)"
# Awesome Alias
## System commands
alias _='sudo'
alias ls='ls --color=auto'
@leogama
leogama / pulseaudio-equalizer-setup.sh
Created September 14, 2021 00:27
Script to setup PulseAudio equalizer module + qpaeq GUI as a desktop application
#!/bin/sh -ux
# This is a small script to setup the PulseAudio equalizer as a desktop
# application that runs just when the 'qpaeq' GUI is open.
# This is free and unencumbered software released into the public domain.
#
# Anyone is free to copy, modify, publish, use, compile, sell, or distribute
# this software, either in source code form or as a compiled binary, for any
# purpose, commercial or non-commercial, and by any means.
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@DamianSuess
DamianSuess / SpecialFolderLocations.md
Last active October 6, 2024 15:19
C# Environment.SpecialFolder
@davamix
davamix / asp.net core 2 with https.md
Last active October 10, 2023 20:27
Configure a self-signed certificate in Ubuntu to allow HTTPS access with an ASP.NET Core 2.1 application

Configure a self-signed certificate in Ubuntu to allow HTTPS access with an ASP.NET Core 2.1 application

  1. Create an asp.net core project as usual and check if you have access using HTTPS.
dotnet new web -o Sample
cd Sample
dotnet restore
dotnet run
@balderclaassen
balderclaassen / Gnome-extension-configs.txt
Last active September 14, 2024 16:00
Backup, reset, restore, configuration of a gnome extension.
How to export (backup), reset to defaults and import (restore) the configuration of a gnome extension.
// prints the whole config to a file
dconf dump /org/gnome/shell/extensions/<extension-name>/ > ~/<backupfile>
// Resets the config to defaults (might wanna check first if the dump was a succes by opening the file)
dconf reset -f /org/gnome/shell/extensions/<extension-name>/
// Loads configuration from a file into your gnome-shell
dconf load /org/gnome/shell/extensions/<extension-name>/ < ~/<backupfile>
From what I can tell a good way to determine <extension-name> is from its url at https://extensions.gnome.org
However its better to be safe and launch dconf editor , browse to /org/gnome/shell/extensions/ and check the name.
@Trucido
Trucido / openSUSE-Leap-42.3-pam_kwallet-guide.md
Last active October 14, 2023 18:32 — forked from benediktg/pam_kwallet-guide.md
How to configure pam_kwallet to auto-unlock kdewallet from sddm login credentials on openSUSE Leap 42.3 KDE Plasma5

How to configure pam_kwallet to auto-unlock the default kwallet5 "kdewallet" from sddm login credentials on openSUSE Leap 42.3 KDE Plasma5

Note: Many other guides & posts were attempted before creating this, however they either no longer work or are ugly hacks which don't follow SUSE's odd pam.d layouts. Essentially, this solution boils down to this: pam_kwallet needs to be loaded from it's own substack just like pam_gnome_keyring already is configured to do so, so new substacks were created based on the gnome_keyring ones so that they could be added to sddm. I'm unsure how both gnome_keyring and kwallet behave if both are loaded from the same substack so I kept them in separate stacks. This was tested with only kwallet5 installed but it should also optionally load the old kwallet4 if it's present. My understanding of PAM is limited, so I'm open to suggestions, but this seemed like the cleanest solution which doesn't get overwritten on updates, though it should probably be globally registered as a

@jinnko
jinnko / es-verify-closed-indices.sh
Last active November 1, 2023 09:36
Script to open elasticsearch indices, allow them to complete verification or shard redistribution, then close the index.
#!/bin/dash -e
# vim:ts=2 sw=2 sts=2 expandtab:
# How long to wait for an opened index to become green
TIMEOUT=3600
DELAY=5
say() {
echo
echo "\033[32m===> \033[1;37m${1}\033[0m"