Skip to content

Instantly share code, notes, and snippets.

View jpylypiw's full-sized avatar
⚜️
A user interface is like a joke. If you have to explain it, it's not that good.

Jochen P. jpylypiw

⚜️
A user interface is like a joke. If you have to explain it, it's not that good.
View GitHub Profile
@jpylypiw
jpylypiw / useful_cs_go_console_settings.md
Created May 21, 2023 16:32
Useful CS:GO Console Settings

reduce recoil viewmodel

viewmodel_recoil 0

view whole radar

cl_radar_scale 0.4
cl_radar_always_centered 0
cl_hud_radar_scale 1.15
@jpylypiw
jpylypiw / rspamd-whitelisting.md
Created July 20, 2020 08:44 — forked from ThomasLeister/rspamd-whitelisting.md
How to whitelist IP addresses or domains in Rspamd

Whitelist IP addresses based on pre-filter policy

/etc/rspamd/local.d/multimap.conf:

  IP_WHITELIST {
      type = "ip";
      prefilter = true;
      map = "/${LOCAL_CONFDIR}/local.d/ip_whitelist.map";
 action = "accept";
@jpylypiw
jpylypiw / gist:468b15edf95af5cbdc45234c6d7d998a
Last active July 17, 2020 17:30
Analyze most rejected ip addresses for easywall
cat /var/log/syslog | grep "PROTO=TCP" | grep -o -P "SRC.{0,20}" | grep -o -P "\b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b" | sort -n | uniq -c | sort -n
cat /var/log/syslog | grep "218.63.72.113" | grep -o -P "DPT.{0,6}" | sort -n | uniq -c | sort -n
@jpylypiw
jpylypiw / netapp.md
Created March 3, 2020 16:33
NetApp Tools
@jpylypiw
jpylypiw / profiles.json
Last active February 4, 2021 19:26
Windows Terminal Settings
// This file was initially generated by Windows Terminal 1.5.10271.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@jpylypiw
jpylypiw / gist:9f298bcf2c757dc68c5165e999465d42
Last active February 12, 2020 15:35
Funny Linux Shell Packages / Commands
lolcat
ponysay
cowsay
sl
hollywood
asciiquarium
oneko
fortunes
fortunes-de
@jpylypiw
jpylypiw / ts3backup.sh
Last active February 1, 2020 00:38
TeamSpeak3 Super Tiny Backup Script
#!/bin/bash
# add this to your crontab to execute a backup at 4am every day.
# note that the output will be written to /var/log/syslog so you can check if everything works fine.
# 0 4 * * * /bin/bash /opt/scripts/ts3backup.sh 2>&1 | logger -t ts3backup
BACKUPDIR="/opt/backup/ts3server"
TS3SERVERDIR="/home/ts3server/ts3server"
DATETIME=$(date +%Y-%m-%d_%H-%M)
BACKUPFILENAME="${DATETIME}_ts3server.tar.gz"
BACKUPMAXAGE="7"
@jpylypiw
jpylypiw / alternatives.md
Created January 28, 2020 14:27
how to use alternatives on linux

how to configure linux alternatives

notices

  • this only can be used by root
  • the file /usr/bin/python in the example will be replaced! Copy the file before performing changes.

example for python

alternatives --list | grep -i python
@jpylypiw
jpylypiw / javascript-synchronous-loop.js
Created June 30, 2019 18:54
JavaScript Synchronous Loop Example
function doSynchronousLoop(data, processData, done) {
if (data.length > 0) {
var loop = function (data, i, processData, done) {
processData(data[i], i, function () {
if (++i < data.length) {
setTimeout(function () {
loop(data, i, processData, done);
}, 0);
} else {
done();
@jpylypiw
jpylypiw / ICINGA.md
Last active June 22, 2019 07:12
Icinga2 Installation Instructions

Server

???

Client

Basically you first have to install the NRPE Server to get the checks running. Change the allowed_hosts Variable to localhost and the IP-Address of your Icinga2 Server.

apt install -y nagios-nrpe-server
nano /etc/nagios/nrpe.cfg