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
View GitHub Profile
e-minguez / elastic.yaml
Last active Aug 23, 2021
elastic single node k8s
View elastic.yaml
apiVersion: v1
kind: ConfigMap
product: k8s-elastic
name: elastic-config
elasticsearch.yaml: |
discovery.type: single-node
e-minguez / logid.cfg
Created Aug 16, 2021
/etc/logid.cfg configuration file
View logid.cfg
devices: ({
name: "Wireless Mouse MX Master 2S";
// A lower threshold number makes the wheel switch to free-spin mode
// quicker when scrolling fast.
smartshift: { on: true; threshold: 16; };
hiresscroll: { hires: true; invert: false; target: false; };
// Higher numbers make the mouse more sensitive (cursor moves faster),
$ cat ~/.bash_aliases 

#alias ls="exa -alh --icons"
#alias tree="exa --tree --icons"
#alias cat="bat"
alias vi="nvim"
alias vim="nvim"
alias ls="ls --color=auto"
alias ll="ls -l --color=auto"
e-minguez /
Last active Sep 29, 2021
docker on lxc on turris omnia


opkg install kmod-veth
opkg install kmod-ipt-extra
opkg install iptables-mod-extra
  • Install a new container (I created an arch linux container)
  • Open up the /srv/lxc/containername/config file for editing:
e-minguez /
Created Mar 23, 2021
Manjaro pinebook pro FDE howto


  • A manjaro x86_64 VM with X (see 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.


  • ssh into the VM
  • pacman -Syyu manjaro-arm-installer
  • Reboot (just in case as it should have updated a few packages, including the kernel)
View acme-client.conf
authority letsencrypt {
api url ""
account key "/etc/acme/letsencrypt-privkey.pem"
domain {
domain key "/etc/ssl/private/"
domain full chain certificate "/etc/ssl/"
sign with letsencrypt
  • 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:


  • 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
View 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