Skip to content

Instantly share code, notes, and snippets.

@vidplace7
vidplace7 / esp32_dmxnet.ino
Created December 8, 2023 01:16
ESP32 ArtNet DMX
// Based upon https://github.com/hideakitai/ArtNet
// and https://github.com/sparkfun/SparkFunDMX
// Examples:
// ArtNet Input:
// https://github.com/hideakitai/ArtNet/blob/main/examples/WiFi/receiver/receiver.ino
// https://github.com/hideakitai/ArtNet/blob/main/examples/Ethernet/receiver/receiver.ino
// DMX Output:
// https://github.com/sparkfun/SparkFunDMX/blob/master/examples/Example1-DMXOutput/Example1-DMXOutput.ino
// FastLED (for onboard RGB status light)
@vidplace7
vidplace7 / debian-jessie-backports.md
Created May 19, 2016 08:25 — forked from anonymous/debian-jessie-backports.md
Debian Jessie Backports by Default

Debian Jessie Backports by Default

This is not a recommended configuration. However, if you want to use Backported packages by default do the following:

Add the following configuration to /etc/apt/preferences

Package: *
Pin: release a=jessie-backports
Pin-Priority: 600
@vidplace7
vidplace7 / osticket.conf
Created November 16, 2015 17:39
OSTicket Config
server {
listen 80;
server_name YOUR_HOSTNAME;
keepalive_timeout 70;
root /var/www/OSTicket/upload;
index index.php index.html index.htm;
set $path_info "";
@vidplace7
vidplace7 / gather_stats.py
Last active November 4, 2015 17:33
Stats basis
import subprocess
import os
import requests
if os.geteuid() != 0:
exit("You need to have root privileges to run this script.\nPlease try again, this time using 'sudo'. Exiting.")
cmd_info = {
@vidplace7
vidplace7 / generate_md5.py
Created October 9, 2015 17:54
Python/Linux: Create .md5 files for every file in a directory and it's subdirectories
import os
import subprocess
ignored_extensions = ('.py', '.md5')
rootdir = os.getcwd()
for subdir, dirs, files in os.walk(os.getcwd()):
for filename in files:
os.chdir(subdir)
relative_path = os.path.normpath(os.path.relpath(os.getcwd(), rootdir))
@vidplace7
vidplace7 / keybase.md
Created December 23, 2014 01:21
keybase.md

Keybase proof

I hereby claim:

  • I am vidplace7 on github.
  • I am vidplace7 (https://keybase.io/vidplace7) on keybase.
  • I have a public key whose fingerprint is DD46 4773 CB7E C52C DC73 D40F 5ACE 9330 2F25 2A3A

To claim this, I am signing this object:

@vidplace7
vidplace7 / Cube World Registration Status
Last active December 19, 2015 09:59
Added timeout to site checking.
<title>Cube World Server Status</title>
<h1>Cube World Server Status</h1>
<?php
$ch = curl_init("https://picroma.com/cubeworld");
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_TIMEOUT_MS, 1000);
curl_exec($ch);
$retcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if (($retcode==200) || (curl_errno($ch)!==28))
{