Skip to content

Instantly share code, notes, and snippets.

View flavienbwk's full-sized avatar

Flavien Berwick flavienbwk

  • Montréal, Canada
  • 15:04 (UTC -04:00)
View GitHub Profile
@Remiii
Remiii / README.md
Created October 17, 2017 08:43
VPN (OpenVPN) server and clients setup 🚂🚇😀

VPN (OpenVPN) server and clients setup 🚂🚇😀

This gist give all the steps in order to build a VPN (OpenVPN) network with server and clients (automatic generation for clients certificates). 😀

  1. Server configuration
  2. Clients configuration
  3. Security
  4. Generate automatic certificates for clients

Server configuration

@joenas
joenas / matrix_synapse.nginx.conf
Last active May 14, 2021 16:53
Nginx example conf for Synapse matrix Homeserver
# vim: syntax=nginx
server {
listen 80;
server_name example.com www.example.com;
return 301 https://$server_name$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
@rkaramandi
rkaramandi / install-kubernetes-flannel-centos7.md
Last active April 6, 2024 05:23
Installing Kubernetes with the Flannel Network Plugin on CentOS 7

Install Prerequisites on ALL (Worker and Master) Nodes

Let's remove any old versions of Docker if they exist:

sudo yum remove docker \
                  docker-common \
                  docker-selinux \
                  docker-engine
@shvchk
shvchk / notify-all.sh
Last active September 11, 2023 13:06
Send notification to all users via notify-send
#! /usr/bin/env bash
user_list=($(who | grep -E "\(:[0-9](\.[0-9])*\)" | awk '{print $1 "@" $NF}' | sort -u))
for user in $user_list; do
username=${user%@*}
display=${user#*@}
dbus=unix:path=/run/user/$(id -u $username)/bus
sudo -u $username DISPLAY=${display:1:-1} \
@jchandra74
jchandra74 / openssl.MD
Last active February 16, 2024 21:23
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Ubuntu Bash for Window

Overview

My main development workstation is a Windows 10 machine, so we'll approach this from that viewpoint.

Recently, Google Chrome started giving me a warning when I open a site that uses https and self-signed certificate on my local development machine due to some SSL certificate issues like the one below:

Self-Signed SSL Issue in Chrome

@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active June 24, 2024 18:34
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andyrbell
andyrbell / docker-image-size.sh
Last active June 3, 2024 16:58
Sort docker images by size desc
#!/bin/sh
docker images --format '{{.Size}}\t{{.Repository}}\t{{.Tag}}\t{{.ID}}' | sed 's/ //' | sort -h -r | column -t
@helmasaur
helmasaur / license-badges.md
Last active March 1, 2022 16:49 — forked from lukas-h/license-badges.md
Badges de licence pour vos projet

Badges de licence en Markdown

Collection de badges de licence pour le fichier README de vos projets. Copiez-collez facilement le code dessous les badges dans vos fichier au format Markdown.

Notes

  • Les badges sont réalisé avec Shields.io.
  • Ces badges ne remplacent pas les informations concernant vos projets. Il s'agit seulement d'images pour le fichier README afin que les utilisateurs voient en un coup d'œil la licence choisie.

Vous souhaitez qu'une licence soit ajoutée ?

Commentez ce gist ou contactez le créateur du gist original via un commentaire ou via courriel (lukas@himsel.me)

@garethrees
garethrees / rsync.sh
Last active June 19, 2024 04:59
rsync & scp through jump host
# Upload
rsync -av -e "ssh -A JUMP_HOST ssh" FILE_TO_SEND DEST_HOST:/home/gareth/
# Download
rsync -av -e "ssh -A JUMP_HOST ssh" DEST_HOST:~/FILE_TO_DOWNLOAD ~/Downloads/