Skip to content

Instantly share code, notes, and snippets.

View eye-scuzzy's full-sized avatar

Anton Barsukov eye-scuzzy

  • LLC Technology
  • Russia, Kurgan
View GitHub Profile
#!/bin/sh
PW=$(openssl rand -base64 42 | tr -cd '[:alnum:]')
echo $PW
@eye-scuzzy
eye-scuzzy / centos7_template
Created July 13, 2016 14:45
CentOS 7.2 VMware vSphere 6 template with guest customization working
## Download latest CentOS 7 x86_64 minimal iso image
## Good readings
# https://labs.vmware.com/vmtj/methodology-for-performance-analysis-of-vmware-vsphere-under-tier-1-applications
# https://labs.vmware.com/vmtj/virtualizing-latency-sensitive-applications-where-does-the-overhead-come-from
## Create typical CentOS VM
# compatible with 'ESXi 6.0 and later'
# set 'Guest OS Family' to 'Linux'
# set 'Guest OS Version' to 'CentOS 4/5/6/7 (64 bit)'
@eye-scuzzy
eye-scuzzy / ovpn_admin_group_add.ps1
Created January 12, 2020 14:19
OpenVPN 2.4 netsh command failed ipv6 leaseweb
# First thing you need to do after OpenVPN installation is add current user to the ovpn_admin_group
# https://community.openvpn.net/openvpn/wiki/OpenVPNInteractiveService
# then "Import profile" from OpenVPN GUI and press "Connect" from context menu
# XXX this script doesn't work for "Start OpenVPN on this config file" from context menu on .opvn file
# for this way you need to add administrators privileges for both openvpn.exe and openvpn-gui.exe
$user = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name
$key = "Registry::HKEY_LOCAL_MACHINE\SOFTWARE\OpenVPN"
$value = "ovpn_admin_group"