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

INDIVIDUAL PROJECT

  • Create a project and apply a services.nodeports quota = 0
$ oc new-project service-nodeport-quota
$ oc project service-nodeport-quota
$ cat << EOF | oc apply -f -
apiVersion: v1
kind: ResourceQuota
metadata:

Slimbook one CentOS8

Basic install with minimal selection of packages. Enable network.

Reboot and enable the connection using nmtui

dnf clean
@e-minguez
e-minguez / readme.md
Last active August 13, 2020 10:39
x230 FreeBSD 12.1 (Q&D howto)
@e-minguez
e-minguez / pine64_pinephone_.bashrc
Created July 8, 2020 06:23
pine64 and pinephone battery status in PS1
# Save this at the end of your ~/.bashrc
battery_status(){
# From http://www.basicallytech.com/blog/archive/110/Colour-coded-battery-charge-level-and-status-in-your-bash-prompt
BATTERY=/sys/class/power_supply/axp20x-battery
BATSTATE=$(cat ${BATTERY}/status)
CHARGE=$(cat ${BATTERY}/capacity)
NON='\033[00m'
@e-minguez
e-minguez / Howto.md
Last active June 11, 2020 11:29
object,revision from an etcd database backup

Let's try etcd-dump-db to extract information from the etcd database backup.

It is not available as a package, so let's get get the source

$ sudo dnf provides etcd-dump-db
Updating Subscription Management repositories.
Last metadata expiration check: 0:38:46 ago on Thu 11 Jun 2020 08:30:30 AM UTC.
Error: No Matches found
$ go get -u -v github.com/coreos/etcd
@e-minguez
e-minguez / crypt.diff
Last active May 14, 2020 18:00
manjaro-arm-installer crypt diff
diff --git a/manjaro-arm-installer b/manjaro-arm-installer
index 43e9fe1..98f43a0 100755
--- a/manjaro-arm-installer
+++ b/manjaro-arm-installer
@@ -197,6 +197,8 @@ create_install() {
elif [[ "$EDITION" = "cubocore" ]]; then
cp $TMPDIR/root/usr/share/applications/corestuff.desktop $TMPDIR/root/etc/xdg/autostart/
fi
+
+ [ ! -z "$CRYPT" ] && tweakinitrd_crypt
@e-minguez
e-minguez / dynamic wallpapers gnome.md
Last active May 4, 2020 07:04
Wallpaper slideshows in GNOME
@e-minguez
e-minguez / speedtouch.sh
Created April 21, 2020 14:38
USB: 06B9:0121 Alcatel Telecom SpeedTouch 121g Wireless Dongle firmware
sudo wget http://daemonizer.de/prism54/prism54-fw/fw-usb/2.13.25.0.lm87.arm -O /lib/firmware/isl3887usb
sudo modprobe -r p54usb
sudo modprobe p54usb
@e-minguez
e-minguez / pine64lcd.md
Last active April 16, 2020 07:23
pine64 lcd stuff

Image

Armbian_5.83_Pine64_Ubuntu_xenial_default_3.10.107_desktop

Tweaks

Turning up to full brightness and turning off work well, by following:

# echo 362 > /sys/class/gpio/export
# echo out > /sys/class/gpio362/direction (turns up to full)
# echo in &gt; /sys/class/gpio362/direction (turns off backlight)