Skip to content

Instantly share code, notes, and snippets.

View BhautikChudasama's full-sized avatar
🙂
hey!

bhautik BhautikChudasama

🙂
hey!
View GitHub Profile
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: fuse-device-plugin-daemonset
namespace: kube-system
spec:
selector:
matchLabels:
name: fuse-device-plugin-ds
template:
👋🏻 Hey!
@BhautikChudasama
BhautikChudasama / client.go
Created July 20, 2024 11:57
mTLS and get connection information at server side with RPC
package main
import (
"crypto/tls"
"crypto/x509"
"log"
"net/rpc"
"os"
)

Change locale

apt-get update

# Install locales package
apt-get install -y locales

# Uncomment en_US.UTF-8 for inclusion in generation
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen

Uninstall

sudo apt-get --purge remove postgresql
sudo apt-get purge postgresql*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common
sudo rm -rf /var/lib/postgresql/
sudo rm -rf /var/log/postgresql/
sudo rm -rf /etc/postgresql/