Skip to content

Instantly share code, notes, and snippets.

View khorsmann's full-sized avatar

Karsten Horsmann khorsmann

  • Germany / Hanover
View GitHub Profile
@khorsmann
khorsmann / WSLWindows10Setup.md
Last active March 27, 2024 08:07 — forked from AjkayAlan/WSLWindows10Setup.md
Windows SubSystem For Linux setup that I like with some developers stuff mixed in

Setting Up WSL

Install A Distro:

  1. Run the following in powershell as admin Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  2. Install a distro (ex: Ubuntu 18.04 LTS - https://www.microsoft.com/store/apps/9N9TNGVNDL3Q)

  3. Open your distro you installed via the start menu, let it setup

  4. Update and upgrade

sudo apt-get update
@khorsmann
khorsmann / ansible-summary.md
Created March 11, 2021 15:19 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@khorsmann
khorsmann / VAGRANT-Cheat-Sheet.md
Created June 2, 2019 12:53 — forked from carlessanagustin/VAGRANT-Cheat-Sheet.md
This is a VAGRANT cheat sheet

Vagrant Cheat Sheet

add image

local

$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up
- Install Python, git, build-essential from dietpi-software
- Run rpi-source: https://github.com/notro/rpi-source/wiki
- Enable IP Forwarding
- nano /etc/sysctl.conf:
- net.ipv4.ip_forward = 1
- sudo apt-get install libmnl-dev
- git clone https://git.zx2c4.com/WireGuard
@khorsmann
khorsmann / nginx.conf
Created June 23, 2018 19:07 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@khorsmann
khorsmann / gist:271ce911c6a4fc92d03c206d3b9dc35f
Last active April 26, 2018 09:33 — forked from sdoro/gist:4291961
restart OpenVPN server in CLI pfsense
# (edits /conf/config.xml symlink to /cf/conf/config.xml)
viconfig
# add for example fragment 1300;mssfix to a client
# <openvpn>
# <openvpn-client>
# <topology>subnet</topology>
# <custom_options>fragment 1300;mssfix 1300</custom_options>
# restart all OpenVPN service
@khorsmann
khorsmann / kipimi0-100-cpu
Created July 20, 2017 14:31 — forked from maxp/kipimi0-100-cpu
kipmi0 100% CPU workaround
echo 100 > "/sys/module/ipmi_si/parameters/kipmid_max_busy_us"
@khorsmann
khorsmann / easyRTC.sh
Created October 7, 2016 12:42 — forked from sbeleidy/easyRTC.sh
Easy RTC setup with reTURN
#####
# Signalling Server Setup ex: EasyRTC
# See https://easyrtc.com/docs/guides/easyrtc_server_install.php
# This assumes you followed https://gist.github.com/sbeleidy/f4cd7e96dc0910dbc27cc6845d8b4d22 and
# https://gist.github.com/sbeleidy/3a23999d8e9e5da9adc6159c3742b42b for SSL and reTURN setup
#####
# Install node
sudo apt-get install nodejs
sudo apt-get install npm
@khorsmann
khorsmann / graphite.md
Last active August 29, 2015 14:20 — forked from ashrithr/graphite.md

Installing Graphite:

Graphite does two things:

  1. Store numeric time-series data
  2. Render graphs of this data on demand

What Graphite does not do is collect data for you, however there are some tools out there that know

#!KAMAILIO
#
# Kamailio (OpenSER) SIP Server v4.0 - default configuration script
# - web: http://www.kamailio.org
# - git: http://sip-router.org
#
# Direct your questions about this file to: <sr-users@lists.sip-router.org>
#
# Refer to the Core CookBook at http://www.kamailio.org/wiki/
# for an explanation of possible statements, functions and parameters.