Skip to content

Instantly share code, notes, and snippets.

View krukru's full-sized avatar

Marko Kruljac krukru

View GitHub Profile
@krukru
krukru / mac_xwindows_x11_xvfb_headless_firefox_howto.md
Created March 30, 2016 13:47 — forked from textarcana/mac_xwindows_x11_xvfb_headless_firefox_howto.md
Headless Selenium on CentOS 6.3 (Mac XWindows / X11 / Xvfb / Headless Firefox / Selenium howto)

XWindows for Headless Selenium

X Wing art by Paul Harckham

How to set up a Headless Selenium Testing environment for CentOS 6.3.

On your CentOS 6.3 host

Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.

git pull --recurse-submodules
git submodule update --remote --recursive
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool
* with the highest weight, unless the pool fails. Weight must be an integer larger than 0.
*
@krukru
krukru / monero
Last active January 4, 2018 19:59
xmr mining
cd ~/work
git clone https://github.com/fireice-uk/xmr-stak.git
cd xmr-stak
brew install hwloc libmicrohttpd gcc openssl cmake
printf "#pragma once\nconstexpr double fDevDonationLevel = 0.0;" > xmrstak/donate-level.hpp
cmake . -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DCUDA_ENABLE=OFF -DOpenCL_ENABLE=OFF
make install
#Address: 463tm7557QqZqzNgEiSWPbSkPBWGJSkhzScZpVA7dnXk1fZNpzTtT47cysAEt4UKsEGQQWdsfHadmCAjMGmSEsJBFUJ8jdA
#pool: europe.monero.hashvault.pro
#ports: 3333 Low-End Hardware (Up to 100 h/s)
@krukru
krukru / sumokoin.txt
Last active January 7, 2018 15:35
sumokoin
paris01.sumokoin.hashvault.pro:3333
Sumoo2t4AkPAJyzmKN57zLaHW7VrYsLVnhv7qKw7zusWhdwJSTZL8mgEyWBSzcHGGuLpT8ExzRjrtPfAAHLfmkY3Ps7vvSMkgDL
@krukru
krukru / itns.txt
Last active January 8, 2018 22:46
Intense coin
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool
* with the highest weight, unless the pool fails. Weight must be an integer larger than 0.
@krukru
krukru / fonero.txt
Created January 13, 2018 12:25
fonero.txt
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool
* with the highest weight, unless the pool fails. Weight must be an integer larger than 0.
@krukru
krukru / dsh.txt
Created January 18, 2018 20:00
dsh.txt
/*
* pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported.
* wallet_address - Your wallet, or pool login.
* pool_password - Can be empty in most cases or "x".
* use_nicehash - Limit the nonce to 3 bytes as required by nicehash.
* use_tls - This option will make us connect using Transport Layer Security.
* tls_fingerprint - Server's SHA256 fingerprint. If this string is non-empty then we will check the server's cert against it.
* pool_weight - Pool weight is a number telling the miner how important the pool is. Miner will mine mostly at the pool
* with the highest weight, unless the pool fails. Weight must be an integer larger than 0.
@krukru
krukru / gist:cebc9fbd724d7fa46114f8cc02e376b0
Created May 11, 2018 15:30 — forked from luckydev/gist:b2a6ebe793aeacf50ff15331fb3b519d
Increate max no of open files limit in Ubuntu 16.04 for Nginx
# maximum capability of system
user@ubuntu:~$ cat /proc/sys/fs/file-max
708444
# available limit
user@ubuntu:~$ ulimit -n
1024
# To increase the available limit to say 200000
user@ubuntu:~$ sudo vim /etc/sysctl.conf
@krukru
krukru / wait-for-healthy.sh
Created July 23, 2018 16:32
Wait until docker container is healthy
#!/usr/bin/env bash
CONTAINER_HEALTH=$(docker inspect --format='{{json .State.Health.Status}}' $1)
if [ -z $CONTAINER_HEALTH ]; then
echo "Container not found"
exit 1
fi;
until test $CONTAINER_HEALTH = "\"healthy\""; do
echo "Waiting..."