Skip to content

Instantly share code, notes, and snippets.

View sraboy's full-sized avatar

Steve Lavoie sraboy

  • United States
View GitHub Profile
@sraboy
sraboy / gist:410521b323c1d749ffe050c96845a108
Created April 14, 2016 01:31 — forked from Erendis42/gist:3559692
filetypes.asm geany custom syntax highlighting for nasm 32 bit
# For complete documentation of this file, please see Geany's main documentation
[styling]
# foreground;background;bold;italic
default=0x000000;0xffffff;false;false
comment=0x808080;0xffffff;false;false
number=0x007f00;0xffffff;false;false
string=0xff901e;0xffffff;false;false
operator=0x000000;0xffffff;false;false
identifier=0x880000;0xffffff;false;false
cpuinstruction=0x111199;0xffffff;true;false
@sraboy
sraboy / websrv.c
Created December 7, 2017 12:39
Win32 Kernel Mode Webserver
// Pulled from https://www.osronline.com/showthread.cfm?link=164161
/*
Kernel mode web server for Windows.
Copyright (C) 2006 Bo Brantén.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
@sraboy
sraboy / data.php
Last active August 17, 2018 01:14 — forked from snaquaye/data.php
An updated server-side processing script for DataTables
<?php
/*
* Script: DataTables server-side script for PHP and MySQL
* Copyright: 2016 - Steven Lavoie
* Copyright: 2012 - John Becker, Beckersoft, Inc.
* Copyright: 2010 - Allan Jardine
* License: GPL v2 or BSD (3-point)
*/
namespace Common\Utilities;
@sraboy
sraboy / n64_joy.py
Last active October 1, 2018 15:17 — forked from rdb/js_linux.py
Access joysticks/game controllers from Python in Linux via the joystick driver. See https://www.panda3d.org/forums/viewtopic.php?f=8&t=16767
# Released by rdb under the Unlicense (unlicense.org)
# Modified for N64 controller from https://gist.github.com/rdb/8864666
import os, struct, array
from fcntl import ioctl
# Iterate over the joystick devices.
print('Available devices:')
for fn in os.listdir('/dev/input'):
@sraboy
sraboy / sample_binja_ui_plugin.py
Last active August 26, 2021 23:43
BinaryNinja Sample UI Plugin
# from: https://github.com/Vector35/binaryninja-api/issues/1345#event-2341690955
from binaryninja import log
from binaryninjaui import DockHandler, DockContextHandler, UIActionHandler
from PySide2 import QtCore
from PySide2.QtCore import Qt
from PySide2.QtWidgets import QApplication, QHBoxLayout, QVBoxLayout, QLabel, QWidget
instance_id = 0
class HelloDockWidget(QWidget, DockContextHandler):
@sraboy
sraboy / filetypes.Proto.conf
Created March 13, 2019 13:07
Geany Protobuf Syntax Highlighting
# Proto3 syntax highlighting. Build menu has `Python` option for `protoc`
# Based on Geany's built in CPP definition.
# Add to ~/.config/geany/filedefs
# In `filetype_extension.conf` add "Proto=*.proto" in the `Extensions` list and "Proto" to the `Misc` list in `Groups`
# For complete documentation of this file, please see Geany's main documentation
[styling=C]
[keywords]
# all items must be in one line