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
| class Colors: | |
| """ ANSI color codes """ | |
| BLACK = "\033[0;30m" | |
| RED = "\033[0;31m" | |
| GREEN = "\033[0;32m" | |
| BROWN = "\033[0;33m" | |
| BLUE = "\033[0;34m" | |
| PURPLE = "\033[0;35m" | |
| CYAN = "\033[0;36m" | |
| LIGHT_GRAY = "\033[0;37m" |
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
| ########################################################### | |
| # TOOL NAME # | |
| # SMALL DISC OF THE TOOL # | |
| ########################################################### | |
| # -- Op-System: # | |
| # -- Envirments : # | |
| # -- Version: v # | |
| # -- Developer: Sofiane Hamlaoui # | |
| # -- Thanks: No One # | |
| ########################################################### |
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
| b='\033[1m' | |
| u='\033[4m' | |
| bl='\E[30m' | |
| r='\E[31m' | |
| g='\E[32m' | |
| y='\E[33m' | |
| bu='\E[34m' | |
| m='\E[35m' | |
| c='\E[36m' | |
| w='\E[37m' |
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
| def checkconnect(): | |
| url='http://www.google.com/' | |
| try: | |
| _ = requests.get(url, timeout=2) | |
| return True | |
| except requests.ConnectionError: | |
| exit(" \033[1;33;40m-[!]- YOU NEED INTERNET CONNECTION CONTINUE -[!]-\033[0m") | |
| return False |
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
| function checkroot { | |
| showlogo && sleep 1 | |
| if [[ $(id -u) = 0 ]]; then | |
| echo -e " Checking For ROOT: ${g}PASSED${endc}" | |
| else | |
| echo -e " Checking For ROOT: ${r}FAILED${endc} | |
| ${y}This Script Needs To Run As ROOT${endc}" | |
| echo -e " ${b}Lockdoor Installer${enda} Will Now Exit" | |
| echo | |
| sleep 1 |
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
| function apt { | |
| which apt > /dev/null 2>&1 | |
| if [ "$?" -eq "0" ]; then | |
| apt install THEPACKAGES | |
| } | |
| function pacman { | |
| which pacman > /dev/null 2>&1 | |
| if [ "$?" -eq "0" ]; then | |
| pacman -S THEPACKAGES | |
| } |
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
| if [[ $(uname -m ) = x86_64 ]]; then | |
| COMMAND | |
| else | |
| COMMAND | |
| fi | |
| } |
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
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac |
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
| find . -type d -name .git -exec sh -c "cd \"{}\"/../ && pwd && git pull origin master" \; |
OlderNewer