Your OpenSSH Private Key looks like this
-----BEGIN OPENSSH PRIVATE KEY-----
b34ahC
-----END OPENSSH PRIVATE KEY-----
First, backup your OpenSSH Private Key
$ cp server_ssh.key server_ssh.key.backup
let sendStatus = 'FAILED'; | |
// DELAY in Milliseconds | |
const DELAY = 1000; // 1 second | |
const retryEmail = () => { | |
console.log('retry failed email'); | |
return 'FAILED'; | |
}; |
.PHONY : test build clean format | |
ALL_PACKAGES=$(shell go list ./... | grep -v "vendor") | |
test: | |
$(foreach pkg, $(ALL_PACKAGES),\ | |
go test -race -short $(pkg);) | |
build: | |
@echo "building binary" |
# | |
# Assumes an independent box (we'll call this one "graphite") | |
# | |
# Stay up to date | |
sudo apt-get update | |
sudo apt-get upgrade | |
# Install git | |
sudo apt-get install g++ curl libssl-dev -y |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"math" | |
"strings" | |
) | |
// α(radians) = α(degrees) × π / 180° |
// luhn's algorithm | |
// https://en.wikipedia.org/wiki/Luhn_algorithm | |
package main | |
import ( | |
"errors" | |
"fmt" | |
"strconv" | |
"strings" | |
) |
package main | |
import ( | |
"errors" | |
"fmt" | |
"math" | |
) | |
// K K-factor | |
const K = 30 |
package main | |
import ( | |
"fmt" | |
) | |
type Queue[T any] struct { | |
elements []T | |
size uint | |
rear uint |
Your OpenSSH Private Key looks like this
-----BEGIN OPENSSH PRIVATE KEY-----
b34ahC
-----END OPENSSH PRIVATE KEY-----
First, backup your OpenSSH Private Key
$ cp server_ssh.key server_ssh.key.backup
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
// α(radians) = α(degrees) × π / 180° | |
func DegToRad(deg float64) float64 { | |
return deg * (math.Pi / 180) |
package main | |
import ( | |
"fmt" | |
"unsafe" | |
) | |
type sample struct { | |
a int | |
b string |