Skip to content

Instantly share code, notes, and snippets.

View cking's full-sized avatar
💻

Ch. König cking

💻
View GitHub Profile
var util = require("util")
var path = require("path")
var fs = require("fs")
var debug = util.debuglog("dm-loader")
exports.install = function (dm) {
if (dm.directory) {
debug("dm.directory already defined! skipping")
return
}
@cking
cking / mc
Last active August 29, 2015 13:57
minecraft runscript
#!/bin/bash
USERNAME="minecraft"
SERVICE='forge.jar'
JAVA_OPTS="-Xmx8G -Xms8G"
MCPATH="/srv/$USERNAME"
BACKUPPATH="$MCPATH/backup"
BACKUPARCHIVEPATH=$BACKUPPATH/archive
INVOCATION="/usr/bin/java ${JAVA_OPTIONS} -jar $SERVICE nogui"
@cking
cking / de.json
Created April 24, 2015 18:14
FFXIV crafting translations
{
"Advanced Touch": "Höhere Veredelung",
"Standard Synthesis": "Solide Bearbeitung",
"Master's Mend II": "Wiederherstellung II",
"Great Strides": "Große Schritte",
"Standard Touch": "Solide Veredelung",
"Observe": "Beobachten",
"Inner Quiet": "Innere Ruhe",
"Steady Hand": "Ruhige Hand",
"Master's Mend": "Wiederherstellung",
(function() {
function getScript(url) {
var script = document.createElement('script');
script.src = url;
var head = document.getElementsByTagName('head')[0], done = false;
script.onload = script.onreadystatechange = function() {
if ( !done && (!this.readyState
|| this.readyState == 'loaded'
|| this.readyState == 'complete') ) {
done=true;
@cking
cking / pcinfo.sh
Last active February 9, 2016 18:15
linux pcinfo
#!/bin/bash
F=~/pcinfo.txt
echo "Gathering hardware information..."
echo "Result file will be saved @ $F"
# Ubuntu, Debian, Fedora, ...
if [ `which lsb_release 2>/dev/null` ]; then
lsb_release -ir >$F 2>/dev/null
Line
= _* cmd:Command pipes:(_* "|" _* Command)* redirect:(_* ">" _* Command)? _*
{ return { cmd, pipes: pipes? pipes.map(pipe => pipe[3]): null, redirect: redirect? redirect[3]: null } }
Command
= exe:Executable args:Arguments
{ return { exe, args } }
Executable
= ExecutableName ("/" ExecutableName)*

Keybase proof

I hereby claim:

  • I am CKing on github.
  • I am kurabloodlust (https://keybase.io/kurabloodlust) on keybase.
  • I have a public key whose fingerprint is 03CE 24DA 7A3E E0F5 ACE2 1F5B 99F1 2AE8 CE08 8679

To claim this, I am signing this object:

# EditorConfig is awesome: http://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
indent_style = tab
indent_size = tab
tab_width = 4
end_of_line = lf
charset = utf-8
@cking
cking / show counter.carbide.md
Last active September 7, 2016 12:17
show counter
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "go",
"request": "launch",
"mode": "debug",
"remotePath": "",
"port": 2345,