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 / README.md
Created March 23, 2021 08:09
Manjaro pinebook pro FDE howto

Requisites

  • A manjaro x86_64 VM with X (see https://gitlab.manjaro.org/man...jaro-arm-installer/-/issues/10 4 for the reason behind the X requirement)
  • An extra disk. In my case, I've used a 8gb qcow2 empty file mapped as sata (important as the script only recognizes /dev/sd* or /dev/mmclblk* devices) so it is /dev/sda in the VM.

Process

  • ssh into the VM
  • pacman -Syyu manjaro-arm-installer
  • Reboot (just in case as it should have updated a few packages, including the kernel)
authority letsencrypt {
api url "https://acme-v02.api.letsencrypt.org/directory"
account key "/etc/acme/letsencrypt-privkey.pem"
}
domain graph.openshift.tips {
domain key "/etc/ssl/private/graph.openshift.tips:443.key"
domain full chain certificate "/etc/ssl/graph.openshift.tips:443.crt"
sign with letsencrypt
}
@e-minguez
e-minguez / 01-podman-pod-nextcloud.md
Last active November 12, 2023 09:31
podman pod nextcloud
  • Some variables to avoid writting too much and create some folders:
export PODNAME="nextcloud"
mkdir -p ~/containers/nextcloud/{db,nginx,html}
  • Copy the nginx.conf file:

INDIVIDUAL PROJECT

  • Create a project and apply a services.nodeports quota = 0
$ oc new-project service-nodeport-quota
$ oc project service-nodeport-quota
$ cat << EOF | oc apply -f -
apiVersion: v1
kind: ResourceQuota
metadata:
@e-minguez
e-minguez / swag-podman
Last active March 22, 2024 14:30
swag-podman
```
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=443:proto=tcp:toport=8443
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
$ sudo firewall-cmd --zone=trusted --add-forward-port=port=80:proto=tcp:toport=8080
$ sudo firewall-cmd --zone=trusted --add-service=https --permanent
$ sudo firewall-cmd --zone=trusted --add-service=https
$ sudo firewall-cmd --zone=trusted --add-service=http --permanent
$ sudo firewall-cmd --zone=trusted --add-service=http
$ sudo firewall-cmd --zone=trusted --add-masquerade

Slimbook one CentOS8

Basic install with minimal selection of packages. Enable network.

Reboot and enable the connection using nmtui

dnf clean
@e-minguez
e-minguez / readme.md
Last active August 13, 2020 10:39
x230 FreeBSD 12.1 (Q&D howto)
@e-minguez
e-minguez / pine64_pinephone_.bashrc
Created July 8, 2020 06:23
pine64 and pinephone battery status in PS1
# Save this at the end of your ~/.bashrc
battery_status(){
# From http://www.basicallytech.com/blog/archive/110/Colour-coded-battery-charge-level-and-status-in-your-bash-prompt
BATTERY=/sys/class/power_supply/axp20x-battery
BATSTATE=$(cat ${BATTERY}/status)
CHARGE=$(cat ${BATTERY}/capacity)
NON='\033[00m'
@e-minguez
e-minguez / Howto.md
Last active June 11, 2020 11:29
object,revision from an etcd database backup

Let's try etcd-dump-db to extract information from the etcd database backup.

It is not available as a package, so let's get get the source

$ sudo dnf provides etcd-dump-db
Updating Subscription Management repositories.
Last metadata expiration check: 0:38:46 ago on Thu 11 Jun 2020 08:30:30 AM UTC.
Error: No Matches found
$ go get -u -v github.com/coreos/etcd