Skip to content

Instantly share code, notes, and snippets.

@ril3y
ril3y / Grafana - DockerFile
Last active February 22, 2020 00:15
my-grafana Dockerfile
FROM grafana/grafana
RUN grafana-cli plugins install andig-darksky-datasource
@ril3y
ril3y / DockerFile
Last active March 12, 2021 18:54
my-node-red DockerFile
FROM nodered/node-red
RUN npm install node-red-contrib-influxdb && npm install node-red-dashboard && npm install node-red-contrib-alexa-remote2 && npm install node-red-contrib-sonos-plus && npm install node-red-contrib-tasmota && npm install node-red-contrib-smartthings && node-red-contrib-syslog-input && npm install node-red-contrib-unifi
def cat(filename, path="/flash"):
try:
f = open(path+'filename','r')
for line in f.readlines():
print line
catch:
print("Err opening file")
@ril3y
ril3y / m5stack.py
Last active March 1, 2019 16:55
Notes on using the m5stack with micropython
import machine
import display
import network
wifi = network.WLAN(network.STA_IF)
wifi.active(True)
@ril3y
ril3y / Script.bin
Created December 18, 2018 17:24
1up Arcade fex config
[product]
version = "1.0"
machine = "A13-EVB-V1.0"
[target]
boot_clock = 1008
dcdc2_vol = 1400
dcdc3_vol = 1200
ldo2_vol = 3000
ldo3_vol = 3300
@ril3y
ril3y / ril3y_conky.cfg
Created October 5, 2018 00:12
My Conky Config File
conky.config = {
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
own_window = true,
@ril3y
ril3y / VB Decompiler Set Breakpoints.py
Created October 1, 2018 18:55
Small script to take the output of VB Decompiler Pro's Procedure listing and set breakpoints on each location for Ida Pro
"""
Small script to take the output of VB Decompiler Pro's
Procedure listing and set breakpoints on each location
for Ida Pro"""
f = open("C:\\Users\\user\\Desktop\\sample.txt","r")
for line in f.readlines():
if("Address" in line):
break_address = line.rstrip().split(": ")[-1]
@ril3y
ril3y / xor_strings.js
Created January 31, 2018 03:32
Simple Javascript String XOR utility
var xor_str = function(s,K)
{
c = '';
for(i=0; i<str.length; i++) {
for(ik=0; ik<K.length; ik++){
c += String.fromCharCode(str[i].charCodeAt(0).toString(10) ^ key.charCodeAt(0).toString(10)); // XORing with letter 'K'
}
}
return c;
}
@ril3y
ril3y / fang-camera-config-generator.markdown
Created December 6, 2017 22:12
FANG Camera Config Generator

FANG Camera Config Generator

This is a configuration generator app for the FANG cameras. This is an alternative to using some janky Chinese application.

A Pen by Riley Porter on CodePen.

License.

@ril3y
ril3y / Dockerfile
Created November 28, 2017 21:45
Sonix98600 Tool Chain Docker File
FROM sysbot/fedora18-i386
MAINTAINER <[email protected]>
ENV PERL_MM_USE_DEFAULT 1
RUN yum update
RUN yum install tar -y ; yum clean all