Skip to content

Instantly share code, notes, and snippets.

View mhx's full-sized avatar
🦊
Working from home

mhx mhx

🦊
Working from home
View GitHub Profile
marcus@balrog ~ $ cat test.cpp
#include <iostream>
struct Versuch {
int foo1;
int foo2;
int foo3;
int foo4;
};
#include <vector>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <string>
using namespace std;
void merge(vector<string>& v)
{
#include <stdio.h>
#include <setjmp.h>
#include <limits.h>
#define p putchar
#define l longjmp
#define s setjmp
jmp_buf __[3];double _[7];main(){(1[_]=1)&&(s(2[__]),1)&&1[_]>=-1&&(
*_=-6e-1)&&((s(1[__]),1)&&18e-1>=*_&&(2[_]=75e-1)&&((s(*__),1)&&2[_]
&&(2[_]-=1.0)&&(((int)2[_])[_]=0,1)&&(l(*__,0),1),1)&&((s(*__),1)&&2
[_]<CHAR_MAX&&2>5[_]+6[_]&&(5[_]=3[_]*3[_],1)&&(6[_]=4[_]*4[_],1)&&(
@mhx
mhx / info.sh
Created October 22, 2018 10:20
#!/bin/bash
set -e
RAW="$1"
TIFF="${1/.dng/.tiff}"
INFO="${1/.dng/.info}"
if [ ! -f "$INFO" ]; then
dcraw -T -4 -r 1 1 1 1 -H 0 "$RAW"
@mhx
mhx / info.sh
Last active October 22, 2018 10:24
#!/bin/bash
set -e
RAW="$1"
TIFF="${1/.dng/.tiff}"
INFO="${1/.dng/.info}"
if [ ! -f "$INFO" ]; then
dcraw -T -4 -r 1 1 1 1 -H 0 "$RAW"
mhx@air ~ $ pdftotext Scannen0001.pdf - | grep -qE '\S'
mhx@air ~ $ echo $?
0
mhx@air ~ $ pdftotext mhx.pdf - | grep -qE '\S'
mhx@air ~ $ echo $?
1
#!/usr/bin/perl -w
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
use File::Glob ':bsd_glob';
use File::Basename;
use File::Spec;
use File::Path 'make_path';
use File::Temp;
@mhx
mhx / NCeq1.png
Last active February 19, 2020 20:31
GPSDO scope screenshots
NCeq1.png
diff -ruN samples/bluetooth/peripheral/src/main.c samples/bluetooth/peripheral-25964/src/main.c
--- samples/bluetooth/peripheral/src/main.c 2020-06-17 17:35:31.695578457 +0200
+++ samples/bluetooth/peripheral-25964/src/main.c 2020-06-17 17:48:31.701315435 +0200
@@ -316,6 +316,51 @@
bt_gatt_hrs_notify(heartrate);
}
+static void interrupt_worker(struct k_work *work);
+static void interrupt_timer_handler(struct k_timer *timer);
+