Skip to content

Instantly share code, notes, and snippets.

View sify21's full-sized avatar
🌴
On vacation

sify21

🌴
On vacation
View GitHub Profile
@sify21
sify21 / how-to-generate-and-use-private-keys-with-openssl-tool.md
Created October 6, 2025 11:37 — forked from briansmith/how-to-generate-and-use-private-keys-with-openssl-tool.md
How to generate & use private keys using the OpenSSL command line tool

How to Generate & Use Private Keys using OpenSSL's Command Line Tool

These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.

OpenSSL has a variety of commands that can be used to operate on private key files, some of which are specific to RSA (e.g. openssl rsa and openssl genrsa) or which have other limitations. Here we always use

@sify21
sify21 / Git_Behind_Proxy.md
Last active January 2, 2023 10:48 — forked from ozbillwang/Git_Behind_Proxy.md
Configure Git to use a proxy (https or SSH+GIT)
@sify21
sify21 / GitConfigHttpProxy.md
Created January 2, 2023 09:47 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@sify21
sify21 / pwdx_for_mac.bash
Last active September 15, 2021 03:48 — forked from tobym/pwdx_for_mac.bash
pwdx for mac. Usage: pwx pid
function pwdx {
lsof -a -d cwd -p $1 -n -Fn | awk '/^n/ {print substr($0,2)}'
}
@sify21
sify21 / howToModifyOvaFile.md
Created August 29, 2021 15:40 — forked from goodjob1114/howToModifyOvaFile.md
how to modify .ova file on linux/Mac using terminal....export vm (OVF 1.0) from virtualbox, then modify some tag and hash value for import vm to ESXi

extract ova files from an archive

$ tar -xvf vmName.ova

modify ovf for some invalid tag

$ vi vmName.ovf
package main
import (
"fmt"
"log"
"net/http"
)
func init() {
log.SetFlags(log.Lshortfile)