Skip to content

Instantly share code, notes, and snippets.

Daniel Henry-Mantilla danielhenrymantilla

Block or report user

Report or block danielhenrymantilla

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 death_letter.tex
\documentclass[10pt]{lettre}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{eurosym}
\usepackage{enumitem}
\usepackage[frenchb]{babel}
\begin{document}
\begin{letter}{
@danielhenrymantilla
danielhenrymantilla / hexdump_tool_by_yandros.c
Created Jul 30, 2018
Hexdump tool to "copy-paste" binaries into a shell. Useful for root-me.org VM challenges.
View hexdump_tool_by_yandros.c
/* Hexdump tool to "copy-paste" binaries into a shell.
* Useful for root-me.org VM challenges.
* Compile with:
* $ cc -std=c99 -o slice slice.c
*
* By Yandros (https://www.root-me.org/Yandros)
*/
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
@danielhenrymantilla
danielhenrymantilla / lib.rs
Created Jul 7, 2018
Rust: &self sugar vs other &identifier bindings
View lib.rs
/* The following lib tests illustrate a lack of consistency in rust:
* the &identifier binding leads to 2 different behaviors based on whether
* - the identifier is the special 'self' first argument of a method,
* - or a simple variable / argument (called slf in the following tests)
*/
#![allow(dead_code, unused_variables, unused_parens)]
/* compiler ensures that check_ref::<T>(x) can only be called iff x: &T */
fn check_ref<T> (_: &T) {}
You can’t perform that action at this time.