Skip to content

Instantly share code, notes, and snippets.

@arainho
arainho / config.fish
Created May 29, 2018 11:23
Fish Shell - User initilization file
set -g fish_user_paths "/usr/local/sbin" $fish_user_paths
set -g fish_user_paths "$HOME/bin" $fish_user_paths
set -e GPG_AGENT_INFO
set -e SSH_AGENT_PID
set -x GPG_TTY (tty)
set -x SSH_AUTH_SOCK ~/.gnupg/S.gpg-agent.ssh
set LC_CTYPE en_US.UTF-8
set LC_ALL en_US.UTF-8

Keybase proof

I hereby claim:

  • I am arainho on github.
  • I am arainho (https://keybase.io/arainho) on keybase.
  • I have a public key ASBj2D8_SB1m4p6-ZeMiGJAaoBbCSW7CNEQ14Xgvb6X9LAo

To claim this, I am signing this object:

@arainho
arainho / install_docker.sh
Last active July 13, 2020 13:17
install docker - debian
#!/usr/bin/env bash
# Setup docker and docker-compose ( no prompts )
### Uninstall old versions ###################################################
sudo apt-get -y remove docker docker-engine docker.io containerd runc
### SET UP THE REPOSITORY ###################################################
# Update the apt package index
@arainho
arainho / zoom_uninstall_macos.sh
Last active January 26, 2024 11:46
uninstall zoom.us and disable nasty features
#!/usr/bin/env bash
# sources
https://drive.google.com/drive/folders/1MP0cNLyJjzPLNrvNDCZv9hRuif091f0c
https://apple.stackexchange.com/questions/358651/unable-to-completely-uninstall-zoom-meeting-app
https://medium.com/bugbountywriteup/zoom-zero-day-4-million-webcams-maybe-an-rce-just-get-them-to-visit-your-website-ac75c83f4ef5
echo Stopping Zoom...
pkill "zoom.us"
#!/usr/bin/env bash
SUDO=/usr/bin/sudo
BREW=/usr/local/bin/brew
# prerequisites
# install macos command line tools
CLT_DIR=`xcode-select -p`
RV=$?
if ! [ $RV -eq '0' ]
@arainho
arainho / mdm_check.sh
Last active April 18, 2024 01:49
Check whether DEP is present and MDM enrollment is user-approved.
#!/usr/bin/env bash
# Check if a machine was enrolled via DEP (10.13+)
# Show whether a machine has a device enrollment profile (DEP) present (10.13.0+),
# and if the MDM enrollment is user approved (10.13.4+)
/usr/bin/profiles status -type enrollment
# Checking for a DEP profile on macOS
# Display the DEP profile for a macOS device in 10.13 and above:
sudo /usr/bin/profiles show -type enrollment
@arainho
arainho / setup-interlock.sh
Last active March 24, 2020 00:51
Setup interlock on usbarmory debian image
#!/usb/bin/env bash
# Setup interlock on 'usbarmory-debian-base_image'
# INTERLOCK - file encryption front end
INTERLOCK_REPO_TAG="v2019.01.30" # use this tag for signal support
# add andrea (inversepath) gpg key
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 73C9E98B25B61D15
wget http://keys.inversepath.com/gpg-andrea.asc -O gpg-andrea.asc
@arainho
arainho / pihole_recursive_dns.sh
Last active January 23, 2023 16:44
Pi-hole as All-Around DNS Solution - raspbian little
#!/usr/bin/env bash
## Setting up Pi-hole as a recursive DNS server solution¶
## https://docs.pi-hole.net/guides/unbound/
## 1. The first thing you need to do is to install the recursive DNS resolver:
sudo apt update
sudo apt -y install unbound
## 2. Important: Download the current root hints file
@arainho
arainho / pwnagotchi_install.sh
Last active March 28, 2024 18:08
install pwnagotchi on rpi4
#!/usr/bin/env bash
# install pwnagotchi on rpi4
WIFI_DEV="wlan1"
AUTO_MODE=true
DEBUG=false
PWN_GRID=false
PWN_GRID_REPORT=false
HOME_NETWORK="YourHomeNetworkMaybe"
@arainho
arainho / macoc_fortress_debug.sh
Last active March 28, 2020 00:50
macOS-Fortress debug script
#!/usr/bin/env bash
echo ''
echo -n "blackhole ... "
export http_proxy=""
if curl -s --head http://localhost:8119/ | head -n1 | grep -E "(200 OK)" --color > /dev/null > /dev/null
then
echo "http://localhost:8119 [✅]"
else
echo "[❌]"