filetype plugin indent on │
" show existing tab with 4 spaces width │
set tabstop=4 │
" when indenting with '>', use 4 spaces width │
set shiftwidth=4 │
" On pressing tab, insert 4 spaces │
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
| openssl pkcs12 -in standard_certificate.pfx -nocerts -out key-encrypted.key | |
| openssl pkcs12 -in standard_certificate.pfx -clcerts -nokeys -out certificate.crt | |
| openssl rsa -in key-encrypted.key -out key-decrypted.key | |
| openssl pkcs12 -in standard_certificate.pfx -out domain-ca.crt -nodes -nokeys -cacerts | |
| cat certificate.crt domain-ca.crt > full_certificate.crt // for nginx cert |
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
| server { | |
| listen <port> ssl; | |
| server_name <domain>; | |
| ssl_certificate /etc/ssl/certs/cert.crt; | |
| ssl_certificate_key /etc/ssl/private/cert.key; | |
| access_log /home/<domain>/logs/<domain>.access.log main; | |
| error_log /home/<domain>/logs/<domain>.error.log warn; | |
| root /home/<domain>/public_html; |
install: apt install tightvncserver xtightvncviewer
edit xstartup file located on $HOME/.vnc/xstartup
#!/bin/sh
def
export XKLXMODMAPDISABLE=1
unset SESSIONMANAGER
unset DBUSSESSIONBUSADDRESS
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 | |
| touch hello.java | |
| echo 'class Hello{public static void main(String[] args){System.out.println("Hello World");}}' > hello.java | |
| javac hello.java | |
| touch MANIFEST.MF | |
| echo "Main-Class: Hello" > MANIFEST.MF | |
| jar cmfv MANIFEST.MF Hello.jar *.class | |
| java -jar Hello.jar |
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 | |
| touch hello.java | |
| echo 'class Hello{public static void main(String[] args){System.out.println("Hello World");}}' > hello.java | |
| javac hello.java | |
| touch MANIFEST.MF | |
| echo "Main-Class: Hello" > MANIFEST.MF | |
| jar cmfv MANIFEST.MF Hello.jar *.class | |
| java -jar Hello.jar |
this tutorial show you how to install kerio vpnClient on centos7 64bit. kerio vpnClient does not have any .rpm official version! I tried install it during one week.
-
first of all download
kerio-control-vpnclient-###-linux-amd64.debfrom http://www.ryadel.com/en/kerio-control-vpn-client-all-versions-direct-download-links/ which contain many version of kerio-control-vpn-client or everywhere else. -
after download
kerio-control-vpnclient-###-linux-amd64.debwe must convert it to.rpmpackage, to convert.debto.rpmuse alien which convert packages ( https://packages.debian.org/unstable/source/alien )