anchor.diff:      pushd ~/pin/source/tools/Triton && \
       mkdir build && \
       pushd build && \
  -    cmake -DPINTOOL=on .. && \
  +    cmake -DPINTOOL=on -DKERNEL4=on .. && \
       make -j$(grep processor < /proc/cpuinfo | wc -l) install && \
       popd && \
       find . -type f -name '*.o' -exec rm -f {} \; && \
  -    popd
  -
  -RUN cd ~ && \
  -    git clone https://github.com/SQLab/symgdb && \
  -    cd ~/symgdb && \
  -    ./install.sh && \
  -    rm -rf /usr/local/share/gdb ; \
  -    cp -r gdb/gdb/data-directory /usr/local/share/gdb && \
  -    rm -rf ~/symgdb/gdb ; \
  -    rm -f ~/symgdb/gdb-*.tar.gz ; \
  -    echo "source ~/symgdb/symgdb.py" >> ~/.gdbinit ; \
  -    echo "set debug-file-directory /usr/lib/debug" >> ~/.gdbinit
  +    popd && \
  +    rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
   
   RUN cd ~ && \
       wget https://github.com/sqlmapproject/sqlmap/tarball/master --output-document=sqlmap.tar.gz && \
       tar -zxvf sqlmap.tar.gz && \
       mv sqlmapproject-sqlmap-* sqlmap && \
       ln -sf `pwd`/sqlmap/sqlmap.py /usr/local/bin/sqlmap && \
  -    rm -f sqlmap.tar.gz
  +    rm -f sqlmap.tar.gz && \
  +    rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
   
   RUN apt-get update && \
       apt-get install -y ruby-dev && \
  
positive.code:     popd && \
      popd && \
      popd && \
      rm -rf $tmp
  
  RUN export tmp=`mktemp -d` && \
      pushd $tmp && \
      wget https://github.com/geohot/qira/tarball/2d4cdfb121384f83ea8deec45c73b740687538f9 && \
      tar -zxvf 2d4cdfb121384f83ea8deec45c73b740687538f9 && \
      mv geohot-qira-* ~/qira && \
      popd && \
      rm -rf $tmp && \
      pushd ~/qira && \
      ./install.sh && \
      find ~/qira/tracers/qemu/qemu-2.1.3 -type f -name '*.o' -exec rm -f {} \; ; \
      rm -f ~/qira/tracers/qemu/qemu-2.1.3.tar.bz2 ; \
      popd
  
  RUN export tmp=`mktemp -d` && \
      pushd $tmp && \
  
negative.code: RUN dpkg --add-architecture i386 && \
      apt-get update && \
      apt-get install -y man git git-core tmux bash-completion curl wget \
          python-pip python3-pip python-dev build-essential cmake unzip \
          xz-utils nmap john strace ltrace gcc g++ libc6-dev-i386 \
          gdbserver lib32stdc++6 libxml2-dev libxslt1-dev libssl-dev nasm \
          libboost1.58-dev libpython2.7-dev libc6-dbg libc6-dbg:i386 sudo \
          net-tools dnsutils iputils-ping netcat binutils gcc-multilib \
          g++-multilib qemu gdb libcapstone3 libcapstone-dev ruby-dev && \
      rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
  
  RUN pip install --upgrade pip setuptools && \
      pip install --upgrade ipython && \
      pip install --upgrade pwntools && \
      pip install --upgrade ipython && \
      pip install --upgrade ropgadget && \
      pip3 install --upgrade setuptools && \
      pip3 install --upgrade ipython && \
      rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
  
  RUN cd ~ && \
      git clone https://github.com/longld/peda ~/peda && \
      git clone https://github.com/Happyholic1203/Pwngdb ~/Pwngdb && \
      git clone https://github.com/JonathanSalwan/ROPgadget ~/ROPgadget && \
      cp ~/Pwngdb/.gdbinit ~/ && \
      rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
  
  RUN pushd ~ && \
      git clone https://github.com/Happyholic1203/dotfiles && \
      pushd ~/dotfiles && \
      chmod +x ./install.sh && \
      ./install.sh --with-ycm --with-ranger && \
      rm -rf ~/.vim/bundle/YouCompleteMe//third_party/ycmd/clang_archives/ && \
      echo "#!/bin/bash" > ~/init && \
      echo "TERM=xterm-256color tmux" >> ~/init && \
      echo "bash" >> ~/init && \
      chmod +x ~/init && \
      popd && \
      popd && \
      rm -f /var/lib/apt/lists/*; rm -rf /tmp/*; rm -rf ~/.cache
  
  RUN export tmp=$(mktemp -d) && \
      pushd $tmp && \
      wget https://github.com/vim/vim/archive/v8.1.0593.zip && \
      unzip *.zip && \
      pushd vim-* && \
      ./configure --with-features=huge \
                  --enable-multibyte \
                  --enable-rubyinterp=yes \
  