Skip to content

Instantly share code, notes, and snippets.

View dries007's full-sized avatar

Dries007 dries007

View GitHub Profile
@dries007
dries007 / ip_leds.c
Created September 24, 2016 01:06
echo IP > leds
/*
* ip_leds
*
* Copyright (c) 2016 Dries007
* License: MIT
*
* Display some random effects until an IP is got,
* then show the IP in binary on the leds.
*
* Library:
@dries007
dries007 / CLA.md
Last active August 18, 2016 23:11
Simple CLA (for DoubleDoorDevelopment)

Contributor License Agreement

The following terms are used throughout this agreement:

  • You - the person or legal entity including its affiliates asked to accept this agreement. An affiliate is any entity that controls or is controlled by the legal entity, or is under common control with it.
  • Project - is an umbrella term that refers to any and all DoubleDoorDevelopment projects.
  • Contribution - any type of work that is submitted to a Project, including any modifications or additions to existing work.
  • Submitted - conveyed to a Project via a pull request, commit, issue, or any form of electronic, written, or verbal communication with DoubleDoorDevelopment, contributors or maintainers.
  1. Grant of Copyright License.
@dries007
dries007 / dirlist.xslt
Created June 26, 2016 15:51 — forked from wilhelmy/dirlist.xslt
make nginx dirlistings look like lighttpd's through the magic of xslt-transforming xml dirlistings. I don't even.
<?xml version="1.0"?>
<!--
dirlist.xslt - transform nginx's into lighttpd look-alike dirlistings
I'm currently switching over completely from lighttpd to nginx. If you come
up with a prettier stylesheet or other improvements, please tell me :)
-->
<!--
Copyright (c) 2016 by Moritz Wilhelmy <[email protected]>
@dries007
dries007 / boot.py
Created May 19, 2016 21:13
Micropython esp2866 (ESP12-E) Neopixel demo
import time
from machine import Pin
from esp import neopixel_write
# From colorsys.py
def hsv_to_rgb(h, s, v):
if s == 0.0:
return v, v, v
i = int(h*6.0)
f = (h*6.0) - i
@dries007
dries007 / bmpToCeo.c
Last active April 6, 2025 09:48
BMP to COE
#include <stdio.h>
int main(int argc, char ** argv)
{
if (argc < 3) {
printf("Not enough arguments\n");
printf("Arg 1: Image file, BMP, 1 bit Monochrome!\n");
printf("Arg 2: Output\n");
return -1;
}
@dries007
dries007 / EntworldV4.md
Last active July 10, 2016 10:32
EntworldV4

Entworld v4.2

Want the map? World download (7zip format, for v4.2.1)

This server is now OFFLINE See EntWorld v5 (aka PineFresh)

@dries007
dries007 / K4.md
Last active November 16, 2015 23:18
K4's server

ELLLOOOO K4

This is a server for K4. If you want to join, you can become a patreon or pray for His Majesty the King K4 to allow you to be added to the whitelist.

Possible performance increase? Click here

The pack

@dries007
dries007 / CurseJavaArgs.md
Last active October 27, 2015 10:27
CurseJavaArgs

-XX:ParallelGCThreads=2 -XX:MinHeapFreeRatio=5 -XX:MaxHeapFreeRatio=10 -d64 -server -XX:+UseParNewGC -XX:+CMSIncrementalPacing -XX:+CMSClassUnloadingEnabled

@dries007
dries007 / ark.sh
Last active September 17, 2015 19:04
ARK Survival Evolved Dedigated server run script
#!/bin/bash
#
# ARK SURVIVAL EVOLVED Dedigated server run script
#
# Assumed to be installed:
# - tmux,
# - steamcmd (in users home),
# - rcon (in user home, see second file on gist)
#
# MAKE SURE YOU ALWAYS RUN THIS AS THE SAME (NOT ROOT) USER!
@dries007
dries007 / p2sFileSystemChecker.md
Last active August 29, 2015 14:27
Pay2Spawn FileSystem Checker

Pay2Spawn FileSystem Checker

When enabled, p2s will check the folder set in the config for *.json files. Once processed the files will be removed from the folder.

Json format

Does not have to be in pretty print.