Skip to content

Instantly share code, notes, and snippets.

cmdwhoami

Block or report user

Report or block cmdwhoami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cmdwhoami
cmdwhoami / miner_watchdog.service
Created Jul 3, 2019
systemd unit file for miner_watchdog.sh to start service at boot
View miner_watchdog.service
[Unit]
Description=Mining Watchdog
After=network.target
[Service]
ExecStart=/bin/bash -c "/usr/local/bin/mining_watchdog.sh | tee /home/whoami/mining_watchdog.log"
StandardOutput=inherit
StandardError=inherit
Restart=always
User=whoami
@cmdwhoami
cmdwhoami / miner_watchdog.sh
Created Jul 3, 2019
Miner watchdog for Raspberry Pi running Empress.py to automate detection & rebooting of frozen miners
View miner_watchdog.sh
#!/bin/bash
# Miner Watchdog
# Miners Name Hostname
miners[0]="miner01;miner01.local"
miners[1]="miner02;miner02.local"
miners[2]="miner03;miner03.local"
# How often the script checks if rig is frozen (in minutes)
freezeInterval=15
@cmdwhoami
cmdwhoami / twitter_killjunk.js
Created May 24, 2019
disable twitter features
View twitter_killjunk.js
@-moz-document domain("twitter.com") {
[data-component-context="suggest_recap"],
[data-component-context="suggest_who_to_follow"],
[data-component-context="suggest_activity"],
[data-component-context="suggest_activity_tweet"],
[data-component-context="suggest_recycled_tweet_inline"],
[data-component-context="suggest_recycled_tweet"]{
display:none !important;
}
}
@cmdwhoami
cmdwhoami / dnsmasq.conf
Last active Oct 3, 2018
dnsmasq for dual stack SoftEther VPN
View dnsmasq.conf
##################################################################################
# SoftEther VPN server dnsmasq.conf
################################################################################## Interface Settings
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=tap_soft
@cmdwhoami
cmdwhoami / vpnserver.sh (bridge)
Last active Oct 3, 2018
/etc/init.d/vpnserver [SoftEther VPN]
View vpnserver.sh (bridge)
#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SoftEther VPN Server
### END INIT INFO
@cmdwhoami
cmdwhoami / softether_bridge.fw
Last active Oct 6, 2018
v.4 & 6 Firewall Rules For SoftEther Bridge
View softether_bridge.fw
#!/bin/bash
#
#######################################################################
# iptables rules
#######################################################################
#
# Flush current V4 polices
iptables -t nat -F
iptables -t mangle -F
iptables -F
@cmdwhoami
cmdwhoami / killswitch.pf.command
Last active Aug 7, 2018
VPN Kill Switch For Mac OS | Terminal User Interface | Requires killswitch.pf.conf
View killswitch.pf.command
#! /bin/bash
echo off
defgw=$(route get 0.0.0.0 2>/dev/null | awk '/gateway: / {print $2}';)
def_int=$(route get 0.0.0.0 2>/dev/null | awk '/interface: / {print $2}';)
clear
:start
clear
@cmdwhoami
cmdwhoami / iptables_killswitch.sh
Last active Oct 3, 2018
VPN Kill Switch | ChromeOS or Linux | .sh or command line syntax
View iptables_killswitch.sh
#! /bin/bash
#########################################################################
##### VPN Kill Switch Linux
#########################################################################
#
# Set Varibles
vpn_ip=55.55.55.55
vpn_interface=tun0
#
sudo iptables -F
@cmdwhoami
cmdwhoami / killswitch.pf.config
Last active Aug 7, 2018
PF Firewall Rules For MacOS | VPN Kill Switch | Use with killswitch.pf.command | mv killswitch.pf.conf ~/Documents/
View killswitch.pf.config
int_en1 = "en0"
vpn_utun1 = "tap0"
vpn_ip = "55.55.55.55"
set block-policy drop
set ruleset-optimization basic
set skip on lo0
block all
block out inet6
@cmdwhoami
cmdwhoami / killswitch.command
Last active Aug 7, 2018
VPN Kill Switch For MacOS |Terminal User Interface | Route(8)
View killswitch.command
#! /bin/bash
echo off
defgw=$(route get 0.0.0.0 2>/dev/null | awk '/gateway: / {print $2}';)
def_int=$(route get 0.0.0.0 2>/dev/null | awk '/interface: / {print $2}';)
clear
:start
clear
You can’t perform that action at this time.