Skip to content

Instantly share code, notes, and snippets.

View defrindr's full-sized avatar
👋
Hi there

Defri Indra Mahardika defrindr

👋
Hi there
View GitHub Profile
@st3v
st3v / commit_dates.sh
Last active March 31, 2021 01:54
Manipulate Git Commit Dates
# Setting date at commit time:
GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800" git commit -m "Ignore stuff" --date "Tue Feb 7 22:47:34 2012 -0800"
# Changing date for historical commit:
git filter-branch --env-filter 'if [ $GIT_COMMIT = <commit-id> ]
then
export GIT_AUTHOR_DATE="Tue Feb 7 22:47:34 2012 -0800"
export GIT_COMMITTER_DATE="Tue Feb 7 22:47:34 2012 -0800"
@n3o77
n3o77 / evalDecoder.php
Created January 29, 2013 16:52
Decode PHP eval obfuscation
$string = "BASE 64 STRING";
$decode = strrev('edoced_46esab');
$result = eval(str_replace('eval', 'return', $decode($string)));
while (strstr($result, 'eval')) {
$result = eval(str_replace('eval', 'return', $result));
}
echo("<pre>".$result."</pre>");
@vi
vi / reedsolomon.c
Created September 16, 2012 16:02
Simple command-line Reed-Solomon encoding and decoding tool
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "ecc.h"
/* Reed-solomon command-line tool by Vitaly "_Vi" Shukela; 2012 */
/*
Usage:
1. Download http://sourceforge.net/projects/rscode/