Skip to content

Instantly share code, notes, and snippets.

View Jorge-Nunes's full-sized avatar

Jorge Carlos Vieira Nunes Jorge-Nunes

View GitHub Profile

Podman Compose with OpenSuSE MicroOS - Container Autostart on System-Boot

It is really easy to configure a user-space systemd autostart for Containers on OpenSuSE MicroOS with Podman-Compose.

When your Podman Container YourContainerService is running, then generate the systemd user unit:

podman generate systemd --new YourContainerService > ~/.config/systemd/user/YourContainer.service
@Jorge-Nunes
Jorge-Nunes / docker-compose.yml
Created April 12, 2024 18:56 — forked from FlorianHeigl/docker-compose.yml
check_mk via compose (clean config)
---
version: '3'
services:
checkmk:
image: checkmk/check-mk-raw:2.0.0-latest
ports:
- "162:162/udp"
- "514:514/udp"
- "514:514/tcp"
- "6557:6557/tcp"
@Jorge-Nunes
Jorge-Nunes / traefik_portainer.md
Created January 18, 2024 00:57 — forked from ruanbekker/traefik_portainer.md
Traefik with SSL + Portainer on Docker Swarm Repro

Traefik and Portainer on Docker Swarm with Letsencrypt

Reproducing a Traefik with SSL and Portainer setup on a 2 Node Docker Swarm

Install Docker:

Install Docker on both nodes with a Bootstrap Script:

$ curl https://gitlab.com/rbekker87/scripts/raw/master/setup-docker-ubuntu.sh | bash
@Jorge-Nunes
Jorge-Nunes / iperf.service
Created December 26, 2022 03:04 — forked from mmasaki/iperf.service
systemd service unit for iperf
# /etc/systemd/system/iperf.service
[Unit]
Description=iperf server
After=syslog.target network.target auditd.service
[Service]
ExecStart=/usr/bin/iperf -s
[Install]
WantedBy=multi-user.target
@Jorge-Nunes
Jorge-Nunes / Proxmox-Cloudinit.sh
Created November 3, 2022 00:37 — forked from chris2k20/Proxmox-Cloudinit.sh
Proxmox Cloud-Init Template Creation Bash-Script (Ubuntu)
#!/bin/bash
# Creats a ubuntu Cloud-Init Ready VM Template in Proxmox
#
# https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2
#
export IMAGENAME="focal-server-cloudimg-amd64.img"
export IMAGEURL="https://cloud-images.ubuntu.com/focal/current/"
#!/bin/bash
# Creats a Ubuntu 20.10 Cloud-Init Ready VM Template in Proxmox
#
# Ubuntu 20.04: https://gist.github.com/chris2k20/dba14515071bd5a14e48cf8b61f7d2e2
# Ubuntu 20.10: https://gist.github.com/chris2k20/181ef4e4308e678657459d40ea94af90
export IMAGENAME="groovy-server-cloudimg-amd64.img"
export IMAGEURL="https://cloud-images.ubuntu.com/groovy/current/"
@Jorge-Nunes
Jorge-Nunes / nginx-tuning.md
Created November 2, 2022 18:17 — forked from denji/nginx-tuning.md
NGINX tuning for best performance

Moved to git repository: https://github.com/denji/nginx-tuning

NGINX Tuning For Best Performance

For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.

Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.

You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.

@Jorge-Nunes
Jorge-Nunes / instructions.txt
Created May 25, 2021 15:52 — forked from malkitsingh/instructions.txt
Step by step guide to install nominatim server
I followed these two blogs to install server
1. http://koo.fi/blog/2015/03/19/openstreetmap-nominatim-server-for-geocoding/#Compile_Nominatim
This explains ( and is the main blog which I followed) various steps
2. https://www.linuxbabe.com/linux-server/openstreetmap-tile-server-ubuntu-16-04
This explains how to setup swap files and install tiles if needed.
I will use Ubuntu 14.04 LTS as the platform. Just a basic install with ssh server. We will install Apache to serve http requests. Make sure you have enough disk space and RAM to hold the data and serve it efficiently. I used the Finland extract, which was about a 200 MB download. The resulting database was 26 GB after importing, indexing and adding Wikipedia data. The Wikipedia data probably actually took more disk space than the OSM data. My server has 4 GB RAM, which seems to be enough for this small data set.
1. Sofware requirements