Skip to content

Instantly share code, notes, and snippets.

View 0xmachos's full-sized avatar

Mikey 0xmachos

View GitHub Profile
0xmachos /
Last active December 21, 2021 16:28
SSH Cheatsheet
sudo sshd -t
sudo systemctl restart sshd
diff --git a/Lockdown b/Lockdown
index 97854f1..9f7b027 100755
--- a/Lockdown
+++ b/Lockdown
@@ -544,7 +544,7 @@ function disable_firewall_downloaded_signed {
function disable_ipv6 {
+ set -x
LSQuarantineEventIdentifier LSQuarantineTimeStamp LSQuarantineAgentBundleIdentifier LSQuarantineAgentName LSQuarantineDataURLString LSQuarantineSenderName LSQuarantineSenderAddress LSQuarantineTypeNumber LSQuarantineOriginTitle LSQuarantineOriginURLString LSQuarantineOriginAlias
B555DB5F-D82A-408B-B9A6-D4F4012FD520 570726604.559004 Safari NULL NULL 0 NULL NULL
0xmachos /
Created June 15, 2018 12:44
How to configure two Pi-holes on the same network

Multiple Pi-holes

In this scenario we are configuring two Pi-holes running on the same network. pihole0 is the main DNS server while pihole1 is the secondary.

  • pihole0
    • http://pi.hole0/admin/
  • pihole1
  • http://pi.hole1/admin/
0xmachos /
Created March 7, 2018 10:17
Install the Ruby version manager rbenv and ruby-build to allow you to install Ruby versions
#!/usr/bin/env bash
set -eo pipefail
# -e exit if any command returns non-zero status code
# -o pipefail force pipelines to fail on first non-zero status code