Skip to content

Instantly share code, notes, and snippets.

View lovasko's full-sized avatar

Daniel Lovasko lovasko

  • Zürich, Switzerland
View GitHub Profile
import Codec.ELF
main :: IO ()
main = B.writeFile "hello_world" (E.write result)
where
result = Elf header program
header = ElfHeader stuff
@lovasko
lovasko / gist:166cbb659508d5e04834abb62834a45d
Created August 19, 2016 21:44 — forked from reiz/gist:d67512deee814705134e
Vagrantfile for a Java dev. environment with Oracle Java 8 and Eclipse.
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.provider "virtualbox" do |vb|
vb.gui = true

Domino na Briezdeni 2016

Sifrovacka Briezdenie je skvela akcia,

@lovasko
lovasko / gist:1e7f9a55b2fac0c687b5
Last active August 29, 2015 14:01
Listing of the ELF sections and matching for the .SUNW_ctf
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <libelf.h>
#include <gelf.h>