Skip to content

Instantly share code, notes, and snippets.

View georgemakrakis's full-sized avatar

George Makrakis georgemakrakis

View GitHub Profile
@harishanchu
harishanchu / openssl.MD
Created January 12, 2018 14:49 — forked from jchandra74/openssl.MD
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

@sid24rane
sid24rane / base64-encode-decode.js
Created July 26, 2016 14:26
Node.js Base64 Encode Decode -> Image
var buffer = require('buffer');
var path = require('path');
var fs = require('fs');
function encode_base64(filename){
fs.readFile(path.join(__dirname,'/public/',filename),function(error,data){
if(error){
throw error;
}else{
var buf = Buffer.from(data);

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: