Skip to content

Instantly share code, notes, and snippets.

@yfe404
yfe404 / straceopen
Created January 2, 2014 20:00
Print the list of the files opened by a program during its execution Usage : straceopen <program [args]>
#!/bin/sh
strace $* 2>&1 | grep "open" | cut -d "(" -f 2 | cut -d ")" -f 1
@yfe404
yfe404 / main.c
Created December 30, 2013 12:58
Convert non standard format RGB32 to standard format PPM raw
/**
* \file main.c
* \brief Programme de conversion d'image rgb32 (non standard) vers PPM binaire (standard).
* \author Yann Feunteun
* \version 0.1
* \date 30 décembre 2013
*
* Ce programme convertit une image rgb32 dont le format est le suivant :
*
* 4 octets (unsigned) encodant la largeur
@yfe404
yfe404 / main.c
Created November 25, 2013 20:42
Counting DNA Nucleotides ==> http://rosalind.info/problems/dna/
#include <stdio.h>
int main(int argc, char * argv[])
{
if(argc < 2){
fprintf(stderr, "Missing argument !\n");
return -1;
}
if(argc > 2){