RSS

Posts in 2020

  • Get tls certificate and key from a kubernetes secret

    Thursday, August 06, 2020 in Kubernetes

    My use case is to deploy a wildcard certificate that was previously handled by an acme.sh on my legacy lxd containers. Since moving to kubernetes parts of my services I have been using cert-manager to issue letsencrypt certificates. Since I am not …

    Read more

  • Dump and restore a postgresql database

    Thursday, June 25, 2020 in Kubernetes

    Dumping Assuming we are working with a postgresql statefulset, our namespace is named miniflux and our master pod is named db-postgresql-0, trying to dump a database named miniflux: export POSTGRES_PASSWORD=$(kubectl get secret --namespace miniflux …

    Read more

  • OpenStreetMap overlay example

    Tuesday, May 19, 2020 in Miscellaneous

    http://overpass-turbo.eu/ <osm-script> <query type="node"> <has-kv k="amenity" v="recycling"/> <bbox-query {{bbox}}/> </query> <!-- print results --> <print mode="body"/> …

    Read more

  • i3dropdown

    Thursday, January 23, 2020 in Miscellaneous

    i3dropdown is a tool to make any X application drop down from the top of the screen, in the famous quake console style back in the day. Compilation First of all, you have get i3dropdown and compile it. It does not have any dependencies so it is …

    Read more

Posts in 2019

  • Switching to Hugo

    Thursday, December 19, 2019 in Miscellaneous

    This is the website you are currently reading. It is a static website built using hugo. This article details how I installed hugo, how I initialised this website and how I manage it. I often refer to it as wiki.adyxax.org because I hosted a unique …

    Read more

  • Back from New Zealand

    Sunday, December 08, 2019 in Travels

    Read more

  • Dump all ansible variables

    Tuesday, October 15, 2019 in Ansible

    Here is the task to use in order to achieve that : - name:Dumpallvarsaction:templatesrc=dumpall.j2dest=ansible.all And here is the template to use with it : Module Variables ("vars"): -------------------------------- {{ vars | to_nice_json …

    Read more

  • RocketChat

    Tuesday, August 06, 2019 in Miscellaneous

    Docker simple install : docker run --name db -d mongo --smallfiles --replSet hurricane docker exec -ti db mongo > rs.initiate() docker run -p 3000:3000 --name rocketchat --env ROOT_URL=http://hurricane --env …

    Read more

  • Installing mssql on centos 7

    Tuesday, July 09, 2019 in Miscellaneous

    vi /etc/sysconfig/network-scripts/ifcfg-eth0 vi /etc/resolv.conf curl -o /etc/yum.repos.d/mssql-server.repo https://packages.microsoft.com/config/rhel/7/mssql-server-2017.repo curl -o /etc/yum.repos.d/mssql-prod.repo …

    Read more

  • qemu-nbd

    Monday, July 01, 2019 in Commands

    modprobe nbd max_part=8 qemu-nbd -c /dev/nbd0 image.img mount /dev/nbd0p1 /mnt # or vgscan && vgchange -ay [...] umount /mnt qemu-nbd -d /dev/nbd0

    Read more