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
View golang-broken.sh
sudo dnf install rpmdevtools rpm-build go2rpm redhat-rpm-config
sudo dnf install --releasever=31 go-rpm-macros
rpmdev-setuptree
go2rpm github.com/alexellis/inlets --stdout > ~/rpmbuild/SPECS/golang-github-alexellis-inlets.spec
spectool -g -R SPECS/golang-github-alexellis-inlets.spec
sudo dnf builddep SPECS/golang-*.spec
go get $(awk -F"(" '/BuildRequires: golang/ { print $2 }' SPECS/golang-github-alexellis-inlets.spec | tr -d ')')
tweaks
@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
@e-minguez
e-minguez / .bashrc
Created Mar 5, 2019
pinebook bashrc to show battery status
View .bashrc
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
battery_status(){
You can’t perform that action at this time.