Skip to content

Instantly share code, notes, and snippets.

View nazgee's full-sized avatar

Michal Stawinski nazgee

  • Poland, Wroclaw
View GitHub Profile
@nazgee
nazgee / notes.md
Created May 21, 2016 21:32 — forked from natevw/notes.md
Using Bus Blaster v4 with STM32F4x SWD

Using Bus Blaster v4 with STM32F4x SWD

For SWD (instead of normal JTAG) you need a different CPLD "buffer logic" image on the Bus Blaster, the KT-Link compatible ones seem like the recommended means.

# with buffer logic at https://github.com/dergraaf/busblaster_v4/blob/master/ktlink/ktlink.svf
# via http://dangerousprototypes.com/forum/viewtopic.php?f=37&t=5954 from https://github.com/mchck/mchck/wiki/Getting-Started#wiki-bus-blaster
curl -O https://github.com/dergraaf/busblaster_v4/raw/master/ktlink/ktlink.svf
openocd -f board/dp_busblaster_v3.cfg -c "adapter_khz 1000; init; svf /Users/natevw/Downloads/ktlink.svf; shutdown"
michal@e6540:~/workspace/liclipse/plagiat$ time python ./plagiat.py --lowercase --limitoutput 300 --limitinput 5500 --method ComparisonTokenSet
=====
data = pubmed_result.csv
limitinput = 5500
limitoutput = 300
method = ComparisonTokenSet
lowercase = True
=====
max number of combinations to check: 15122250
@nazgee
nazgee / main.cpp
Created April 16, 2012 07:52
linux file descriptors passing between processes
#include <errno.h>
#include <string.h>
#include <iostream>
#include <sys/types.h> /* See NOTES */
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>