Skip to content

Instantly share code, notes, and snippets.

Avatar
🦾

Christian Bargmann cbrgm

🦾
View GitHub Profile
@cbrgm
cbrgm / main.go
Created Apr 29, 2022
Github Webhooks Golang
View main.go
package main
import (
"fmt"
"github.com/cbrgm/githubevents/githubevents"
"github.com/google/go-github/v43/github"
"net/http"
)
func main() {
@cbrgm
cbrgm / main.go
Created Apr 29, 2022
Github Webhook Events in Go
View main.go
package main
import (
"fmt"
"github.com/cbrgm/githubevents/githubevents"
"github.com/google/go-github/v43/github"
"net/http"
)
func main() {
@cbrgm
cbrgm / .skhdrc
Created Jun 16, 2021
yabai + skhd + spacebar dotfiles
View .skhdrc
####### Shortcut Hotkeys #############
# open terminal
alt - return : open -n /Applications/Alacritty.app
# restart Yabi, SpaceBar, and SKHD
alt + shift - r : \
launchctl kickstart -k "gui/${UID}/homebrew.mxcl.yabai"; \
skhd --reload
@cbrgm
cbrgm / PKGBUILD
Created May 9, 2019
PKGBUILD cuelang-cue-git
View PKGBUILD
# Configure, Unify, Execute.
# CUE is an open source data constraint language which aims to simplify tasks involving defining and using data.
# It is a superset of JSON, allowing users familiar with JSON to get started quickly.
# Maintainer: Christian Bargmann <chris@cbrgm.net>
pkgname=cuelang-cue-git
pkgver=r157.ad10d9d
pkgrel=1
pkgdesc='The CUE Data Constraint Language'
@cbrgm
cbrgm / gen-kubeconfig.sh
Created Apr 8, 2019
Create a kubeconfig for an existing serviceaccount in kubernetes
View gen-kubeconfig.sh
#!/bin/bash
# your server name goes here
server=https://my.k8s.cluster:6443
# the name of the secret containing the service account token goes here
name=super-secret-token-2l269
# the namespace containing the secret
namespace=kube-system
# don't touch this!
@cbrgm
cbrgm / mangosd.conf
Last active Mar 22, 2019
cmangos config
View mangosd.conf
#####################################
# MaNGOS Configuration file #
#####################################
[MangosdConf]
ConfVersion=2019020601
###################################################################################################################
# CONNECTIONS AND DIRECTORIES
#
View mangosd.conf
################################################################################
# World server configuration #
################################################################################
[MangosdConf]
ConfVersion=2017021400
################################################################################
# CONNECTIONS AND DIRECTORIES
#
@cbrgm
cbrgm / install-ro.sh
Last active Jan 30, 2022
Install rAthena RagnarokOnline Server on Ubuntu 18.04
View install-ro.sh
#!/bin/bash
######################################################
# Basic settings
######################################################
# server base directory
RAGNAROK_DIR=/rAthena
# mysql database settings
MYSQL_ROOT_PW="changeme"
View .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/chris/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@cbrgm
cbrgm / i3-config
Last active Nov 30, 2018
i3 config
View i3-config
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
# set windows key as mod-key
set $mod Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
# The following packages are required: pacman -S ttf-roboto otf-font-awesome