Skip to content

Instantly share code, notes, and snippets.

View netsensei's full-sized avatar
👾
retro-wave driven development

Matthias Vandermaesen netsensei

👾
retro-wave driven development
View GitHub Profile
flowchart LR
W((World)) --- TR
TR --- KC(Keycloak)
BB --- KC
subgraph Nomad
TR(Traefik proxy) --- BB
BB(Biblio backend) --- NATS{NATS}
NATS --- JB{JMS bridge}
JB --- F(Fedora repository)
NATS --- IDX(Indexer service)
@netsensei
netsensei / postgresinstall.md
Last active December 19, 2023 09:25
Install PostgreSQL on Fedora Linux

Installation and initial setup of PostgreSQL for local use

Step 1: Installation of PostgreSQL

Add the YUM repo to your host:

$ sudo dnf install https://download.postgresql.org/pub/repos/yum/reporpms/F-37-x86_64/pgdg-fedora-repo-latest.noarch.rpm
@netsensei
netsensei / elasticsearchinstall.md
Created May 16, 2022 09:38
Installation and initial setup of Elasticsearch on Fedora

Installation and initial setup of Elasticsearch on Fedora

Installation of ES 6.8

$ sudo dnf install java-latest-openjdk
$ sudo rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch
$ cat <<EOF | sudo tee /etc/yum.repos.d/elasticsearch.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
@netsensei
netsensei / stib.py
Created October 8, 2022 16:07
STIB/MIVB waiting times for a set of stops as a CLI script
#!/usr/bin/python3
#
# run it:
# STIBKEY=<apikey> ./stib.py
import os
import requests
import json
import datetime
from datetime import timedelta
@netsensei
netsensei / build_rpm.sh
Last active January 25, 2023 10:54
Create an RPM package from a .spec file
#!/bin/bash
DIR=$1
if [[ ! -d $DIR ]];then
echo "${DIR} does not exist."
exit 1
fi
BASENAME=$(basename $DIR)
UPDIR=$(cd $DIR/.. && pwd)
@netsensei
netsensei / libpq.md
Created March 20, 2024 12:33
pqsl, pg_dump and pg_restore via hombrew

Installing pqsl, pg_dump and pg_restore via hombrew

These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.

First, install libpq via homebrew

brew doctor
brew update
brew install libpq

How to screen

Create a new screen session:

screen -S session_name

Detach from your screen session: