Skip to content

Instantly share code, notes, and snippets.

@ home

Johannes Nicolai jonico

@ home
  • GitHub Staff
  • Potsdam
Block or report user

Report or block jonico

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
skwid138 /
Created Nov 2, 2018
Accept all invitations to collaborate on Github
# must install JQ
# on OSX brew install jq
# must set Github Personal Access Token with full repo access only
### Set named arguments -t
while getopts ":t:" opt; do
tcbyrd / SCIM-SAML-Identities.graphql
Last active Nov 15, 2019
SCIM and SAML identities for all members in an Organization
View SCIM-SAML-Identities.graphql
# Pass the URL for an Organization into the query
# to get a list of members in a specific Organization.
# Example: { "url": "" }
query getResource($url: URI!) {
resource(url: $url) {
... on Organization {
samlIdentityProvider {
externalIdentities(first:10) {
nodes {
scimIdentity {
jonico / Jenkinsfile
Last active Dec 6, 2019
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
View Jenkinsfile
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
- name: mvn
image: maven:3.3.9-jdk-8-alpine
martinda / git-merge-before-build.dsl
Created Apr 6, 2016
Jenkins Pipeline DSL code to demonstrate git merge before build
View git-merge-before-build.dsl
// Jenkins Pipeline DSL to demonstrate git merge before build
node {
String path = '/tmp/jenkins/upstream-repo'
sh "rm -rf ${path}"
ws(path) {
sh 'git --version'
sh 'git init'
sh 'touch; git add; git commit -m "init"'
sh 'git checkout -b pull-requests/1/from'
sh 'touch file.txt; git add file.txt; git commit -m "Add file"'
sindresorhus / .profile
Created Apr 6, 2016 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
View .profile
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
markjaquith / gist:2628225
Last active Apr 1, 2018
Script to sync WordPress SVN to GitHub
View gist:2628225
# cd into the directory
cd ~/gitsync/github-wordpress-sync/;
# Make sure we are not already running
if [ -f .sync-running ];then
if test ! `find ".sync-running" -mmin +10`;then
# Currently running, but not stuck
exit 1;
You can’t perform that action at this time.