Skip to content

Instantly share code, notes, and snippets.

View uyjulian's full-sized avatar

Julian Uy uyjulian

View GitHub Profile
--Somewhat simple Lua crypto
--Give thanks to Nolicaiks/RPFeltz
--Nonfree license
function Decrypt(message, key)
local message_length = #message
local key_length = #key
local random_seed = 0
local g = 0
local message_index = 1
local message_bytes = {}
@uyjulian
uyjulian / README.md
Last active January 21, 2017 06:53
Random journals from some random notebook

Random journals from some random notebook

All files in this gist are released under CC0.
I used the HCSB 2nd edition as reference, however it isn't quoted here because HCSB is copyrighted.

init python:
import sys, os, subprocess
def launch(path):
# Find the python executable to run.
executable_path = os.path.dirname(sys.executable)
if renpy.renpy.windows:
extension = ".exe"
//originally from: http://textuploader.com/07bg/raw
new (function() {
var ext = this;
// Cleanup function when the extension is unloaded
ext._shutdown = function() {};
// Status reporting code
// Use this to report missing hardware, plugin or unsupported browser
ext._getStatus = function() {
//original: http://www.picaxe.com/downloads/scratch/scraxepicoextension.js
(function(ext){var device=null;var rawData=null;var channels={slider:7,light:5,sound:6,button:3,'resistance-A':4,'resistance-B':2,'resistance-C':1,'resistance-D':0};var inputs={slider:0,light:0,sound:0,button:0,'resistance-A':0,'resistance-B':0,'resistance-C':0,'resistance-D':0};ext.resetAll=function(){};ext.sensor=function(whichSensor){return getSensor(whichSensor);};ext.getButton=function(){return getSensor('button');};ext.getSlider=function(){return getSensor('slider');};ext.getSound=function(){return getSensor('sound');};ext.getLight=function(){return getSensor('light');};ext.getResistanceA=function(){return getSensor('resistance-A');};ext.getResistanceB=function(){return getSensor('resistance-B');};ext.getResistanceC=function(){return getSensor('resistance-C');};ext.getResistanceD=function(){return getSensor('resistance-D');};function getSensor(whichSensor){return inputs[whichSensor];}ext.whenSensorValue=function(whichSensor,s,tar
--This script grabs shit from renweb
--You can run this script at an interval (example: 30 seconds) to log every 30 seconds
--After that you can pack the log directory with zpaq or other archiver
--example:
--while true; do moon printstatus.moon; zpaq a /mnt/torrents3/log.zpaq log; sleep 30; done
--i wrote this script hastily, so it looks ugly right now
--password form: https://xxxxxxx.client.renweb.com/pw/index.cfm
--form data: DistrictCode=xxxxxxx&username=redacted&password=redacted&UserType=PARENTSWEB-STUDENT&login=Login

Check Lua code (scroll) for decoding/encoding code
I'm using content/fonts/head.mesh as a reference point. Offset 0x0 to 0x11 starts with:
version 2.00
then these bytes:
0A 0C 00 24 0C
Offsets 0x11 to 0x19 might be two little-endian unsigned 32-bit integers.
The first integer to calculate offset starting at 0x19:
x * 4 * 9
that is the length of the mesh data...

ACROSS
1. Elie's father's last word to Elie
Eliezer
2. A relative from Antwerp
Stein
4. the Beadle is Elie's teacher of Jewish mysticism
Moshe
5. The first thing Elie seeks out after liberation
rations
8. Elie loses his gold crown here
[INIT]
[OPTIONS]
Title="ツ英ツ雄ツ伝ツ静 ツ療ォツづ個軌ツ静"
SrcDir=ED_ZERO
DstDir=ED_ZERO
ExeName=ED_ZERO.exe
IconName="ED_ZERO"
CopySize=1258000
YearRight=2013
diff -burN cp932/T0001.py shift_jisx0213/T0001.py
--- cp932/T0001.py 2018-01-15 20:24:17.000000000 -0600
+++ shift_jisx0213/T0001.py 2018-01-15 20:43:10.000000000 -0600
@@ -536,9 +536,9 @@
AnonymousTalk(
(
- "#20A2Wait a moment~\x02",
+ "#20A2Wait a moment‾\x02",
"#AIf you don't specify anything,\x01",