Skip to content

Instantly share code, notes, and snippets.

🎯
focusing

Sören M. soerenmartius

🎯
focusing
Block or report user

Report or block soerenmartius

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@soerenmartius
soerenmartius / tmux.md
Created Apr 26, 2019 — forked from andreyvit/tmux.md
tmux cheatsheet
View tmux.md

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
View hma.js
// 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 / jenkins-kill-jobs-for-a-specific-project.groovy
Created Jun 28, 2017
jenkins kill all jobs for a specific project
View jenkins-kill-jobs-for-a-specific-project.groovy
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
}
View gist:4cecff23a72cfb18392fd6d1f4e36aec
{
"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 / shopware5_nginx
Created Jun 10, 2015
Shopware 5 Nginx Host
View shopware5_nginx
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;
@soerenmartius
soerenmartius / install_nginx_with_lua_in_unix_shell.bash
Last active Aug 29, 2015
Install NGINX with Lua in unix shell
View install_nginx_with_lua_in_unix_shell.bash
#!/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"
View iptabeles.sh
#!/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
#
View iptables_rules.sh
# 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
View iptables_rules.sh
# 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
You can’t perform that action at this time.