go mod edit -go=<GO_VERSION>
Example:
go mod edit -go=1.24
Just check the output looking for the TLS versions. In this case v1.0, v1.1, v1.2 and v1.3:
$ nmap --script ssl-enum-ciphers -p 443 www.google.com
Starting Nmap 7.93 ( https://nmap.org ) at 2023-03-29 18:12 CEST
NSOCK ERROR [0.0620s] ssl_init_helper(): OpenSSL legacy provider failed to load.
Nmap scan report for www.google.com (142.250.185.4)
Debug HTTP response with Golang's httputil package https://golang.org/pkg/net/http/httputil/#DumpResponse.
import (
"fmt"
"net/http"
"net/http/httputil"
)
resp, _ := http.Get("https://kctbh9vrtdwd.statuspage.io/api/v2/status.json")
#!/bin/bash | |
# Maximum retries we want to iterate | |
MAX_RETRIES=10 | |
retries=0 | |
echo -n "Waiting MySQL to be ready" | |
# mysqladmin ping will produce false positives when is ready but can not yet accept. | |
# With this solution, we ensure the output is what we expect for any case. | |
until [[ "$o" == "mysqld is alive" ]]; do |
OpenSSH 8.3p1 introduces the need of having a public SSH key otherwise is gonna show the warning
load pubkey "/root/.ssh/id_rsa": invalid format
# ssh -V
OpenSSH_8.3p1, OpenSSL 1.1.1g 21 Apr 2020
To supress this message we can put in place our SSH public key or generate it from our private key with:
'use strict'; | |
const thunk = require('thunks')(); | |
const nodeRedis = require('redis'); | |
const IoRedis = require('ioredis'); | |
// test in thunks(thunk base) | |
thunk(bench)(console.log.bind(console)); | |
function * bench () { |