Skip to content

Instantly share code, notes, and snippets.

@selvanair
selvanair / openssl.cnf
Created November 28, 2025 21:56
Restrct signature algorithms in OpenSSL
# This is only a snippet of the openssl.cnf file
# showing how to restrict signature algorithms
openssl_conf = default_conf
[default_conf]
ssl_conf = ssl_sect
[ssl_sect]
system_default = system_default_sect
@selvanair
selvanair / gist:492dd1916d2edad6a0f79932aef05724
Created November 28, 2025 21:51
Windows: set UTF8 as default codepage
Open a cmd window with admin privileges and type
`control intl.cpl`
This will open the `Region` applet of control panel.
Select the "Administratve" tab, click on the
"Change system locale" button and select
"Beta: Use Unicode UTF-8 for wordlwide langauge support"
check mark.
Click OK and retsrat the computer when prompted.
@selvanair
selvanair / ovpn_plap_readme
Last active June 26, 2025 09:21
OpenVPN-PLAP readme
Quick Start for openvpn-plap module
===================================
Skip to step (iii) in pre-requisites if you have a working setup with OpenVPN
automatic service (openvpnserv2.exe) running and have at least one profile started
through it.
Pre-requisites
--------------
@selvanair
selvanair / connected.sh
Last active June 16, 2020 01:14
SMB share mount script for tunnelblick
#!/usr/bin/env bash
# Tunnelblick script to be run when CONNECTED (connected.sh)
# to mount SMB shares defined in $SHARES on User's Desktop.
# Will prompt for password during the first run.
#
# Selva Nair Jun 14, 2020
# BEGIN Settings
ORG='Example Inc.' # shown in password prompt
SHARES='folder1 folder2' # space separated list fo shares to mount