Skip to content

Instantly share code, notes, and snippets.

View 0xmachos's full-sized avatar

Mikey 0xmachos

View GitHub Profile
@0xmachos
0xmachos / commands.md
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 com.apple.Safari Safari https://github-production-release-asset-2e65be.s3.amazonaws.com/... NULL NULL 0 NULL https://github.com/br1sk/brisk/releases NULL
@0xmachos
0xmachos / multi_pihole.md
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
    • 192.168.1.4
    • http://pi.hole0/admin/
  • pihole1
    • 192.168.1.5
  • http://pi.hole1/admin/
@0xmachos
0xmachos / install_rbenv.sh
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
FATAL="\\033[1;31mFATAL\\033[0m"
WARNING="\\033[1;33mWARNING\\033[0m"
PASS="\\033[1;32mPASS\\033[0m"
INFO="\\033[1;36mINFO\\033[0m"