Skip to content

Instantly share code, notes, and snippets.

@kumakichi
kumakichi / download java from oracle without login.sh
Created Jul 25, 2020
download java from oracle without login
View download java from oracle without login.sh
wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" 'https://download.oracle.com/otn-pub/java/jdk/14.0.2+12/205943a0976c4ed48cb16f1043c5c647/jdk-14.0.2_linux-x64_bin.tar.gz'
// or
curl -j -k -L -b "oraclelicense=accept-securebackup-cookie" 'https://download.oracle.com/otn-pub/java/jdk/14.0.2+12/205943a0976c4ed48cb16f1043c5c647/jdk-14.0.2_linux-x64_bin.tar.gz' -o jdk-14.0.2_linux-x64_bin.tar.gz
@kumakichi
kumakichi / realPath.go
Created Nov 26, 2019
get running executable file real path in golang
View realPath.go
package main
import (
"log"
"os"
"path/filepath"
)
func main() {
ex, err := os.Executable()
@kumakichi
kumakichi / README.org
Created Jan 24, 2019
HOWTO: Create Your Own Self-Signed Certificate with Subject Alternative Names Using OpenSSL in Bash
View README.org
@kumakichi
kumakichi / SimpleAuthServer.go
Last active Apr 29, 2016
A SimpleHTTPServer with authentication written in golang
View SimpleAuthServer.go
package main
import (
"encoding/base64"
"fmt"
"net/http"
"os"
)
var (
You can’t perform that action at this time.