Skip to content

Instantly share code, notes, and snippets.

View Stankye's full-sized avatar
:octocat:
Accepting The Risk

R Stankye

:octocat:
Accepting The Risk
  • Personal Account
  • US
View GitHub Profile
@ksose
ksose / ssdt.py
Created July 5, 2011 09:41
Detect SSDT hooks from user-mode in python
# k`sOSe - detect SSDT hooks
import ctypes
import struct
from ctypes.wintypes import *
from ctypes import windll
SYSCALLS = [
"NtAcceptConnectPort",
"NtAccessCheck",
@markrickert
markrickert / giratchive.sh
Created June 12, 2012 20:20
Git Archive Bash Script
#!/bin/bash
# Takes one parameter: a remote git repository URL.
#
# This is the stuff this script does:
#
# 1. Clones the repository
# 2. Fetches all remote branches
# 3. Compresses the folder
# 4. Deletes the cloned folder.
@1wErt3r
1wErt3r / SMBDIS.ASM
Created November 9, 2012 22:27
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger ([email protected])
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
@RustingSword
RustingSword / hosts.md
Created November 26, 2012 13:20
Hosts for Google Services

via http://shen0956.com/?p=1523

173.194.72.82 www.google.com.hk

74.125.31.189 mail.google.com
74.125.31.189 plus.google.com
74.125.31.189 adsense.google.com
74.125.31.189 analytics.google.com
74.125.31.189 drive.google.com

74.125.31.189 translate.google.cn

@9to5IT
9to5IT / Script_Template.ps1
Last active June 6, 2025 03:20
PowerShell: Script Template
#requires -version 2
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
@KdotJPG
KdotJPG / OpenSimplex2S.java
Last active June 5, 2025 06:41
Visually isotropic coherent noise algorithm based on alternate constructions of the A* lattice.
/**
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex")
*
* More language ports, as well as legacy 2014 OpenSimplex, can be found here:
* https://github.com/KdotJPG/OpenSimplex2
*/
public class OpenSimplex2S {
private static final long PRIME_X = 0x5205402B9270C86FL;
@smileyborg
smileyborg / detect_evil_merge.sh
Last active August 16, 2023 04:00
Two scripts that can be used to detect evil merges in Git. See http://stackoverflow.com/questions/27683077
#!/bin/bash
# A shell script to provide a meaningful diff output for a merge commit that can be used to determine whether the merge was evil.
# The script should be run from outside the git repository, with two arguments:
# 1 - the directory of the git repository
# 2 - the SHA for the merge commit to inspect
# The script will output one file:
# - the merge redone fresh without any conflicts resolved, diff'ed to the actual merge
output_file="diff.txt"
@chuckwagoncomputing
chuckwagoncomputing / excuses.sh
Created November 28, 2015 01:14
BOFH excuses
#!/usr/bin/env bash
EXCUSES="/path/to/excuses.txt"
awk 'NR=='$((1 + $RANDOM % `nl $EXCUSES | tail -n 1 | awk '{print $1}' `))'{print;exit}' $EXCUSES
@Spring3
Spring3 / gist:42629b7ab7ab2f557d89
Last active October 28, 2021 04:16
Solve google recaptcha using 2captcha API and Selenium WebDriver
//client = HttpClient
//captchaUserId = user id from http://2captcha.com
private String solveCaptcha(WebDriver driver) throws Exception{
WebElement captchaChallenge = driver.findElement(By.id("recaptcha_challenge_image"));
if (captchaChallenge != null){
String imageURL = captchaChallenge.getAttribute("src");
InputStream in = new BufferedInputStream(new URL(imageURL).openStream());
ByteArrayOutputStream baos = new ByteArrayOutputStream();
for (int i; (i = in.read()) != -1;){
@mattypiper
mattypiper / stringobf-cpp11.cpp
Last active September 28, 2021 09:29
compile time string obfuscation
// http://www.rohitab.com/discuss/topic/39611-malware-related-compile-time-hacks-with-c11/
#include <stdio.h>
#include <stdint.h>
//-------------------------------------------------------------//
// "Malware related compile-time hacks with C++11" by LeFF //
// You can use this code however you like, I just don't really //
// give a shit, but if you feel some respect for me, please //
// don't cut off this comment when copy-pasting... ;-) //