Skip to content

Instantly share code, notes, and snippets.

View e-minguez's full-sized avatar
😅
I have no idea what I'm doing

Eduardo Mínguez e-minguez

😅
I have no idea what I'm doing
View GitHub Profile
@e-minguez
e-minguez / which_tag_is_latest.sh
Last active October 8, 2024 16:51
Small script to find which tag is the real latest one
#!/bin/bash
IMAGE="registry.opensuse.org/opensuse/busybox"
OS="linux"
ARCH="amd64"
PLATFORM="${OS}/${ARCH}"
LATEST=$(crane digest ${IMAGE}:latest --platform ${PLATFORM})
@e-minguez
e-minguez / extramanifest.yaml
Last active November 11, 2024 13:05
metallb and endpoint copier operator
---
apiVersion: v1
kind: Namespace
metadata:
name: metallb-system
spec: {}
---
apiVersion: v1
kind: Namespace
metadata:
getvmip(){
for vm in $(virsh list --name); do echo "${vm} $(virsh --connect qemu:///system domifaddr ${vm} | awk '/ipv4/ NF>1{print $NF}' | cut -d/ -f1)"; done
}
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
@e-minguez
e-minguez / unlock.sh
Created November 6, 2022 16:24
Unlock plasma vaults using GUI
#!/bin/bash
export PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/home/deck/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/deck/.local/bin
PASS=$(zenity --title Vault --password)
for vault in ~/Vaults/*; do
gocryptfs -idle 5m --extpass "echo ${PASS}" ~/.local/share/plasma-vault/$(basename ${vault}).enc ${vault}
done
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/chrome --file-forwarding com.google.Chrome @@u %U @@
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=nextcloud --file-forwarding com.nextcloud.desktopclient.nextcloud
@e-minguez
e-minguez / qemu-command-openbsd71-utm
Created August 1, 2022 08:43
qemu command running under the hood via UTM for an OpenBSD 7.1 arm64
qemu-system-aarch64 -L /Applications/UTM.app/Contents/Resources/qemu -S -qmp tcp:127.0.0.1:4444,server,nowait -nodefaults -vga none -spice "unix=on,addr=/Users/edu/Library/Group Containers/WDNLXAD4W8.com.utmapp.UTM/1AEA40F1-1FDC-4EF7-9D4B-D2FA79DFC7E5.spice,disable-ticketing=on,image-compression=off,playback-compression=off,streaming-video=off,gl=off" -device virtio-ramfb -cpu host -smp cpus=2,sockets=1,cores=2,threads=1 -machine virt, -accel hvf -accel tcg,tb-size=512 -drive if=pflash,format=raw,unit=0,file=/Applications/UTM.app/Contents/Resources/qemu/edk2-aarch64-code.fd,readonly=on -drive "if=pflash,unit=1,file=/Users/edu/Library/Containers/com.utmapp.UTM/Data/Documents/OpenBSD 7.1.utm/Images/efi_vars.fd" -boot menu=on -m 2048 -name "OpenBSD 7.1" -device nec-usb-xhci,id=usb-bus -device usb-tablet,bus=usb-bus.0 -device usb-mouse,bus=usb-bus.0 -device usb-kbd,bus=usb-bus.0 -device qemu-xhci,id=usb-controller-0 -chardev spicevmc,name=usbredir,id=usbredirchardev0 -device usb-redir,chardev=usbredirchardev0,id=
@e-minguez
e-minguez / ps4-shutdown
Created December 8, 2021 21:41 — forked from autumnharmony/ps4-shutdown
ps4 remote shutdown
dependencies:
https://www.npmjs.com/package/ps4-waker
jq
@e-minguez
e-minguez / elastic.yaml
Last active August 23, 2021 14:05
elastic single node k8s
apiVersion: v1
kind: ConfigMap
metadata:
labels:
product: k8s-elastic
name: elastic-config
data:
elasticsearch.yaml: |
discovery.type: single-node
---
@e-minguez
e-minguez / logid.cfg
Created August 16, 2021 09:51
/etc/logid.cfg configuration file
devices: ({
name: "Wireless Mouse MX Master 2S";
// A lower threshold number makes the wheel switch to free-spin mode
// quicker when scrolling fast.
smartshift: { on: true; threshold: 16; };
hiresscroll: { hires: true; invert: false; target: false; };
// Higher numbers make the mouse more sensitive (cursor moves faster),
@e-minguez
e-minguez / README-pbp-manjaro-sway.md
Last active March 26, 2021 08:48
pbp manjaro sway
$ cat ~/.bash_aliases 

#alias ls="exa -alh --icons"
#alias tree="exa --tree --icons"
#alias cat="bat"
alias vi="nvim"
alias vim="nvim"
alias ls="ls --color=auto"
alias ll="ls -l --color=auto"