Skip to content

Instantly share code, notes, and snippets.

View mvmaasakkers's full-sized avatar

Martijn van Maasakkers mvmaasakkers

View GitHub Profile
<?php
declare(strict_types=1);
namespace App\Doctrine\EventListener;
use Doctrine\DBAL\Exception;
use Doctrine\DBAL\Schema\PostgreSQLSchemaManager;
use Doctrine\DBAL\Schema\SchemaException;
use Doctrine\ORM\Tools\Event\GenerateSchemaEventArgs;
server:
# The verbosity number, level 0 means no verbosity, only errors.
# Level 1 gives operational information. Level 2 gives detailed
# operational information. Level 3 gives query level information,
# output per query. Level 4 gives algorithm level information.
# Level 5 logs client identification for cache misses. Default is
# level 1.
verbosity: 0
# Allow bold colors - necessary for some reason
attrcolor b ".I"
# Tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# Enables use of shift-PgUp and shift-PgDn
termcapinfo xterm|xterms|xs|rxvt ti@:te@
# Erase background with current bg color
@mvmaasakkers
mvmaasakkers / tiller-clusterrolebinding.yaml
Last active September 18, 2019 13:39
tiller-clusterrolebinding.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
@mvmaasakkers
mvmaasakkers / generate_dockername_slack.go
Created February 18, 2019 20:33
Slack Slash Command to be run on Google Cloud Functions (p.DockerName)
package p
import (
"encoding/json"
"fmt"
"log"
"math/rand"
"net/http"
"regexp"
"strings"
package main
import (
"bufio"
"container/ring"
"flag"
"fmt"
"os"
)
package main
import (
"flag"
"fmt"
"io/ioutil"
"log"
"strconv"
"strings"
)
package main
import (
"bufio"
"flag"
"fmt"
"log"
"math"
"os"
)
195, 221
132, 132
333, 192
75, 354
162, 227
150, 108
46, 40
209, 92
153, 341
83, 128
package main
import (
"bufio"
"flag"
"fmt"
"log"
"os"
"strings"
"unicode"