Skip to content

Instantly share code, notes, and snippets.

View patrickjahns's full-sized avatar

Patrick Jahns patrickjahns

View GitHub Profile
@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 / 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 / 1. infrastructure.php
Created April 8, 2017 15:56 — forked from Koc/1. infrastructure.php
Doctrine2 bulk inserts
<?php
use Doctrine\ORM\Persisters;
class DoctrineHelper
{
protected $entityManagers = array();
public function bulkCommit(EntityManager $em, array $entities)
{