Skip to content

Instantly share code, notes, and snippets.

View barnslig's full-sized avatar

Leonard barnslig

  • Hamburg, Germany
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
.PHONY: clean
CC = gcc
LD = $(CC)
CFLAGS=-std=c99 -pedantic -Wall -Wextra
LDFLAGS=-lm
OBJS = grid.o svg.o plotter.o
#include <Adafruit_NeoPixel.h>
#define POTI_PIN A0
#define WS2812_PIN 5
#define WS2812_LEDS 1
#define STEPS 3
int currentStep;
Adafruit_NeoPixel leds = Adafruit_NeoPixel(WS2812_LEDS, WS2812_PIN, NEO_GRB + NEO_KHZ400);
#!/bin/bash
if test -d $HOME/Maildir/.Spam -a -d $HOME/Maildir/.Spam.New -a -d $HOME/Maildir/.Spam.Ham; then
# process new spam
find $HOME/Maildir/.Spam.New/cur $HOME/Maildir/.Spam.New/new -type f -print0 | while read -d $'\0' file; do
sudo dspam --user $USER --class=spam --source=error < $file
mv "$file" $HOME/Maildir/.Spam/cur/
done
# process new ham
#!/usr/bin/env python
# coding: utf-8
"""Automate managing an Archlinux repository of AUR-Only packages
Automatically checks the AUR for version changes, rebuilds packages and adds
them to a proper Archlinux repository so you can have your computers use the
latest version without the hassle of manually checking for updates, rebuilding,
package distribution etc pp
pkgname=acmetool
pkgver=0.0.50
pkgrel=0
pkgdesc="Acmetool is an easy-to-use command line tool for automatically acquiring certificates from ACME servers (such as Let's Encrypt)"
conflicts=('acmetool-git')
arch=('i686' 'x86_64')
source_i686=("https://github.com/hlandau/acme/releases/download/v${pkgver}/acmetool-v${pkgver}-linux_386.tar.gz")
source_x86_64=("https://github.com/hlandau/acme/releases/download/v${pkgver}/acmetool-v${pkgver}-linux_amd64.tar.gz")
sha256sums_i686=('e9813e95a1edfc312af921befbb549b95037749094c58447bb2b245e640f6497')
sha256sums_x86_64=('a5a22fcff5a306e67815b1692e0a10eed00a399c6a40f68c69f1e2e921f06a6d')
<div class="my-large-element" data-parallax-speed="0.5"></div>
import noble from 'noble';
import binstruct from 'binstruct';
class CometBlue {
/**
* Constructor for a new CometBlue instance
*
* @param {array} services
*/
constructor(uuid, pin = '000000') {
@barnslig
barnslig / Dockerfile
Created March 18, 2018 23:14
mathics!
FROM python:3-alpine
WORKDIR /usr/src/app
RUN pip install mathics
EXPOSE 8000
CMD ["mathicsserver", "-e"]