Skip to content

Instantly share code, notes, and snippets.

@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 <rileyporter@gmail.com>
ENV PERL_MM_USE_DEFAULT 1
RUN yum update
RUN yum install tar -y ; yum clean all
var serialport = require("serialport")
var color = require("colors")
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var q = require('q');
var fs = require('fs');
const commandLineArgs = require("command-line-args");
/*
@ril3y
ril3y / test.js
Last active October 27, 2016 02:38
var serialport = require("serialport")
var color = require("colors")
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var q = require('q');
var fs = require('fs');
const commandLineArgs = require("command-line-args");
@ril3y
ril3y / CHIP-CheatSheet.sh
Last active February 1, 2016 01:42
C.H.I.P. Cheat Sheet for me
#Default Packages
sudo apt-get install vim curl wget build-essential
#Setup Wifi
nmcli dev wifi con "myssid" password "myssidpassword"
#Install NodeJS
curl -sL https://deb.nodesource.com/setup_5.x | bash -
apt-get install -y nodejs
{
"tinyg_settings": {
"version":1.0,
"last_update":2242015,
"setting_groups": [
{
"motor_group": [
{
"sn": "ma",
"ln": "map axis",