Skip to content

Instantly share code, notes, and snippets.

@centratelemedia
centratelemedia / dial-mysql-via-ssh.go
Created March 5, 2023 09:18 — forked from vinzenz/dial-mysql-via-ssh.go
Using MySQL / MariaDB via SSH in Golang
package main
import (
"database/sql"
"fmt"
"net"
"os"
"github.com/go-sql-driver/mysql"
"golang.org/x/crypto/ssh"
@centratelemedia
centratelemedia / gist:8adcbb759f80ef1e78fb758ccee74f12
Created March 25, 2022 16:32 — forked from lacoski/gist:3e0ee45d4276be9d6dca689366197026
increase max number of ulimit open file and max user processes in Linux.
1- Step : open the sysctl.conf and add this line fs.file-max = 65536
vi /etc/sysctl.conf add end of line
fs.file-max=500000
save and exit.
2. Step : vi /etc/security/limits.conf and add below the mentioned
* soft nproc 500000