Skip to content

Instantly share code, notes, and snippets.

View PatrickSchiffmann's full-sized avatar

Patrick Schiffmann PatrickSchiffmann

View GitHub Profile
find -name "archive\.tar" | xargs -i tar xvf {} -O 2>/dev/null | grep -H -i "^Program finished successfully\|error" > logs.txt
grep successfully logs.txt | wc -l
grep Error logs.txt | wc -l
@PatrickSchiffmann
PatrickSchiffmann / pgmio2.c
Last active November 10, 2015 05:49
Version of pgmio.c that works with dynamic arrays from arralloc.c
/* Revised to be readable code and behave as a normal person would expect
* when working with dynamic arrays from arralloc.c
* s1563256, 10.11.2015
*/
/*
* This file contains C routines for the MPI Casestudy.
*
* To access these routines, add the following to your program:
*
default: main.c
gcc -o main main.c
mkdir outputdir
./main
./imageviewer
@PatrickSchiffmann
PatrickSchiffmann / pylint-recursive.py
Last active July 13, 2018 10:10 — forked from gregorynicholas/pylint-recursive.py
Module that runs pylint on all python scripts found in a directory tree..
#! /usr/bin/env python
'''
Module that runs pylint on all python scripts found in a directory tree..
'''
import re
import sys
import subprocess
TOTAL = 0.0