Skip to content

Instantly share code, notes, and snippets.

mhx mhx

Block or report user

Report or block mhx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View autostack.pl
#!/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;
View gist:affacabb508c1cff2dadfbf58c526566
mhx@air ~ $ pdftotext Scannen0001.pdf - | grep -qE '\S'
mhx@air ~ $ echo $?
0
mhx@air ~ $ pdftotext mhx.pdf - | grep -qE '\S'
mhx@air ~ $ echo $?
1
View info.sh
#!/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"
View info.sh
#!/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"
View gist:7091154
#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)&&(
View gist:4221177
#include <vector>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <string>
using namespace std;
void merge(vector<string>& v)
{
View gist:3532140
marcus@balrog ~ $ cat test.cpp
#include <iostream>
struct Versuch {
int foo1;
int foo2;
int foo3;
int foo4;
};
You can’t perform that action at this time.