$ uname -r
Cian Johnston, July 2017
A couple of weeks ago, I decided I should put my gaming rig to work crypto mining. I did not expect to make any significant profit on this, it was more of a fun project to set up. However, there were a large number of tutorials and guides already out there, and many were more than a year out of date.
This guide assumes the reader already has a crypto wallet set up, is comfortable with Linux and the command line, and knows how to use Google if they run into problems.
The end result is an Ubuntu 16.04 LTS headless server running CUDA ethminer via systemd.
As configured in my dotfiles.
start new:
tmux
start new with session name:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream api_example_net { | |
server api.example.net:4000; | |
keepalive 600; | |
} | |
proxy_cache_path /var/cache/nginx/tag levels=1:2 keys_zone=tag:10m inactive=1d max_size=10g; | |
server { | |
listen 80; | |
server_name api.example.net; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map $http_user_agent $device_type | |
{ | |
default "desktop"; | |
# Mobile bots | |
"~*SAMSUNG-SGH-E250\/1\.0 Profile\/MIDP-2\.0 Configuration\/CLDC-1\.1 UP\.Browser\/6\.2\.3\.3\.c\.1\.101 \(GUI\) MMP\/2\.0 \(compatible; Googlebot-Mobile\/2\.1; \+http:\/\/www\.google\.com\/bot\.html\)" 'botm'; | |
"~*DoCoMo\/2\.0 N905i\(c100;TB;W24H16\) \(compatible; Googlebot-Mobile\/2\.1; \+http:\/\/www\.google\.com\/bot\.html\)" "botm"; | |
"~*Mozilla\/5\.0 \(iPhone; CPU iPhone OS 8_3 like Mac OS X\) AppleWebKit\/600\.1\.4 \(KHTML, like Gecko\) Version\/8\.0 Mobile\/12F70 Safari\/600\.1\.4 \(compatible; Googlebot\/2\.1; \+http:\/\/www\.google\.com\/bot\.html\)" "botm"; | |
"~*Mozilla\/5\.0 \(Linux; Android 6.0.1; Nexus 5X Build/MMB29P\) AppleWebKit\/537\.36 \(KHTML, like Gecko\) .+ \(compatible; Googlebot\/2.1; \+http:\/\/www\.google\.com\/bot\.html\)" "botm"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Registration Code | |
Name : www.xyraclius.com | |
Serial : OOCRYIMDMDPWRETFPSUZ |
Download the package form Robo3t or using wget
wget https://download.robomongo.org/1.2.1/linux/robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
tar -xvzf robo3t-1.2.1-linux-x86_64-3e50a65.tar.gz
- Flow of lua nginx module directives: https://openresty-reference.readthedocs.io/en/latest/Directives/
body_filter_by_lua
documentation: https://github.com/openresty/lua-nginx-module#body_filter_by_lua- Following sample is from this site: https://groups.google.com/d/msg/openresty-en/5PWmL2f70x8/R2DUMsNUAgAJ
http {
proxy_cache_path /tmp/cache levels=1:2 keys_zone=cache:60m max_size=1G;
server {
listen 8080;
location /replace-body {
OlderNewer