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 / 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": [],
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(){
View gist:c07fa3d23ff5f8a6a7894db23c94e1ce
# Based on
# https://github.com/gamelaster/pine64-linux-build
# https://github.com/ARM-software/arm-trusted-firmware
# https://wiki.linaro.org/HowTo/BuildArm64Kernel
# https://github.com/anarsoul/linux-build
# https://github.com/anarsoul/PKGBUILDs/tree/master/linux-pine64
# https://gist.github.com/e-minguez/837054d45b0119fcb2e37e2b0fb16bae
# https://github.com/e-minguez/gpd-pocket-fedora
LINARO_LATEST_TOOLCHAIN="gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu"
You can’t perform that action at this time.