This file contains 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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
mkdir -p /media/waleed/storage/backups/home/waleed | |
mkdir -p /media/waleed/storage/backups/www | |
mkdir -p /media/waleed/storage/backups/etc |
This file contains 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
import poplib, getpass, email | |
import re | |
Mailbox = poplib.POP3_SSL('mail.privateemail.com') | |
Mailbox.user('[email protected]') | |
Mailbox.pass_('pass') | |
emails = [] | |
tries = 0 | |
fail_tries = 300 |
This file contains 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
import sys | |
import json | |
import time | |
import datetime | |
import subprocess | |
import threading | |
from urllib.request import urlopen | |
threads = [] | |
hits = 0 |
This file contains 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/python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import csv | |
import sys | |
import time | |
import socket | |
import datetime |
This file contains 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/python3 | |
# -*- coding: utf-8 -*- | |
import socket, pymysql.cursors, time, sys | |
def internet(host="8.8.8.8", port=53, timeout=3): | |
try: | |
socket.setdefaulttimeout(timeout) | |
socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect((host,port)) | |
return True |
This file contains 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
echo "DOTA Servers PING Test" | |
echo "----------------------" | |
echo "Region | Location | IP Address | Avg. ping" | |
s_ping=$(ping -c5 192.69.96.1 | tail -1| awk '{print $4}' | cut -d '/' -f 2) | |
echo "US WEST | Washington, USA | 192.69.96.1 | $s_ping" | |
s_ping=$(ping -c5 208.78.164.1 | tail -1| awk '{print $4}' | cut -d '/' -f 2) | |
echo "US EAST | Sterling, USA | 208.78.164.1 | $s_ping" |
This file contains 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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
else | |
#Update and Upgrade | |
echo "Updating and Upgrading" | |
apt-get update && sudo apt-get upgrade -y |
This file contains 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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
else | |
#Update and Upgrade | |
echo "Updating and Upgrading" | |
apt-get update && sudo apt-get upgrade -y |
This file contains 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
Loading composer repositories with package information | |
Updating dependencies (including require-dev) | |
Your requirements could not be resolved to an installable set of packages. | |
Problem 1 | |
- laravel/framework v5.2.9 requires symfony/http-foundation 2.8.*|3.0.* -> satisfiable by symfony/http-foundation[2.8.x-dev, 3.0.x-dev] but these conflict with your requirements or minimum-stability. | |
- laravel/framework v5.2.8 requires symfony/http-foundation 2.8.*|3.0.* -> satisfiable by symfony/http-foundation[2.8.x-dev, 3.0.x-dev] but these conflict with your requirements or minimum-stability. | |
- laravel/framework v5.2.7 requires symfony/http-foundation 2.8.*|3.0.* -> satisfiable by symfony/http-foundation[2.8.x-dev, 3.0.x-dev] but these conflict with your requirements or minimum-stability. | |
- laravel/framework v5.2.6 requires symfony/http-foundation 2.8.*|3.0.* -> satisfiable by symfony/http-foundation[2.8.x-dev, 3.0.x-dev] but these conflict with your requirements or minimum-stability. | |
- laravel/frame |
This file contains 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 | |
USER="user" | |
PASSWORD="password" | |
OUTPUT="/home/backup_directory" | |
rm -rf "$OUTPUT"/*.gz > /dev/null 2>&1 | |
databases=`mysql --user=$USER --password=$PASSWORD -e "SHOW DATABASES;" | tr -d "| " | grep -v Database` |
NewerOlder