Bored? Read some articles!
Display hashrate and ETH balance to your macOS status bar
If you are using Gminer app for mine ETH and 2miners as your mining pool, you can use the scripts I created to display your hashrate and ETH balance. Source code (github) https://github.com/jmcausing/xbar-2miners-gminer miner.2s.sh file will refresh every 2 seconds to...
SSH iptables redirect
Our goal here is to manipulate and play an iptables redirection for SSH connection. user SSH to a container "wp1" --> Server 1 catches the connection ---> Server 1 redirects the SSH traffic to Server 2 ---> Server redirects SSH traffic to Server 3 lxc container called...
LB to LXC using reverse proxy and LXD config device (local machines)
Our goal is to create a server (Load Balancer) and its IP (just hosts file for localhost testing) is linked to the domains wp1.causingdesigns.net and wp2.causingdesigns.net then it will pass the traffic to LXD server using a reverse proxy then LXD server will forward...
Nginx Reverse Proxy + IPTables (part 1)
This is an example of nginx reverse proxy that connects to an LXD server then connects to an LXC container. Server 1 (LB IP address 192.168.50.27) nginx configuration and mytest.com is the localhost Server 2 (LXD IP address 192.168.50.75) Setting up iptables to...
Linux Iptables Cheat Sheet #1
Port forwarding from localhost/loopback iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080 iptables -t nat -I OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 8080 Screenshot below shows that the web server from localhost/loopback is...
Limit user maximum number of processes using limits.conf
This is how to limit the maximum number of processes for a a specific user or groups in linux. Scripts to perform this testing. loop.sh #! /bin/bash x=1 while [ $x -le $1 ] do echo "Running timer.sh $x times"; /home/ubuntu/private/timer.sh $1& x=$(( $x + 1 ))...