Skip to content

Instantly share code, notes, and snippets.

View macchaberrycream's full-sized avatar

macchaberrycream macchaberrycream

View GitHub Profile
@macchaberrycream
macchaberrycream / install_yay.bash
Last active October 2, 2021 20:35
[install yay shell script] #ArchLinux
#!/usr/bin/env bash
# yay
# Yet another Yogurt - An AUR Helper written in Go
# <https://github.com/Jguer/yay>
if ! builtin type -p 'yay' >/dev/null 2>&1; then
echo 'Install yay.'
sudo pacman -S --needed base base-devel wget
tmpdir="$(command mktemp -d)"
@macchaberrycream
macchaberrycream / get_gpg_sign_keyid.sh
Last active December 15, 2018 14:55
[get my GPG sign-key ID] #GPG #GnuPG
# gpg (GnuPG) 2.2.4
# libgcrypt 1.8.1
command gpg --list-secret-keys --keyid-format LONG "$(whoami)" |
command grep -v '(^[a-z]{3}#|\[expired: [0-9]{4}-[0-9]{2}-[0-9]{2}\]$|>$)' |
command grep '\[S[CA]*\]' |
command cut -d ' ' -f 4 |
command cut -d '/' -f 2
@macchaberrycream
macchaberrycream / export_win_env_var.sh
Last active August 21, 2020 21:30
export win's environment variable to WSL environment variable
conv_brackets_uscore() {
echo $1 | sed -E 's/[][{}()]/_/g'
return 0
}
conv_path_win_linux() {
local _path
local _del_trailing_slash_path

Keybase proof

I hereby claim:

  • I am macchaberrycream on github.
  • I am macchaberrycream (https://keybase.io/macchaberrycream) on keybase.
  • I have a public key whose fingerprint is 46C4 B5BF C4AD 1BA0 3A12 E0EA 815C 9EA0 2CA9 3179

To claim this, I am signing this object: