Skip to content

Instantly share code, notes, and snippets.

View Vexatos's full-sized avatar
🍁
Cartographing

Vexatos Vexatos

🍁
Cartographing
  • None in particular.
  • Germany
View GitHub Profile
@iamgreaser
iamgreaser / DFPWM.java
Created June 29, 2013 08:14
DFPWM for Java
/*
DFPWM implementation in Java
operates on 8-bit signed PCM data and little-endian DFPWM data
by Ben "GreaseMonkey" Russell, 2013 - Public Domain
NOTE, len is in bytes relative to DFPWM (len*8 PCM bytes)
also the main() function takes unsigned 8-bit data and converts it to suit
*/
local err,res=xpcall(function()
end,debug.traceback)
if not err then
pcall(function()
res=res:gsub("\t"," ")
local file=io.open("system/crash.txt","w")
file:write(res)
file:close()
local gpu=component.gpu
@meew0
meew0 / NEMCheck.rb
Last active August 29, 2015 14:05
NEM Update Checker
# NotEnoughMods Update Checker
# Made by meew0
#
# Requires Ruby
# http://ruby-lang.org/
#
# Download as NEMCheck.rb, go into a command prompt,
# navigate to the folder you downloaded it to and run
# ruby NEMCheck.rb
# Easy, right?
@Vazkii
Vazkii / GameShow.java
Created August 21, 2014 00:41
Bot Game Show
package vazkii.vbot.gameshow;
import java.net.URL;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
@fnuecke
fnuecke / bios.lua
Created December 24, 2014 00:35
Primitive remote code execution via OC network
local m=component.proxy(component.list("modem")())
m.open(2412)
local function respond(...)
local args=table.pack(...)
pcall(function() m.broadcast(2412, table.unpack(args)) end)
end
local function receive()
while true do
local evt,_,_,_,_,cmd=computer.pullSignal()
if evt=="modem_message" then return load(cmd) end
@Fingercomp
Fingercomp / 00-sound-card-toc.md
Last active June 8, 2024 03:47
Guide to the Sound Card