All Posts By

admin

speed up rsync fast

By | Linux | No Comments

Speed up rsync over lan or wan with this simple addition to your command.

-e "ssh -T -c aes128-ctr -o Compression=no -x"

Her we use the new command in a safe (dry run) example

rsync -avn --progress -e "ssh -T -c aes128-ctr -o Compression=no -x" source/ user@x.x.x.x:/destination

Install zogminer Zcash Miner on Ubuntu 16.04

By | Crypto Mining | No Comments

[raw]
apt-get install libdb++-dev
apt-get install libboost1.58-all-dev libboost-all-dev
apt-get install build-essential pkg-config libc6-dev m4 g++-multilib autoconf libtool ncurses-dev unzip git python zlib1g-dev wget bsdmainutils automake opencl-headers Mesa-common-dev
git clone https://github.com/nginnever/zogminer.git
cd zogminer/
./zcutil/fetch-params.sh
./zcutil/build.sh -j$(nproc)
[/raw]

Run GPU test miner

[raw]

./src/zcash-miner -G

[/raw]

Run Python with Forever

By | Linux | No Comments

It is easy to use Python with forever.js:

[raw]

forever start -c python python_script.py

[/raw]

To use it with virtualenv is a little bit more complicated, I did it using a bash script (call it python_virtualenv):

[raw]

#!/bin/bash
# Script to run a Python file using the local virtualenv
source bin/activate
bin/python $@

[/raw]

Now use that script with forever:

[raw]

forever start -c ./python_virtualenv python_script.py

[/raw]

php7.0 debian jessie docker install

By | Linux | No Comments

[raw]
RUN apt-get update -y
RUN apt-get install -y libgmp-dev re2c libmhash-dev libmcrypt-dev file
RUN ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/local/include/
RUN docker-php-ext-configure gmp
RUN docker-php-ext-install gmp
RUN docker-php-ext-configure mcrypt
RUN docker-php-ext-install mcrypt

RUN echo extension=gmp.so > $PHP_INI_DIR/conf.d/gmp.ini
RUN echo extension=mcrypt.so > $PHP_INI_DIR/conf.d/mcrypt.ini
[/raw]

Change Docker Default Location

By | Docker | No Comments

The most recent method to change the default data directory location is edit
[raw]
/lib/systemd/system/docker.service
[/raw]

Replace the ExecStart value with the following:
[raw]
ExecStart=/usr/bin/dockerd –graph=”/mnt/blockstorage/” -H fd://
[/raw]

Replace graph=”” with the location of your new storage.

or

Edit [raw]/etc/docker/daemon.json[/raw]

[raw]
{
“graph”: “/mnt/blockstorage”
}
[/raw]