View crypt_helper.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
import idautils | |
JMPS = [idaapi.NN_jmp, idaapi.NN_jmpfi, idaapi.NN_jmpni] | |
CALLS = [idaapi.NN_call, idaapi.NN_callfi, idaapi.NN_callni] | |
DEBUG = True | |
COMMENT = True | |
class CSP(): | |
pass |
View HexCopy.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
Moved: https://github.com/OALabs/hexcopy-ida |
View Humble-Bundle-Books.js
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
{ | |
let a = [], b // Setup local vars | |
console.clear() // Clear the console | |
// For each item | |
$(".gameinfo").each(function() { | |
// Get the title & subtitle | |
let title = $(this).find('.title').text().trim() | |
let subtitle = $(this).find('.subtitle').text().trim() | |
a.push(`${title} - ${subtitle} #Humble`) | |
// Add the download URLs |
View hb_all_books_dl.js
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
/* | |
After purchasing a humble book bundle, go to your download page for that bundle. | |
Open a console window for the page and paste in the below javascript | |
this fork downloads all formats and does so without using jquery (since that didnt work for me) | |
note that if you are in chrome, chrome will not download the pdfs for you by default, to fix this | |
type “about:plugins” in the address bar and disable chrome's pdf viewer | |
*/ | |
var pattern = /(MOBI|EPUB|PDF)$/i; |
View avoid-self-ref-mergeinfo.patch
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
Date: Wed, 14 Mar 2012 17:45:05 +0200 | |
Subject: [PATCH] git svn dcommit: avoid self-referential mergeinfo | |
When svn.pushmergeinfo is configured, git svn dcommit tries to automatically populate svn:mergeinfo properties by merging the parent branch's mergeinfo into the committed one on each merge commit. This process can add self-referential mergeinfo lines, i.e. ones that reference the same branch being committed into (e.g. when reintegrating a branch to trunk after previously having merged trunk into it), which are then mishandled by SVN and cause errors in mixed SVN/Git environments. | |
For more details, see my original report on the issue at [1]. | |
This commit adds a step to git svn dcommit that filters out any mergeinfo lines referencing the target branch from the mergeinfo, thus avoiding the problem. | |
[1] http://thread.gmane.org/gmane.comp.version-control.git/191932 |
View gist:1116968
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
#!/bin/sh | |
DEVICE=$1 | |
SECTOR=$(sfdisk -luS|grep $DEVICE|gawk '{print $2}') | |
echo $SECTOR | gawk '{printf("%c%c%c%c",$1,rshift($1,8),rshift($1,16),rshift($1,24))}' | dd bs=1 count=4 seek=28 of=$DEVICE |