Skip to content

Instantly share code, notes, and snippets.

View eni23's full-sized avatar
👾
"working"

Cyrill v.W. eni23

👾
"working"
View GitHub Profile
@eni23
eni23 / mac-to-ip.sh
Created March 21, 2013 10:41
script to resolve an mac-addr to an ip ./mac-to-ip.sh 00:00:00:00:00 192.168.1.0/24
#!/bin/bash
# achtung, admins finden das gar nicht cool
MACADDRESS=$1
NETWORK=$2
sudo ip neigh flush all > /dev/null;
sudo fping -c 1 -g -q $NETWORK 2> /dev/null;
sudo arp -n | grep $MACADDRESS
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# dmx512 library
# sending dmx-frames, the class handles buffering of channels
# and only packs data frames long as needed.
#
# example usage:
# dmx=dmx512.dmx
# dmx.set_channel(1,255)
#!/bin/sh
# Author: Brice Burgess - bhb@iceburg.net
# multi_backup.sh -- backup to a local drive using rsync.
# Uses hard-link rotation to keep multiple backups.
# Directories to backup. Seperate with a space. Exclude trailing slash!
SOURCES="/home/gig"
# Directory to backup to. This is where your backup(s) will be stored. No spaces in names!
# :: NOTICE :: -> Make sure this directory is empty or contains ONLY backups created by
#!/bin/bash
#
# The cron execution file is in /etc/cron.d
#
# The variable configuration file for rs-sysmon is in /etc/rs-sysmon
#
# All the variables defined here and several others can be defined in the variable
# configuration file. You can see more on these in /usr/share/doc/rs-sysmon-{version}/README
# define the default environment for rs-sysmon
# DO NOT change these values here, user-modifiable options can be tweaked through
@eni23
eni23 / rainbowmaker.js
Created April 8, 2013 10:57
rainbow maker jeah
rainbow_maker={
num:25,
act_num:0,
center:128,
width:127,
phase:0,
factor_red: 30,
factor_green:6,
factor_blue:2,
freq:false,
@eni23
eni23 / music_housewife.sh
Last active August 29, 2015 13:59
housewife for com_artlu_music
#!/bin/bash
#
#
# project: artlu website
# author: cvw-2014-04-16
# version: {$id}
#
# desc:
# convert uploaded audio-files to misc formats
# and delete orphaned entrys from com_artlu_music
@eni23
eni23 / colissimo.php
Created March 26, 2015 15:13
Quick and Dirty class to Query Colissimo-API with Support for mulitple languages
<?php
/**
* Quick and Dirty class to Query Colissimo-API
* Support for mulitple languages
*
* @author Cyrill von Wattenwyl < 5@e23.ch >
* @deps DOM, Allow http for file_get_contents in php.ini
*
**/
class colissimo {
#!/usr/bin/python
# -*- coding: utf8 -*-
import os
import sys
import math
import fcntl
import struct
import termios
ARDUINO_DIR = /home/eni/progs/arduino-1.6.4
PROJECT_DIR = /home/eni/code/arduino-esp-makefile
SRCDIR = $(PROJECT_DIR)/src
OBJDIR = $(PROJECT_DIR)/build
MAINFILE = main.ino
# generic / nodemcu / modwifi
BOARD = nodemcu
# 80 or 160 (mhz)
#!/bin/bash
RESOURCE_PREFIX="staticfile_"
LOOKUP_FUNCTION_NAME="lookup_file"
DATATABLENAME="datatable"
XXD="/usr/bin/xxd"
INPUT_DIR=$1
OUTPUT_FILE=$2