Skip to content

Instantly share code, notes, and snippets.

🐧
I have no idea what I'm doing

Eduardo Mínguez e-minguez

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 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 fedora29_acer_s1003.md
  • Create a clean fat32 partition in a usb drive (label it as 'ub' or whatever you want)
  • Use unetbootin to create the usb with latest fedora 29 64 bits iso
  • copy the https://github.com/jfwells/linux-asus-t100ta/blob/master/boot/bootia32.efi to the proper folder (use a different name if needed)
  • Press volume up while booting the laptop
  • Select the bootia32-other.efi file Boot grub with:
set root=(hd0,msdos1)
linux /ubnkernel root=live:CDLABEL=ub rd.live.image
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"
View gist:837054d45b0119fcb2e37e2b0fb16bae
# 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
LINARO_LATEST_TOOLCHAIN="gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu"
sudo apt-get install -y \
@e-minguez
e-minguez / gist:a993dee4e9e8b35593e874221576fba1
Created Jan 10, 2019
Lock screen & unlock screen commands
View gist:a993dee4e9e8b35593e874221576fba1
# Lock
gdbus call --session --dest org.gnome.ScreenSaver --object-path /org/gnome/ScreenSaver --method org.gnome.ScreenSaver.Lock
# Unlock
loginctl unlock-session && xset dpms force on
@e-minguez
e-minguez / freebsd_on_gcp_free_tier.md
Last active Dec 12, 2018
FreeBSD 12.0-RELEASE on GCP free tier
View freebsd_on_gcp_free_tier.md

FreeBSD on GCP free tier

Account

Create a GCP account, accept the terms, etc.

NOTE: There are ton of details skipped here such as the VPC, firewall, etc. this is just a quick introduction :)

SSH keys

First, create the ssh-keys:

View cura.desktop
[Desktop Entry]
Type=Application
Name=Cura 3.6.0
Comment=Cura
Icon=/home/edu/.local/share/applications/cura.png
Exec=/home/edu/bin/Ultimaker_Cura-3.6.0.AppImage
You can’t perform that action at this time.