Skip to content

Instantly share code, notes, and snippets.

Avatar
👀
294 people are currently looking at this profile

Luckydonald luckydonald

👀
294 people are currently looking at this profile
  • Some basement in Equestria.
View GitHub Profile
View README.md

I did this exercise in order to learn about internal hacking using DLL injection and interfacing ASM with Rust.

This code will not compile by itself, you need to create the rust structure which should look something like this

dll
├── Cargo.toml
├── build.rs
└── src
    ├── interceptor.asm
    └── lib.rs
@krisnod
krisnod / gist:56ff894f400cce7c742fb11fb2fde9cf
Last active Apr 10, 2021
RancherOS on Hetzner using software RAID (RAID 1)
View gist:56ff894f400cce7c742fb11fb2fde9cf
Install:
----------
* Activate Hetzner Rescue System (Debian)
* Connect to Hetzner Rescue System using SSH and live boot RancherOS
(thanks goes to William Fleurant for showing how this can be done: https://github.com/wfleurant/boot-rancheros-hetzner/)
* apt-get update
* apt-get install kexec-tools aria2
@andrewgross
andrewgross / travis_webhook_checker.py
Last active Nov 5, 2020
Django View to check travis CI webhook signatures. Requires Django, python-requests and pyOpenSSL packages
View travis_webhook_checker.py
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import base64
import json
import logging
from urlparse import parse_qs
import requests
@jehaby
jehaby / README.md
Last active Sep 2, 2021 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug
View README.md

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
    && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@SirTony
SirTony / Fallout 4 Save File Format.md
Last active Apr 29, 2021
The binary format for Fallout 4 PC save files.
View Fallout 4 Save File Format.md

Fallout 4 Save File Format

The binary format for Fallout 4 PC save files. This document was created by reverse-engineering files from version 1.2.37.0 of the game.

Note: This document is incomplete!

Table of Contents

@huiliu
huiliu / app.py
Created Dec 8, 2015
Flask Streaming from Templates
View app.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from flask import Flask, stream_with_context, request, Response, flash
from time import sleep
app = Flask(__name__)
def stream_template(template_name, **context):
View db.json
{
"Radio": [
{
"frequency": 91,
"inRange": true,
"active": true,
"text": "Classical Radio"
},
{
"frequency": 98,
@p-a-t-a-r
p-a-t-a-r / changelog.txt
Last active Apr 26, 2019
Derpibooru Image Slideshow (Greasemonkey Userscript for derpibooru.org)
View changelog.txt
Version 1.0.0 (05/02/2015) - Initial release
Version 1.0.1 (05/02/2015) - Added trixiebooru.org to the include list
Version 1.0.2 (05/26/2015) - Added icon to gallery slideshow button to match the May 2015 UI update
Version 1.0.3 (05/31/2015) - Changes to gallery slideshow button for May 2015 UI update (fixed positioning and made text hide on mobile)
Version 1.0.4 (06/06/2015) - Major refactoring, fixed some occurrences of duplicate history states and changed the behavior of the slideshow button on gallery pages
Version 1.1.0 (06/07/2015) - Added fave/upvote/downvote/comment buttons and scores
Version 1.1.1 (07/05/2015) - Fixed a bug that prevented the slideshow button from working on tag pages
Version 1.1.2 (07/19/2015) - Fixed a bug that prevented the slideshow button from working on search pages
Version 1.2.0 (07/20/2015) - Added HTML5 fullscreen capability
Version 1.2.1 (08/04/2015) - Bugfixes
@mathebox
mathebox / color_conversion.py
Created Apr 12, 2015
Python methods to convert colors between RGB, HSV and HSL
View color_conversion.py
import math
def rgb_to_hsv(r, g, b):
r = float(r)
g = float(g)
b = float(b)
high = max(r, g, b)
low = min(r, g, b)
h, s, v = high, high, high
@thewestwind
thewestwind / bfc.cpp
Created Jan 15, 2015
Just some Brainfuck compiler (LLVM based)
View bfc.cpp
#include "headers.h"
using namespace llvm;
using namespace std;
struct codegen {
enum insn_name {
ptr_increment, // >
ptr_decrement, // <
value_increment, // +