Skip to content

Instantly share code, notes, and snippets.

@karsov
karsov / github_pr_export.sh
Created May 9, 2024 07:17
A bash script for exporting a GitHub repo's last 1000 PRs
#!/bin/bash
OWNER="you-organisation"
REPO="your-repository"
START_CURSOR=""
for i in {1..10}; do
QUERY=$(cat <<-EOF
query {
repository(owner:"$OWNER", name:"$REPO") {
@karsov
karsov / tmux.conf
Last active February 1, 2024 09:45
# Set prefix to Ctrl-Space instead of Ctrl-b
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
# Split windows using | and -
unbind '"'
unbind %
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
linters-settings:
govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf