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 / get-all.sh
Created May 4, 2020 13:03
Get all k8s objects, both namespaced or not
#!/usr/bin/env bash
# https://stackoverflow.com/a/55796558/491522
getall() {
for i in $(oc api-resources --verbs=list --namespaced -o name | grep -v "events.events.k8s.io" | grep -v "events" | sort | uniq); do
echo "Resource:" $i
oc -n ${1} get --ignore-not-found=true ${i} -o yaml > ${1}/${i}.yaml
done
}
@e-minguez
e-minguez / dynamic wallpapers gnome.md
Last active May 4, 2020 07:04
Wallpaper slideshows in GNOME
@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 / pine64-bt.md
Created April 28, 2020 07:03
pine64 bluetooth
  • Install armbian and update it
  • Install the full firmware package and bluetooth support
apt install armbian-firmware-full bluez
  • Include the pine64 bluetooth config file (manually for now, see armbian/firmware#14)
  • Enable and start the bluetooth service
systemctl enable bluetooth --now
@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 > /sys/class/gpio362/direction (turns off backlight)
@e-minguez
e-minguez / github-check.py
Last active March 18, 2020 11:04
Check github ips
import requests, json, re, os, ipaddress
from tqdm import tqdm
VERIFY = os.environ.get('VERIFY') or False
TIMEOUT = int(os.environ.get('TIMEOUT', 1))
GITHUBAPI = "https://api.github.com/meta"
protocols = {'web': {'proto': 'https://', 'host':'github.com'},
'api': {'proto': 'https://', 'host': 'api.github.com'},
'git': {'proto': 'https://', 'host':'github.com'}}
@e-minguez
e-minguez / stadia.desktop
Created November 28, 2019 07:32
Stadia custom launcher in Linux with Chromium with vaapi
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Stadia
Exec=chromium-freeworld --app=https://stadia.google.com/home --ignore-gpu-blacklist --disable-gpu-vsync
Icon=<path to a 300x300 fancy stadia icon>
@e-minguez
e-minguez / fix_bt_rpi3.md
Last active November 26, 2019 10:54
Fix Raspberry Pi 3 bluetooth issues

It is basically modify the content of the /usr/bin/btuart file to set different speed:

‎‎​#!/bin/sh

HCIATTACH=/usr/bin/hciattach
if grep -q "Pi 4" /proc/device-tree/model; then
  BDADDR=
else
  SERIAL=`cat /proc/device-tree/serial-number | cut -c9-`
@e-minguez
e-minguez / PS4pro.json
Created August 1, 2019 10:41
PS4 pro preset for handbrake
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3"
],
"AudioEncoderFallback": "aac",
"AudioLanguageList": [],