Skip to content

Instantly share code, notes, and snippets.

View soerenmartius's full-sized avatar
🎯
focused

Sören Martius soerenmartius

🎯
focused
View GitHub Profile
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# Modify this file accordingly for your specific requirement.
# http://www.thegeekstuff.com
# 1. Delete all existing rules
iptables -F
# 2. Set default chain policies
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
@soerenmartius
soerenmartius / iptabeles.sh
Created June 26, 2014 22:33
iptables example
#!/bin/sh
#
# Basic rules for iptables, IPv4 and IPv6
#
# INPUT
# ACCEPT all for local loopback device
# ACCEPT ssh for everyone (max. 3 connections per minute per IP address)
# ACCEPT domain for nameservers defined in /etc/resolv.conf
# LOG and DROP everything else
#
@soerenmartius
soerenmartius / install_nginx_with_lua_in_unix_shell.bash
Last active August 29, 2015 14:22
Install NGINX with Lua in unix shell
#!/usr/bin/bash
#
# bash < <(curl -s https://gist.githubusercontent.com/caramba1337/0c3549824cb3db2c0031/raw/64e018a7d739e159e3a7bb8bb70f0c422bdf4ec4/install_nginx_with_lua_in_unix_shell.bash)
set -x
cd /tmp
if ! test -d /usr/local/include/luajit-2.0; then
echo "Installing LuaJIT-2.0.3."
wget "http://luajit.org/download/LuaJIT-2.0.3.tar.gz"
@soerenmartius
soerenmartius / shopware5_nginx
Created June 10, 2015 13:27
Shopware 5 Nginx Host
server {
listen 80;
server_name www.yourhost.de dev.yourhost.de;
root /var/www/vhosts/dev.duschdichtungen-shop.de/htdocs;
error_log /var/log/nginx/yourhost_error.log;
access_log /var/log/nginx/yourhost_access.log;
location = /favicon.ico {
log_not_found off;
{
"uuid": "41e3b7bd-a38c-418e-96d0-48e5de9bffbc",
"intention": "investment",
"type": "flat", // or house
"style": "everything",
"locations": [
{
"address": "Wilhelmine-Gemberg-Weg 13, 10179 Berlin",
"geo": {
"lat": "52.511135",
@soerenmartius
soerenmartius / jenkins-kill-jobs-for-a-specific-project.groovy
Created June 28, 2017 12:09
jenkins kill all jobs for a specific project
import hudson.model.FreeStyleBuild
import hudson.model.Result
import hudson.model.Run
import jenkins.model.Jenkins
import org.jenkinsci.plugins.workflow.job.WorkflowRun
import org.jenkinsci.plugins.workflow.support.steps.StageStepExecution
if(!binding.hasVariable('dryRun')) {
dryRun = true
}
// Let's create our own strategy
var strat = {};
// Prepare everything our strat needs
strat.init = function () {
this.addIndicator('longHMA', 'HMA', this.settings.long);
this.addIndicator('shortHMA', 'HMA', this.settings.short);
}
// Based on the newly calculated
@soerenmartius
soerenmartius / tmux.md
Created April 26, 2019 10:54 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

Keybase proof

I hereby claim:

  • I am soerenmartius on github.
  • I am soerenmartius (https://keybase.io/soerenmartius) on keybase.
  • I have a public key ASCcZUFERb2HPStZoq_9tcfAcv4InmLopCXhdUjj3U_q5Ao

To claim this, I am signing this object: