Skip to content

Instantly share code, notes, and snippets.

@sebbu2
sebbu2 / openpgp.md
Last active September 1, 2024 21:02

openpgp4fpr:B723446F1D98026E340E2B554DD4E1558551E77D

[Verifying my OpenPGP key: openpgp4fpr:878E742048DEBC7BDE3E6D3A2409909AABDCDE3B]

aspe:keyoxide.org:WPBIJFDNKABIQK7SLCDHNTUIM4

Keybase proof

I hereby claim:

  • I am sebbu2 on github.
  • I am sebbu (https://keybase.io/sebbu) on keybase.
  • I have a public key whose fingerprint is 878E 7420 48DE BC7B DE3E 6D3A 2409 909A ABDC DE3B

To claim this, I am signing this object:

@sebbu2
sebbu2 / fast_image_size_reader.cpp
Created June 19, 2012 19:16
Fast Image Size Reader
#include <vector>
#include <cerrno>
#include <climits>
#include "fast_image_size_reader.hpp"
#include "crc32.hpp"
enum file_type get_file_type(const char* filename) {
assert(strcmp(filename,"")!=0);
enum file_type res=UNKNOWN;
FILE* fp=fopen(filename, "rb");
@sebbu2
sebbu2 / g++_stl_cleaner.pl
Created June 24, 2011 18:04
Clean the output of g++ with STL errors
#!/usr/bin/perl -w
use strict;
use warnings;
while (<>)
{
$\="\n";
s/^\s+//;
s/\s+$//;