Skip to content

Instantly share code, notes, and snippets.

@mcnutty26
mcnutty26 / plot.tex
Created April 18, 2017 11:32
Simple plot
\documentclass[]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
title={Operational region using the constant range propagation model},
xlabel={Speed (m/s)},
@mcnutty26
mcnutty26 / xor.sh
Created March 30, 2017 12:17
XOR images
gmic img1.png img2.png -blend xor -o img3.png
#! /bin/env bash
gcc -o runner -fno-stack-protector -z execstack runner.c
#char code[] = "\x31\xc0\xb0\x01\x31\xdb\xcd\x80";
#int main(int argc, char **argv)
#{
# int (*func)();
# func = (int (*)()) code;
# (int)(*func)();
#! /bin/env bash
yasm -f elf64 code.asm
ld -o code code.o
objdump -d code
#;exit.asm
#[SECTION .text]
#global _start
#_start:
@mcnutty26
mcnutty26 / vimrc
Last active March 12, 2018 14:14
Vim config
set number
set relativenumber
syntax enable
filetype indent on
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set ignorecase
set smartcase
set hlsearch
set incsearch