Skip to content

Instantly share code, notes, and snippets.

View soreana's full-sized avatar
🌷
:-)

Sina Kashipazha soreana

🌷
:-)
View GitHub Profile
@maxivak
maxivak / _0__ssl_certbot_letsencrypt.md
Last active April 16, 2024 21:48
Let's encrypt SSL certificates using certbot in docker

Directories on host machine:

  • /data/certbot/letsencrypt

  • /data/certbot/www

  • Nginx server in docker container

docker run -d --name nginx \
@whiler
whiler / hmac-sha256.sh
Last active June 5, 2023 09:46
hmac sha256 encode with url safe base64 in bash shell
$ echo -en "message" | openssl dgst -sha256 -hmac "key" -binary | base64 | sed -e 's/+/-/g' -e 's/\//_/g' | tr -d =
bp7ym3X__Ft6uuUn1Y_a2y_kLnIZARl2kXNDBl9Y7Uo
@cmer
cmer / haproxy.cfg
Last active April 15, 2024 09:54
Simple, no bullshit TCP port forwarding using HAProxy
listen l1
bind 0.0.0.0:443
mode tcp
timeout connect 4000
timeout client 180000
timeout server 180000
server srv1 host.example.com:9443
@neclimdul
neclimdul / gist:3265570
Created August 5, 2012 16:12
Tekkit init.d script for debian(ubuntu)
#!/bin/sh
### BEGIN INIT INFO
# Provides: minecraft
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: true
# Short-Description: Start/stop Tekkit minecraft server
# Description: This file should be used to construct scripts to be