This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################### | |
# written by freccia # | |
# 29.06.2017 # | |
# Disables ipv6 on OS X # | |
######################### | |
# This script checks for interfaces actually up | |
# then it disables ipv6 on these |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################## | |
# written by freccia # | |
# 22.06.2017 # | |
######################## | |
# Make sure only root can run our script | |
if [ "$(id -u)" != "0" ]; then | |
echo "This script must be run as root" 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
################################################################################### | |
## Create a pwpolicy XML file based upon variables and options included below. | |
## Policy is applied and then file gets deleted. | |
## Use "sudo pwpolicy -u <user> -getaccountpolicies" | |
## to see it, and "sudo pwpolicy -u <user> -clearaccountpolicies" to clear it. | |
## | |
## Tested on: OS X 10.10 10.11 10.12 | |
#################################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
DRIVE="/dev/disk2" | |
BLOCK_SIZE="512" | |
N_BLOCKS="100" | |
dd if=$DRIVE bs=$BLOCK_SIZE count=$N_BLOCKS | hexdump -C |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This script is tested on OS X (10.12.6) | |
# but is likely to work on Linux | |
RED="\033[1;31m" | |
GREEN="\033[1;32m" | |
ENDC="\033[0m" | |
# STABLE RELEASE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Created by freccia | |
# july 2017 | |
# | |
# Make sure you are root | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root." 1>&2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
RED='\033[1;31m' | |
BLUE='\033[1;34m' | |
YELLOW='\033[1;33m' | |
ENDC='\033[0m' | |
echo -e $RED "This is such a powerful tool, please be careful using it." $ENDC | |
read a | |
echo -e $BLUE "As with great powers comes great responsibilities..." $ENDC |