Skip to content

Instantly share code, notes, and snippets.

View rkasigi's full-sized avatar

Rendi Kasigi rkasigi

View GitHub Profile
@rkasigi
rkasigi / docker-swarm-gpu.md
Created September 2, 2021 09:16 — forked from tomlankhorst/docker-swarm-gpu.md
Instructions for Docker swarm with GPUs
@rkasigi
rkasigi / semantic-commit-messages.md
Created April 22, 2020 03:46
semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

type could be, but not limited with:

@rkasigi
rkasigi / install-L2TP-IPsec-on-ubuntu-18.04.md
Last active January 20, 2024 19:31
Install VPN L2TP IPSec on Ubuntu 18.04

Install L2TP IPsec Connection on Ubuntu 18.04

L2TP on its own is not secure enough, so we’ll need to pair this protocol with IPSec.

To establish an L2TP VPN connection from the Ubuntu command line, we must first install strongswan and xl2tpd

Install requirements

We’re going to use StrongSwan for IPSec.

apt-get install strongswan xl2tpd -y

I'm running into the same issue. Using python venv I was able to get certbot working using pip.

Steps: Install virtualenv

pip install virtualenv --upgrade

Create a virtualenv

virtualenv -p /usr/bin/python2.7 certbot
@rkasigi
rkasigi / openssl-tsa-step-by-step.txt
Last active July 25, 2019 13:01
openssl-tsa-test
# Download this files
- openssl.conf
- openssl-tsa.conf
- testing.txt
- tsaserial
# Generate CA Certificate
openssl req -new -newkey rsa:4096 -nodes -out ca.csr -keyout ca.key -config openssl.conf
openssl x509 -trustout -signkey ca.key -days 1461 -req -in ca.csr -out ca.pem
@rkasigi
rkasigi / macosx-install-php-oracle-oci8-pdo_oci.md
Last active February 11, 2021 08:13 — forked from krisanalfa/macosx-install-php-oracle-oci8-pdo_oci.md
Install OCI8 and / or PDO_OCI on OSX via Brew

Install PHP Oracle oci8 and pdo_oci on Mac OSX

This procedure is tested on Mac OS X 10.10.5 with Developpers tools installed (xCode).

PHP 5.6 installed with Homebrew.

Preparation

Download the following files from Oracle website (yes, you need to create an account and accept terms):

@rkasigi
rkasigi / dokku-acl-config-and-troubleshoot.md
Last active April 16, 2020 05:27
Dokku Hack for Centos 7.x

Dokku ACL Plugin troubleshoot and configuration

Dokku Acl Config

config file at /home/dokku/.dokkurc/acl

export DOKKU_SUPER_USER=root
export DOKKU_ACL_USER_COMMANDS="help version mariadb:connect"
export DOKKU_ACL_PER_APP_COMMANDS="logs urls enter ps:rebuild ps:restart ps:stop ps:start git-upload-pack git-upload-archive config config:set git-receive-pack git-hook storage:list"
@rkasigi
rkasigi / homebrew_multiple_mysql_versions.md
Created March 26, 2019 09:46 — forked from mitchkramez/homebrew_multiple_mysql_versions.md
Multiple MySQL Versions with Homebrew

Multiple MySQL Versions with Homebrew

For homebrew version 1.5.12 - WIP... not quite working yet.

brew -v # => Homebrew 1.5.12

Install the current version of mysql.

# Install current mysql version

brew install mysql

@rkasigi
rkasigi / HOWTO.md
Created March 26, 2019 09:46 — forked from ivanvermeyen/HOWTO.md
Multiple MySQL versions on MacOS with Homebrew

Multiple MySQL versions on MacOS with Homebrew

At the time of writing (december 2018), there aren’t any up-to-date and easy to apply guides on how to switch between different MySQL version on a Mac using Homebrew . Or at least, I didn’t find any.

So I picked up a few things here and there and finally managed to connect all the pieces of the puzzle. I hope this guide can help you and the future me. If anyone knows of a better way to accomplish this, I do hope they will share their insight :)

The basic idea here is that you need to install all MySQL versions one at a time and assign each its own data directory.

I am using Homebrew 1.8.5. (brew -v)

@rkasigi
rkasigi / self-signed-certificate-with-custom-ca.md
Created March 26, 2019 02:57 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096