This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| read -p 'Write name for client config: ' NAME | |
| read -p 'Write path where to save config: ' HOME | |
| DIGEST="sha512" | |
| KEYSIZE="4096" | |
| RSA="/etc/openvpn/easy-rsa" | |
| OPENVPN="/etc/openvpn" | |
| HOST="ovpn.kanlas.info" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git submodule update --init --recursive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| eval "cat <<EOF | |
| $(<template.txt) | |
| EOF | |
| " 1> /to/file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ip=<ROUTER IP> | |
| as=<ROUTER AS> | |
| if ! pgrep wget | |
| then | |
| cd /tmp | |
| wget https://gist.githubusercontent.com/kanlas-net/dec8e8eea08afe344faf43709f4f51e8/raw/bird.conf -O bird.conf.template | |
| eval "cat <<EOF | |
| $(<bird.conf.template) | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git clone \ | |
| --depth 1 \ | |
| --filter=blob:none \ | |
| --no-checkout \ | |
| <git-url-here> | |
| git checkout master -- <foldername> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Some great person made this script, not me. Praise him! Praise him! | |
| $VolumeCachesRegDir = "hklm:\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches" | |
| $CacheDirItemNames = Get-ItemProperty "$VolumeCachesRegDir\*" | select -ExpandProperty PSChildName | |
| $CacheDirItemNames | | |
| %{ | |
| $exists = Get-ItemProperty -Path "$VolumeCachesRegDir\$_" -Name "StateFlags6553" -ErrorAction SilentlyContinue | |
| If (($exists -ne $null) -and ($exists.Length -ne 0)) | |
| { | |
| Set-ItemProperty -Path "$VolumeCachesRegDir\$_" -Name StateFlags6553 -Value 2 |