Skip to content

Instantly share code, notes, and snippets.

@nonamed01
nonamed01 / fuckForticlient.sh
Last active April 27, 2024 00:45
fuckForticlient, a command-line client to connect to SAML fortivpn servers by using openfortivpn and the --cookie-in-stdin parameter
#!/bin/bash
# Uncomment the following line to debug the script:
#set -x
#####################################################################################
# fuckForticlient.sh
#
# Script to authenticate against Fortinet SAML servers using Firefox and
# openfortivpn. This replaces Forticlient for GNU/Linux completely.
# Because openfortivpn does not support SAML login (yet), this script uses Firefox
# to authenticate, grabs SVPNCOOKIE and then calls openfortivpn to setup
@nonamed01
nonamed01 / cores.sh
Last active March 23, 2021 10:25
Enable or disable HT on any GNU/Linux system at runtime
#!/bin/bash
#set -x
#################################################################################
# cores.sh
# 2021 by Toni Castillo Girona, uploaded to github.
# 2018 by Toni Castillo Girona
# <toni.castillo@upc.edu>
#################################################################################
# Only report total number of physical processors and quit: