Skip to content

Instantly share code, notes, and snippets.

🐧
I have no idea what I'm doing

Eduardo Mínguez e-minguez

🐧
I have no idea what I'm doing
Block or report user

Report or block e-minguez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@e-minguez
e-minguez / stadia.desktop
Created Nov 28, 2019
Stadia custom launcher in Linux with Chromium with vaapi
View stadia.desktop
#!/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 Nov 26, 2019
Fix Raspberry Pi 3 bluetooth issues
View fix_bt_rpi3.md

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 Aug 1, 2019
PS4 pro preset for handbrake
View PS4pro.json
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3"
],
"AudioEncoderFallback": "aac",
"AudioLanguageList": [],
View temperature.1m.sh
HASS="http://1.2.3.4"
TOKEN="middlefinger"
PARAMETERS="-s -X GET -H 'Content-Type: application/json'"
CURL="/usr/bin/curl"
#CURL="curl -s -X GET -H 'Content-Type: application/json' -H \"Authorization: Bearer ${TOKEN}\" ${HASS}/api/states"
${CURL} ${PARAMETERS} -H "Authorization: Bearer ${TOKEN}" --connect-timeout 1 ${HASS}/api/ | grep -q "running"
if [ $? -eq 0 ]
View load_average_fedora_iot.md
[root@fedoraiot ~]# uname -a
Linux fedoraiot.minwi.lan 5.0.17-300.fc30.aarch64 #1 SMP Mon May 20 15:13:25 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
[root@fedoraiot ~]# uptime
 11:01:02 up 17:17,  1 user,  load average: 5.34, 4.48, 4.17
[root@fedoraiot ~]# rpm-ostree status
State: idle
AutomaticUpdates: disabled
Deployments:
● ostree://fedora-iot:fedora/devel/aarch64/iot
View nextcloud-backup.sh
#!/bin/bash
set -eo pipefail
# Folders
BACKUPFOLDER="/tank/backup"
DESTINATION="/HDD/nextcloud-backup"
# Nextcloud volume
NEXTCLOUDVOLUME="tank/nextcloud"
# Files
DOCKERCOMPOSEFILE="/home/edu/nextcloud/docker-compose.yml"
View ocp4_upi_baremetal.md
$ oc get nodes -o wide
NAME                      STATUS   ROLES    AGE   VERSION             INTERNAL-IP    EXTERNAL-IP   OS-IMAGE                                                   KERNEL-VERSION               CONTAINER-RUNTIME
kni1-master-0.minwi.lan   Ready    master   42m   v1.13.4+cb455d664   <redacted>     <none>        Red Hat Enterprise Linux CoreOS 410.8.20190520.0 (Ootpa)   4.18.0-80.1.2.el8_0.x86_64   cri-o://1.13.9-1.rhaos4.1.gitd70609a.el8
kni1-master-1.minwi.lan   Ready    master   42m   v1.13.4+cb455d664   <redacted>     <none>        Red Hat Enterprise Linux CoreOS 410.8.20190520.0 (Ootpa)   4.18.0-80.1.2.el8_0.x86_64   cri-o://1.13.9-1.rhaos4.1.gitd70609a.el8
kni1-master-2.minwi.lan   Ready    master   42m   v1.13.4+cb455d664   <redacted>     <none>        Red Hat Enterprise Linux CoreOS 410.8.20190520.0 (Ootpa)   4.18.0-80.1.2.el8_0.x86_64   cri-o://1.13.9-1.rhaos4.1.gitd70609a.el8
kni1-worker-0.minwi.lan   Ready    worker   43m   v1.13.4+cb455d664   <redacted>     <none>        Red Hat E
View ps4pro4k.json
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3"
],
"AudioEncoderFallback": "fdk_aac",
"AudioLanguageList": [],
@e-minguez
e-minguez / ps4pro4k.json
Created May 12, 2019
PS4 Pro 4K rip format for handbrake
View ps4pro4k.json
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3"
],
"AudioEncoderFallback": "fdk_aac",
"AudioLanguageList": [],
@e-minguez
e-minguez / bootstrap.sh
Last active Nov 5, 2019
Bootstrap N54L
View bootstrap.sh
yum remove postfix
yum install epel-release
yum install apcupsd smartmontools ssmtpd lm_sensors fail2ban
sensors-detect --auto
cat << EOF > /etc/fail2ban/jail.d/99-enabled.conf
[sshd]
enabled = true
EOF
You can’t perform that action at this time.