Skip to content

Instantly share code, notes, and snippets.

View prisis's full-sized avatar
:octocat:
building software

Daniel Bannert prisis

:octocat:
building software
View GitHub Profile
@prisis
prisis / setup-github-issues-labels.sh
Last active October 28, 2018 22:33
Narrowspark project labels
#!/bin/bash
echo -n "GitHub Repo (e.g. foo/bar): "
read REPO
# use this linke for the token https://github.com/settings/applications
TOKEN=''
REPO_USER=$(echo "$REPO" | cut -f1 -d /)
REPO_NAME=$(echo "$REPO" | cut -f2 -d /)
# Delete default labels
1) src/Viserio/Component/HttpFactory/StreamFactory.php (fopen_flag_order)
---------- begin diff ----------
--- Original
+++ New
@@ @@
{
- $stream = \fopen('php://memory', 'rb+');
+ $stream = \fopen('php://memory', 'b+r');
@@ @@
if ($type === 'NULL') {
@prisis
prisis / tpecl.sh
Last active September 8, 2020 10:42
tpecl is a helper to compile and cache php extensions on travis
#!/usr/bin/env bash
# How to use:
#
# Copy this to your travis file
#
# cache:
# directories:
# - ${HOME}/php-ext
#
@prisis
prisis / tfold.sh
Last active September 13, 2021 22:10
tfold is a helper to create folded reports on travis
#!/usr/bin/env bash
# How to use:
#
# And add it to your bash file
# source ./tfold.sh
#
# tfold "fold name" "command to execute"
nanoseconds() {
@prisis
prisis / try_catch.sh
Last active February 15, 2019 08:49
Ported try catch functions to bash.
#!/usr/bin/env bash
# How to use:
#
# And add it to your bash file
# source ./try_catch.sh
#
# try
# (
# your code