Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@martinhansdk
martinhansdk / MinimalTestcase.cpp
Created April 24, 2018 18:09
Testcase of issue with the Fusion 360 API that shows that setting an attribute on the design causes a selection input to loose it's selection
#include <Core/CoreAll.h>
#include <Fusion/FusionAll.h>
#include <string>
using namespace adsk::core;
using namespace adsk::fusion;
using namespace std;
Ptr<Application> app;
@martinhansdk
martinhansdk / README
Last active February 23, 2018 22:33
Check keypass database against pwned passwords.
Download the list of password hashes from https://www.troyhunt.com/ive-just-launched-pwned-passwords-version-2/ unpack it and check it against your keepass file with this script.
requires python3, libkeypass from https://github.com/libkeepass/libkeepass and
```
apt-get install python3-crypto python3-lxml
```
@martinhansdk
martinhansdk / Readme.md
Created January 2, 2018 19:31
Build ragel for Windows
@martinhansdk
martinhansdk / journal.org
Created November 21, 2017 22:58
org-html bugreport files

2017

2017-11 November

2017-11-15 Wednesday

Meeting with Bjørk

@martinhansdk
martinhansdk / .gitignore
Last active November 8, 2017 17:40
build_pcb2gcode.sh
boost_*
pcb2gcode/
pcb2gcodeGUI/
pcb2gcode.list
*~
@martinhansdk
martinhansdk / spaceused.sh
Last active January 3, 2016 13:39
Space used by files the past seven days.
#!/bin/bash
find /data/files -ctime 7 -type d -print0 | du --files0-from=- -m | awk '{i+=$1} END {print i}'
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
PDU A
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
PDU B
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
PDU A
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
[TCP segment of a reassembled PDU]
PDU B