Skip to content

Instantly share code, notes, and snippets.

View patrickjahns's full-sized avatar

Patrick Jahns patrickjahns

View GitHub Profile
# A
## A1
func mutate(in *integer) {
in + 1
}
## A2
func mutate(int integer) int {
return i+1
ssh_authorized_keys:
- github:patrickjahns
@patrickjahns
patrickjahns / monzo-alertmanager-config.yaml
Created June 3, 2020 14:08 — forked from milesbxf/monzo-alertmanager-config.yaml
Monzo's Alertmanager Slack templates
###################################################
##
## Alertmanager YAML configuration for routing.
##
## Will route alerts with a code_owner label to the slack-code-owners receiver
## configured above, but will continue processing them to send to both a
## central Slack channel (slack-monitoring) and PagerDuty receivers
## (pd-warning and pd-critical)
##
@patrickjahns
patrickjahns / ssmjump.sh
Created March 21, 2020 15:41
ssm jump
#!/usr/bin/env bash
# Help text
help()
{
echo ""
echo " -o | --override Override port forwarding values."
echo " Syntax:[local port] [remote host address] [remote port]"
echo ""
}
version: '3'
services:
smpp_server:
image: komuw/smpp_server:v0.3
ports:
- 2775:2775
- 8884:8884
nginx:
image: nginx
@patrickjahns
patrickjahns / virt-install-centos
Created June 16, 2019 20:00 — forked from jnaulty/virt-install-centos
Install CentOS cloud images on KVM using cloud-init
#!/bin/bash
## **Updates to this file are now at https://github.com/giovtorres/kvm-install-vm.**
## **This updated version has more options and less hardcoded variables.**
# Take one argument from the commandline: VM name
if ! [ $# -eq 1 ]; then
echo "Usage: $0 <node-name>"
exit 1
fi
@patrickjahns
patrickjahns / Dockerfile
Created March 10, 2019 13:53
nulcio-php-handler
ARG NUCLIO_LABEL=0.7.1
ARG NUCLIO_ARCH=amd64
ARG NUCLIO_BASE_IMAGE=alpine:3.7
ARG NUCLIO_ONBUILD_IMAGE=nuclio/handler-builder-golang-onbuild:${NUCLIO_LABEL}-${NUCLIO_ARCH}-alpine
# Supplies processor uhttpc, used for healthcheck
FROM nuclio/uhttpc:0.0.1-amd64 as uhttpc
# Builds source, supplies processor binary and handler plugin
FROM ${NUCLIO_ONBUILD_IMAGE} as builder
@patrickjahns
patrickjahns / Makefile
Created August 21, 2018 07:57
Example app setup
SHELL := /bin/bash
COMPOSER_BIN := $(shell command -v composer 2> /dev/null)
ifndef COMPOSER_BIN
$(error composer is not available on your system, please install composer)
endif
# bin file definitions
PHPUNIT=php -d zend.enable_gc=0 vendor/bin/phpunit
PHPUNITDBG=phpdbg -qrr -d memory_limit=4096M -d zend.enable_gc=0 "./vendor/bin/phpunit"
### Keybase proof
I hereby claim:
* I am patrickjahns on github.
* I am patrickjahns (https://keybase.io/patrickjahns) on keybase.
* I have a public key whose fingerprint is 12F1 AAC5 900E B445 A58F 2528 BFAE DB41 2765 4EA7
To claim this, I am signing this object:
FROM owncloudci/base:7.1
MAINTAINER ownCloud DevOps <devops@owncloud.com>
RUN curl -sLo - https://download.owncloud.org/community/owncloud-daily-master-qa.tar.bz2 | tar xfj - -C /var/www/
RUN find /var/www/owncloud \( \! -user www-data -o \! -group www-data \) -print0 | xargs -r -0 chown www-data:www-data