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 | |
| # Author: MarcelFox | |
| sudo killall firefox | |
| sudo wget -O firefox.tar.bz2 "https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=pt-BR" | |
| if [ -d /usr/lib/firefox ]; | |
| then | |
| sudo rm -rf /usr/lib/firefox |
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 | |
| # DIGGER by Fox | |
| # Usage: | |
| # digger http://google.com | |
| if [ $# -eq 0 ] | |
| then | |
| printf "Inform the domain: " | |
| read var_domain |
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 | |
| # | |
| # Name: check_vpn | |
| # Version: 1.0 | |
| # By MarcelFox | |
| # COLORS & STYLES: | |
| BOLD='\e[1m' | |
| ITALIC='\e[3m' | |
| NO_STL='\e[0m' |
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
| # flush iptable rules | |
| iptables -F | |
| iptables -t nat -F | |
| iptables -t nat -X | |
| iptables -t mangle -F | |
| iptables -t mangle -X | |
| # Allowing DNS lookups (tcp, udp port 53) | |
| iptables -A OUTPUT -p tcp --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT | |
| iptables -A INPUT -p tcp --dport 53 -m state --state NEW,ESTABLISHED -j ACCEPT |
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
| awk -F\' '$1=="menuentry " || $1=="submenu " {print i++ " : " $2}; /\tmenuentry / {print "\t" i-1">"j++ " : " $2};' /boot/grub/grub.cfg |
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
| clear_branches() { | |
| GIT_DIR=".git" | |
| BRANCH_EXIST=$(git branch | awk '!/\*/ && !/main/ && !/development/ && !/staging/ && !/develop/ && !/master/') | |
| if [[ ! -d "$GIT_DIR" ]]; | |
| then | |
| echo "directory $GIT_DIR not found" | |
| return | |
| fi; |
OlderNewer