Skip to content

Instantly share code, notes, and snippets.

@m4t7e0
m4t7e0 / connect-to-fortigate.sh
Last active September 18, 2023 15:51 — forked from leomos/connect-to-fortigate.sh
Fortigate firewall connection
#!/bin/bash
USER="user"
PASSWORD="password"
SEP="+++++"
TMP=`curl -s -D - ident.me | grep window.location`
echo "Header with magic: "$TMP
MAGIC=`echo $TMP | grep -o '[[:alnum:]]\{16\}' | tr -d '\r\n'`
HOST=`echo $TMP | cut -d / -f3 | cut -d : -f1 | tr -d '\r\n'`
@m4t7e0
m4t7e0 / sysctl-proxmox-tune.conf
Created March 28, 2023 16:10 — forked from sergey-dryabzhinsky/sysctl-proxmox-tune.conf
Most popular speedup sysctl options for Proxmox. Put in /etc/sysctl.d/
###
# Proxmox or other server kernel params cheap tune and secure.
# Try it if you have heavy load on server - network or memory / disk.
# No harm assumed but keep your eyes open.
#
# @updated: 2020-02-06 - more params used, adjust some params values, more comments on params
#
### NETWORK ###
@m4t7e0
m4t7e0 / hosts
Last active June 30, 2019 18:12 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# 20180201 Adobe Activation Added
# This hosts was an improved version of the file brought from Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#
# See below for acknowledgements.
# Please forward any additions, corrections by git comment