Skip to content

Instantly share code, notes, and snippets.

View metachris's full-sized avatar

Chris Hager metachris

View GitHub Profile
@JorritvandenBerg
JorritvandenBerg / Dockerfile
Last active February 24, 2018 19:47
NEO private network with neo-python container
FROM ubuntu:16.04
RUN apt-get update && apt-get -y install git python3-dev python3-pip libleveldb-dev libssl-dev screen
RUN git clone https://github.com/CityOfZion/neo-python.git
WORKDIR /neo-python
RUN pip3 install -r requirements.txt
@zaius
zaius / background.sh
Created January 16, 2011 23:29
How to redirect a running process output to a file and log out
ctrl-z
bg
touch /tmp/stdout
touch /tmp/stderr
gdb -p $!
# In GDB
p dup2(open("/tmp/stdout", 1), 1)
p dup2(open("/tmp/stderr", 1), 2)