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 / netbsd pine.md
Last active November 6, 2018 13:22
netbsd pine

NetBSD image

sudo dd if=./NetBSD-evbarm-aarch64-201811042130Z-pine64.img of=/dev/sdb

First boot

  • Plug the microsd into the pine
  • Boot the pine and wait for a couple of reboots (disk expansion)
@e-minguez
e-minguez / dump.yml
Created November 7, 2018 14:35
Dump variables
---
# To be used as:
# ansible-playbook --user openshift -i /usr/share/ansible/openshift-ansible/playbooks/openstack/inventory.py -i inventory dump.yml
- name: Dump debug info
hosts: all
become: yes
tasks:
- name: Print some debug information
vars:
@e-minguez
e-minguez / cura.desktop
Created November 29, 2018 10:19
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
@e-minguez
e-minguez / freebsd_on_gcp_free_tier.md
Last active December 12, 2018 13:33
FreeBSD 12.0-RELEASE on GCP free tier

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:

@e-minguez
e-minguez / gist:a993dee4e9e8b35593e874221576fba1
Created January 10, 2019 13:24
Lock screen & unlock screen commands
# 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 / gist:837054d45b0119fcb2e37e2b0fb16bae
Last active January 18, 2019 10:25
WIP: pinebook build
# 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 \
# 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"
@e-minguez
e-minguez / .bashrc
Created March 5, 2019 11:42
pinebook bashrc to show battery status
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
battery_status(){
@e-minguez
e-minguez / bootstrap.sh
Last active February 13, 2022 17:21
Bootstrap N54L
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 / ps4pro4k.json
Created May 12, 2019 07:30
PS4 Pro 4K rip format for handbrake
{
"PresetList": [
{
"AlignAVStart": false,
"AudioCopyMask": [
"copy:aac",
"copy:ac3"
],
"AudioEncoderFallback": "fdk_aac",
"AudioLanguageList": [],