Skip to content

Instantly share code, notes, and snippets.

@tsohr
tsohr / install_forticlient_linux.sh
Created August 27, 2021 06:10 — forked from PieterScheffers/install_forticlient_linux.sh
Install Forticlient on Linux
# install ubuntu in virtual machine
# https://ubuntuforums.org/showthread.php?t=1481300
# Get arch type of ubuntu
# i686 = 32 bit
# x86_64 = 64 bit
uname -m
# download forticlient
https://hadler.me/linux/forticlient-sslvpn-deb-packages
@tsohr
tsohr / install_forticlientsslvpn_linux
Last active August 30, 2021 04:52 — forked from zealfire/install_forticlientsslvpn_linux
Install forticlient in linux. Replace HOST, PORT, USER and PASS.
sudo apt-get install expect
wget https://hadler.me/files/forticlient-sslvpn_4.4.2333-1_amd64.deb
sudo dpkg -i forticlient-sslvpn_4.4.2333-1_amd64.deb
/opt/forticlient-sslvpn/64bit/helper/setup
cat > sslvpn << EOF
#!/usr/bin/expect -f
@tsohr
tsohr / nginx-tls.conf
Created September 16, 2017 12:04 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <gavinhungry@gmail.com>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
#
# Enables SPDY, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are omitted here.
#
# Example: https://www.ssllabs.com/ssltest/analyze.html?d=gavinhungry.io
#
package synctest.insight.romax.com.synctest;
/*
* Copyright (C) 2014 skyfish.jy@gmail.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@tsohr
tsohr / gist:355e9785f7e7c40d1b48
Created February 24, 2016 02:50 — forked from ctrl-shift/gist:5618320
postgres terminate all connections to db
select pg_terminate_backend(pid)
from pg_stat_activity
where datname = 'db name'