Skip to content

Instantly share code, notes, and snippets.

@slicify
slicify / ocr.sh
Last active August 29, 2015 14:01
Tesseract OCR (requires VPN)
# Run Tesseract OCR as a service
# ----
# This example requires the Slicify VPN to support FTP
# config
export FTPSERVER=10.8.0.205
export FTPUSER=slicify
export FTPPASSWORD=slicify
# install tesseract - note that internet connectivity requires SOCKS
@slicify
slicify / hadoop.sh
Created May 26, 2014 01:42
Hadoop Install (requires VPN)
# hadoop install
# --------------
# This installs a hadoop "worker node" on Slicify, allowing you to create a hadoop grid
# This example requires the Slicify VPN solution, and requires that your namenode is running on a separate server.
# config
export SERVERIP=10.8.0.200
export SERVERHOST=steve-ubu
# set current date/time
@slicify
slicify / protoshares.sh
Last active August 29, 2015 13:58
Protoshare mining with ypool
#change this to set the ypool worker login:password
export YPOOLACCOUNT=rhkrhk.pts_1:x
#set the correct date
sudo date -s "$(tsocks curl -sD - www.google.com | grep '^Date:' | tr -d '\r,' | awk '{print $2, $4, $3, $6, $7, $5}')"
#get the miner (generic version) - you'll probably want to replace this with a direct link to the latest version
tsocks wget https://secure.slicify.com/ClientDownloads/yam-yvg1900-M7p-linux64-generic.tgz
tar -xzvf yam-yvg1900-M7p-linux64-generic.tgz
cd yam-yvg1900-M7p-linux64-generic/linux64-generic/
@slicify
slicify / selenium.sh
Created March 29, 2014 08:57
Web scraping with Selenium
# web scraping with selenium
# see blog for full code here: http://blog.slicify.com/2014/03/29/slicify-and-selenium-simple-scalable-web-scraping/
# install the packages
sudo tsocks apt-get -y update
sudo tsocks apt-get -y install firefox xvfb
# install this if you need to compile the example locally (instead of just downloading the precompiled
# .class file
sudo tsocks apt-get -y install default-jdk
@slicify
slicify / primecoin.sh
Last active August 29, 2015 13:57
Primecoin Miner
# Simple Primecoin Miner
#===
# This example downloads and runs a primecoin miner that connects to the http://beeeeer.org pool.
# You'll need to create an address to recieve your payments with the PrimeCoin QT client first,
# then assign it to the address variable below.
# Replace this value with your address
export ADDRESS=AcxUi4AyTckaGxUKfpk1Xi6dxXf7AYVWf2
#force library updating
@slicify
slicify / speedtest.sh
Last active August 29, 2015 13:56
Network bandwidth test (Speedtest)
# Network bandwidth test
#===
# This short script runs a network speed test on your node
# Download the speed test script
tsocks wget https://raw.github.com/sivel/speedtest-cli/master/speedtest_cli.py
# Run the script
tsocks python speedtest_cli.py --simple > net.txt &
@slicify
slicify / unixbench.sh
Last active December 29, 2015 16:49
Slicify unixbench
# Unixbench
#===
# This short script downloads and runs the unixbench benchmarking suite on your node.
#get the source code & unzip it
tsocks wget http://byte-unixbench.googlecode.com/files/UnixBench5.1.3.tgz
tar xvf UnixBench5.1.3.tgz
cd UnixBench
#Run the multithreaded benchmark using all available cores