Skip to content

Instantly share code, notes, and snippets.

View brejoc's full-sized avatar
🏡
Remote

Jochen Breuer brejoc

🏡
Remote
View GitHub Profile
@brejoc
brejoc / get_issues_with_board.graphql
Last active October 28, 2019 19:56
Fetches all issues from a repo including labels and board colums.
{
repository(owner: "brejoc", name: "test") {
issues(first: 100) {
totalCount
pageInfo {
startCursor
endCursor
hasNextPage
}
nodes {
@brejoc
brejoc / query.js
Created December 7, 2018 22:14
Querying Github for all the issues on a board
query ($owner: String!, $name: String!, $board_number: Int!) {
repository(owner: $owner, name: $name) {
project(number: $board_number) {
columns(first: 10) {
nodes {
name
cards(first: 100) {
edges {
node {
content {
@brejoc
brejoc / get_my_prs.go
Last active October 2, 2018 13:46
get_my_prs shows all the pull requests where either you or Team SUSE was requestet to review in saltstack/salt.
// get_my_prs shows all the pull requests where either you
// or Team SUSE was requestet to review in saltstack/salt.
package main
import (
"context"
"fmt"
"os"
@brejoc
brejoc / saltstack_pr.py
Last active September 5, 2018 07:09
saltstack_pr.py prints the pull requests, where the current user or team-suse was required to review.
"""
saltstack_pr.py prints the pull requests, where the current user
or team-suse was required to review.
"""
from github import Github
g = Github("<github-token>")
class bcolors:
HEADER = '\033[95m'
Source: https://gitter.im/syl20bnr/spacemacs?at=5b45e03a60c38707837070b0
Ljupcho Kotev @ljupchokotev 12:47
It's best to use the xclip package
it works flawlessly
Add xclip to dotspacemacs-additional-packages and then (xclip-mode 1) in user-config
all copy/paste will work between terminal/spacemacs/gui/etc
you just need to have xclip installed, which probably already is
@brejoc
brejoc / so_reuseport.py
Created November 12, 2017 21:50
Example for SO_REUSEPORT - Start multiple instances of this script and connect to them via shared port 8080: $ echo data | nc localhost 8080
#!/usr/bin/env python
"""
Example for SO_REUSEPORT
Usage:
Start multiple instances of this script and connect
to them via shared port 8080: $ echo data | nc localhost 8080
"""
@brejoc
brejoc / keybase.md
Created August 14, 2017 20:38
keybase.md

Keybase proof

I hereby claim:

  • I am brejoc on github.
  • I am brejoc (https://keybase.io/brejoc) on keybase.
  • I have a public key ASCFZ-9Y83c-HlfTD5Na5S42M9-uZUgnazH7mN2eRhMi7Ao

To claim this, I am signing this object:

# Caddyfile
localhost:8001 {
gzip
errors visible
log stderr
rewrite /static {
r (.*)
to /path/to/static/{1}
@brejoc
brejoc / Caddyfile
Created February 15, 2017 09:01 — forked from jpoehls/Caddyfile
Proxy + Static File serving with caddy
# Caddyfile
localhost:2015 {
startup "go run ./server.go" &
root ./static_files
proxy / localhost:2016
}
# FILE TREE
#
@brejoc
brejoc / terminal_color_scheme
Created December 13, 2016 14:53 — forked from OpenNingia/terminal_color_scheme
Simple script to apply Solarized color scheme to Pantheon Terminal
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""Solarized theme for pantheon-terminal
see http://ethanschoonover.com/solarized
"""
import posixpath
import sys
from gi.repository import Gio