Skip to content

Instantly share code, notes, and snippets.

@ncanceill
ncanceill / frag_find.cpp
Last active December 18, 2015 06:59
Current implementation of random sampling in my fork of frag_find, based on code from bulk_extractor.
/* [...] */
int main(int argc,char **argv)
{
/* [...] */
//RANDOM SAMPLING START
if(opt_sampling_params.size()>0) set_sampling_parameters(opt_sampling_params);
/* Create a list of blocks to sample */
@ncanceill
ncanceill / frag_find-bug_test.sh
Last active December 18, 2015 08:49
A bug report for 3 distinct bugs linked to small blocksize in frag_find
#!/bin/sh
FF=frag_find
#FF=./frag_find/src/frag_find
TMP=/tmp
#TMP=.
dd if=/dev/zero of=$TMP/zero_block_512 bs=512 count=1
dd if=/dev/zero of=$TMP/zero_block_1k bs=512 count=2
dd if=/dev/zero of=$TMP/zero_block_256 bs=256 count=1
@ncanceill
ncanceill / pdf_tj.sh
Last active December 27, 2015 00:49
This script examines the TJ operators in a PDF file
#!/bin/zsh
#
#
#
# pdf_tj.sh
#
# This script examines the TJ operators in a PDF file.
#
# It requires QPDF <http://qpdf.sourceforge.net/> to decompress PDF files.
@ncanceill
ncanceill / mods_list.md
Last active August 29, 2015 14:15
My KSP mods

KSP Mods List

Core/GUI

Stock Bug Fixes — link

AVC — link

Toolbar — link

@ncanceill
ncanceill / test_git_version-1_7_2.zsh
Last active August 29, 2015 14:18
Test for git version detection
#!/usr/bin/env zsh
#compare the provided version of git to the version installed and on path
#prints 1 if input version <= installed version
#prints -1 otherwise
function git_compare_version() {
local INPUT_GIT_VERSION=$1;
local INSTALLED_GIT_VERSION
INPUT_GIT_VERSION=(${(s/./)INPUT_GIT_VERSION});
@ncanceill
ncanceill / autoexec.cfg
Last active August 3, 2017 11:30
CS:GO config
////////////////////////
// CS:GO autoexec config
name "ST☢FF"
////////////////////////
//////////////////////
// Netcode
//
// Rate
@ncanceill
ncanceill / TODO-OMZ.md
Last active December 6, 2015 11:30
My TODO list of OMZ issues