Skip to content

Instantly share code, notes, and snippets.

View kunalkushwaha's full-sized avatar

Kunal Kushwaha kunalkushwaha

View GitHub Profile
@kunalkushwaha
kunalkushwaha / go_scp.go
Created April 8, 2019 05:18 — forked from jedy/go_scp.go
an example of scp in golang
// https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works
package main
import (
"fmt"
"golang.org/x/crypto/ssh"
)
const privateKey = `content of id_rsa`
sudo dnf install appcenter audience maya-calendar noise pantheon-calculator pantheon-files pantheon-files pantheon-photos pantheon-terminal scratch-text-editor screenshot-tool snap-photobooth switchboard elementary-icon-theme elementary-theme pandora-wallpapers plank gala pantheon-agent-polkit pantheon-session-settings slingshot-launcher wingpanel
@kunalkushwaha
kunalkushwaha / docker-ssl-cert-generate
Created November 16, 2015 04:16 — forked from cameron/docker-ssl-cert-generate
Generate self-signed SSL certs for docker client <— HTTPS —> daemon
#! /bin/bash
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt
echo 01 > ca.srl
openssl genrsa -des3 -out ca-key.pem
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem
openssl genrsa -des3 -out server-key.pem
openssl req -new -key server-key.pem -out server.csr