Skip to content

Instantly share code, notes, and snippets.

Avatar
🦾

Christian Bargmann cbrgm

🦾
View GitHub Profile
@cbrgm
cbrgm / gist:b0625bbc06c0e2f53bf45a98f2e26d68
Created May 5, 2018
Install / Update jsonnet from source
View gist:b0625bbc06c0e2f53bf45a98f2e26d68
# $ cat install.sh
# /bin/bash
set -e
# Clone and compile
git clone https://github.com/google/jsonnet.git
cd jsonnet
make
@cbrgm
cbrgm / install-JabRef.sh
Last active May 16, 2019
Install JabRef 4.2 Ubuntu 18.04
View install-JabRef.sh
#!/bin/bash
# Install java packages + javafx
sudo apt-get install default-jdk
sudo apt-get install openjfx
# Download Jabref
sudo wget -P /etc/jabref -O jabref.jar https://www.fosshub.com/JabRef.html/JabRef-4.2.jar
# Create startup script
sudo mkdir /etc/jabref
@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
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 / 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 mangosd.conf
################################################################################
# World server configuration #
################################################################################
[MangosdConf]
ConfVersion=2017021400
################################################################################
# CONNECTIONS AND DIRECTORIES
#
@cbrgm
cbrgm / mangosd.conf
Last active Mar 22, 2019
cmangos config
View mangosd.conf
#####################################
# MaNGOS Configuration file #
#####################################
[MangosdConf]
ConfVersion=2019020601
###################################################################################################################
# CONNECTIONS AND DIRECTORIES
#
@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 / 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 / .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