Skip to content

Instantly share code, notes, and snippets.

View muocod's full-sized avatar
🙂

Sigma Devops muocod

🙂
View GitHub Profile
@muocod
muocod / BACKUP.md
Created March 28, 2023 08:30 — forked from andrewsomething/BACKUP.md
Backup GitLab to DigitalOcean Spaces

Backup GitLab to DigitalOcean Spaces

GitLab uses Fog to communicate with various object storage services when running backups. Fog works with S3 as well as S3-compatible services like Spaces. The key difference is that you need to explictly set the endpoint for non-S3 services. If you are using the "ominbus" GitLab packages, you would need to add the following to /etc/gitlab/gitlab.rb:

gitlab_rails['backup_upload_connection'] = {
#!/bin/bash
##################################################################################################################################
# https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-20-04
##################################################################################################################################
# Configures a full ELK stack ob Ubuntu 20.04
# - Elasticsearch
# - Kibana
# - nginx
@muocod
muocod / linux-networking-tools.md
Created December 14, 2022 05:59 — forked from miglen/linux-networking-tools.md
Linux networking tools

List of Linux networking tools

netstat (ss)

Displays contents of /proc/net files. It works with the Linux Network Subsystem, it will tell you what the status of ports are ie. open, closed, waiting, masquerade connections. It will also display various other things. It has many different options. Netstat (Network Statistic) command display connection info, routing table information etc. To displays routing table information use option as -r.

Sample output:

Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)    
tcp4 0 0 127.0.0.1.62132 127.0.0.1.http ESTABLISHED
@muocod
muocod / docker-compose.yml
Created October 21, 2022 11:38 — forked from twang2218/docker-compose.yml
HAProxy + Nginx + PHP with client IP attached (don't forget docker daemon option `--userland-proxy=false`)
version: '2'
services:
haproxy:
image: haproxy:alpine
volumes:
- ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
ports:
- "80:80"
depends_on:
- nginx