Skip to content

Instantly share code, notes, and snippets.

View attrib's full-sized avatar

Karl Fritsche attrib

  • Marini Systems
  • Germany
  • 16:16 (UTC +02:00)
  • X @attribdd
View GitHub Profile
@attrib
attrib / docker-compose.yml
Last active February 8, 2018 20:47
gitlab ci + gitlab runner docker compse
version: '3'
services:
gitlab-runner:
restart: always
image: gitlab/gitlab-runner:latest
privileged: true
volumes:
- ./gitlab-runner/config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
@attrib
attrib / oauth.js
Last active April 27, 2024 14:44
Get access_token with oauth for jira cloud (OAuth with RSA-SHA1)
var
fs = require('fs'),
// Generate key using for example:
// openssl genrsa -out ~/.ssh/jira_rsa 2048
// openssl rsa -in ~/.ssh/jira_rsa -pubout > ~/.ssh/jira_rsa.pub
privateKeyData = fs.readFileSync(process.env['HOME'] + '/.ssh/jira_rsa', "utf8"),
consumerKey = 'XXXXXXXXXXXX', // just create any string
OAuth = require('oauth').OAuth,
readline = require('readline'),
host = "https://xxxx.atlassian.net";