Skip to content

Instantly share code, notes, and snippets.

View gentoomaniac's full-sized avatar

Marco Siebecke gentoomaniac

View GitHub Profile
@gentoomaniac
gentoomaniac / build.yaml
Last active February 11, 2021 12:03
Github workflow for building a go binary based on tags, create a release and upload the binary to it
name: Build
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
[00:33:00] marco@laptopserver Docker/ > cat docker-compose.yml
version: "3.2"
services:
quassel-core:
image: linuxserver/quassel-core
container_name: quassel-core
environment:
- PGID=1000
- PUID=1000
ports:
### Keybase proof
I hereby claim:
* I am gentoomaniac on github.
* I am gentoomaniac (https://keybase.io/gentoomaniac) on keybase.
* I have a public key ASCtvCvqD9zQNMlMZhIhC9Nwnm6D0Lk_aAw_ZDIqAJgvmAo
To claim this, I am signing this object:
@gentoomaniac
gentoomaniac / create_token.groovy
Created February 7, 2019 10:38
Create new style api tokens in jenkins via groovy script
import jenkins.model.User
import jenkins.security.ApiTokenProperty
import jenkins.security.apitoken.ApiTokenStore
def env = System.getenv()
// get the user object
User jjbUser = User.get(env.JENKINS_USER_NAME)
// Verify that it has a ApiTokenProperty and create one if not (not sure if required, playing save here)
@gentoomaniac
gentoomaniac / Configure git update for fork
Last active December 9, 2015 12:14
Configuring forked git repo to pull in from original repo
## add remote for upstream
# git remote add upstream git@....
## checkout fork master
# git checkout master
## fetch upstream changes
# git fetch upstream
## merge changes in fork master