Skip to content

Instantly share code, notes, and snippets.

@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
# <[email protected]>
#################################################################################
# Only report total number of physical processors and quit:
@nonamed01
nonamed01 / fuckForticlient.sh
Last active November 5, 2024 09:51
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