Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View winny-'s full-sized avatar
👋
***status goes here***

Winston (Winny) Weinert winny-

👋
***status goes here***
View GitHub Profile
@winny-
winny- / gist:bb17853ffc76fbb9b039
Created November 13, 2015 01:38 — forked from nathanielc/gist:9b98350ccbcbf21256d7
Minecraft systemd unit file that uses tmux instead of screen
[root@plex ~]# cat /etc/systemd/system/minecraft@.service
[Unit]
Description=Minecraft Server %i
[Service]
WorkingDirectory=/opt/minecraft-%i
User=mcserver
Type=forking
ExecStart=/usr/bin/tmux new-session -s mc-%i -d '/bin/java -Xmx2048M -jar minecraft_server.jar nogui'
@winny-
winny- / bubble.c
Last active August 29, 2015 14:16 — forked from spedru/bubble.c
/* cum pile with -std=c99 or c11 */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define _POSIX_C_SOURCE 200809L
#include <time.h>
const struct timespec sleepytime = {0, 70000000};
const int bubble[] = {2, 3, 4, 5, 4, 3, 3, 2};