Skip to content

Instantly share code, notes, and snippets.

@samsu
samsu / mysql_secure.sh
Last active March 16, 2016 18:22 — forked from Mins/mysql_secure.sh
Automating mysql_secure_installation
#!/bin/bash
aptitude -y install expect
// Not required in actual script
MYSQL_ROOT_PASSWORD=abcd1234
SECURE_MYSQL=$(expect -c "
set timeout 10
@samsu
samsu / predixy.spec
Created November 8, 2020 01:08 — forked from jeremyxu2010/predixy.spec
predixy的rpm打包spec文件
%define debug_package %{nil}
Name: predixy
Version: 1.0.5
Release: 1%{?dist}
Summary: Predixy is a redis smart proxy. It supports redis sentinel and redis cluster.
Group: Development/Databases
License: BSD 3
URL: https://github.com/joyieldInc/predixy
@samsu
samsu / switch_to_mysql_native_password.md
Created April 28, 2021 02:53 — forked from rohsyl/switch_to_mysql_native_password.md
MariaDB switch to mysql_native_password

Switch to mysql_native_password plugin

By default MariaDB use the unix_socket plugin to authenticate users.

But it's easier to use mysql_native_password for dev (and only for dev because it's way less secure).

Get root access

sudo su
@samsu
samsu / OIDC.jpg
Created April 8, 2023 00:28 — forked from arax/OIDC.jpg
OpenStack with OpenID Connect and OAuth 2.0
OIDC.jpg
@samsu
samsu / cuda_install.md
Created August 19, 2023 01:28 — forked from denguir/cuda_install.md
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation