Skip to content

Instantly share code, notes, and snippets.

View cyraxjoe's full-sized avatar

Joel Rivera cyraxjoe

View GitHub Profile
@muff-in
muff-in / resources.md
Last active April 27, 2024 22:37
A curated list of Assembly Language / Reversing / Malware Analysis / Game Hacking-resources
with import ./lisp.nix { a = null; }; eval
(defun fib (n)
(defun fib2 (a b n)
(iff (lt n 2) b
(def (next (plus a b))
(fib2 b next (minus n 1))))
(fib2 0 1 n))
(fib 60))
@abbradar
abbradar / nix.sh
Last active February 11, 2017 08:01
if [ -n "$HOME" ]; then
export NIX_REMOTE=daemon
export NIX_USER_PROFILE_DIR=/nix/var/nix/profiles/per-user/$USER
mkdir -m 0755 -p $NIX_USER_PROFILE_DIR
if test "$(stat --printf '%u' $NIX_USER_PROFILE_DIR)" != "$(id -u)"; then
echo "WARNING: bad ownership on $NIX_USER_PROFILE_DIR" >&2
fi
@cyraxjoe
cyraxjoe / cp_execute_in_main_thread.py
Created March 12, 2016 02:40
Execute a callable on the MainThread from a CherryPy application.
import threading
import functools
import cherrypy as cp
class MainExecutor:
"""Wrap a callable to ensure that the execution takes place on the
MainThread based on the cherrypy.engine and the 'main' channel.
@QueerCodingGirl
QueerCodingGirl / Jenkins Selenium Plugin selenium.xml hostname example file
Created March 30, 2015 15:04
Jenkins Selenium Plugin selenium.xml hostname example file
<?xml version='1.0' encoding='UTF-8'?>
<hudson.plugins.selenium.PluginImpl plugin="selenium@2.4.1">
<port>4444</port>
<newSessionWaitTimeout>-1</newSessionWaitTimeout>
<throwOnCapabilityNotPresent>false</throwOnCapabilityNotPresent>
<hubLogLevel>INFO</hubLogLevel>
<rcDebug>true</rcDebug>
<hostnameResolver class="hudson.plugins.selenium.configuration.global.hostname.StaticHostnameResolver">
<hostname>0.0.0.0</hostname>
</hostnameResolver>
@cyraxjoe
cyraxjoe / cp_multiview_demo.py
Last active December 10, 2015 01:34
Sample code to implement multiple views/handlers depending on the Accept and Content-Type headers.
from contextlib import contextmanager
import cherrypy
from cherrypy.lib import cptools
class View(object):
__mime__ = 'text/html'
def __init__(self, controller):