Skip to content

Instantly share code, notes, and snippets.

View brejoc's full-sized avatar
🏡
Remote

Jochen Breuer brejoc

🏡
Remote
View GitHub Profile
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 / 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'
@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 / 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_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 {