Skip to content

Instantly share code, notes, and snippets.

View trunneml's full-sized avatar

Michael Graf trunneml

View GitHub Profile
@trunneml
trunneml / azure-pipeline.yaml
Last active October 14, 2022 09:43
Improve your CI-CD-Workflow with Git-Notes - Example Azure Pipeline
trigger:
- main
stages:
- stage: build
displayName: NPM based build
jobs:
- job: npm_build_job
displayName: NPM Build Job
steps:
@trunneml
trunneml / trunneml.terminal
Created May 11, 2021 09:05
macos Terminal settings
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BackgroundBlur</key>
<real>0.0</real>
<key>BackgroundColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGBwpYJHZlcnNpb25ZJGFyY2hpdmVyVCR0b3BYJG9iamVjdHMS
AAGGoF8QD05TS2V5ZWRBcmNoaXZlctEICVRyb290gAGjCwwTVSRudWxs0w0ODxAREldO
@trunneml
trunneml / local-dhclient
Last active August 29, 2015 13:55
Denoise Logcheck
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: Internet (Software|Systems) Consortium DHCP Client [.[:alnum:]-]+$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: Copyright [-0-9]+ Internet Systems Consortium\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: All rights reserved\.$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: For info, please visit http(://www\.isc\.org/(products/DHCP|sw/dhcp/)|s://www\.isc\.org/software/dhcp/)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: There is already a pid file /var/run/dhclient\.[[:alnum:]]+\.pid with pid [[:digit:]]+$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: killed old client process, removed PID file$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?:$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ dhclient(-2.2.x)?(\[[[:digit:]]+\])?: Listening on [^[:space:].]+$
^\w{3} [ :0-9]{11} [._[:alnum:]-]
@trunneml
trunneml / trunneml.zsh-theme
Last active March 7, 2018 10:42
My ZSH-Theme
autoload -U colors && colors
autoload -Uz vcs_info
autoload -U add-zsh-hook
setopt prompt_subst
VCS_PRE="%{$fg[red]%}[%{$reset_color%}"
VCS_SUF="%{$fg[red]%}]%{$reset_color%}"
AVCS_PRE="%{$fg_no_bold[green]%}{%{$reset_color%}"
AVCS_SUF="%{$fg_no_bold[green]%}}%{$reset_color%}"
@trunneml
trunneml / Syslog Monitor-1384415560056
Last active December 28, 2015 07:09
Fancy logstash kibana 3 config
{
"title": "Syslog Monitor",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"id": 0,
"color": "#BADFF4",
"query": "syslog_facility_code:[16 TO 23] OR syslog_facility_code:1",
@trunneml
trunneml / .screenrc
Last active December 27, 2015 07:39
screenrc
# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window
bindkey -k F1 prev
bindkey -k F2 next
startup_message off
defscrollback 50000
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]'
@trunneml
trunneml / logstash.conf
Created November 3, 2013 14:17
Logstash as central syslog server
input {
tcp {
port => 5544
type => syslog
}
udp {
port => 5544
type => syslog
}
}