View sample_binja_ui_plugin.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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): |
View filetypes.Proto.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
View n64_joy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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'): |
View websrv.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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. |
View data.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
View gist:410521b323c1d749ffe050c96845a108
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |