Skip to content

Instantly share code, notes, and snippets.

@luca-m
Last active December 18, 2015 23:29
Show Gist options
  • Select an option

  • Save luca-m/5861747 to your computer and use it in GitHub Desktop.

Select an option

Save luca-m/5861747 to your computer and use it in GitHub Desktop.
A collection of useful commands.
# convert images
convert *.pgm %d.jpg
# video from image sequence
avidemux2_cli --video-codec DV --fps 1 --load jpg/*.jpg --save out.avi --quit
# No ASLR
sysctl -w kernel.randomize_va_space=0
paxctl -x <program>
setarch `arch` -R <program>
# Compile library
gcc -shared -fPIC -o libsource.so source.c
# Run with LD_PRELOAD
env LD_PRELOAD="./libmy.so" ./program
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment