Skip to content

Instantly share code, notes, and snippets.

View halfpastfouram's full-sized avatar

Bob halfpastfouram

View GitHub Profile
@halfpastfouram
halfpastfouram / rcon.sh
Created May 24, 2023 08:22 — forked from mbasaglia/rcon.sh
A shell script which executes rcon commands
#!/bin/bash
SERVER='localhost'
PORT='26000'
PASSWORD='foo'
SECURE=0
SECURE_PORT="1234"
RCON_HEADER=$(echo -e "\xff\xff\xff\xff")
ESCAPE_CHAR=$(echo -en "\x1b")
@halfpastfouram
halfpastfouram / registry.example.com.conf
Created August 24, 2017 19:02 — forked from dkarlovi/registry.example.com.conf
GitLab's Container Registry (docker) behind Apache 2.4 reverse proxy
<VirtualHost *:80>
ServerName registry.example.com
ServerSignature Off
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [NE,R,L]
</VirtualHost>
<VirtualHost *:443>