Skip to content

Instantly share code, notes, and snippets.

@GShwartz
GShwartz / install_LEMP.sh
Created February 11, 2020 19:34
Auto basic LEMP installation script for Ubuntu 18.04 (nginx, MySql, PHP7.3)
#!/bin/bash
######################################################
# AUTO LEMP INSTALLATION #
# Written by Gil Shwartz #
# gilshwartzdjgs@gmail.com #
######################################################
clear
echo "#######################################################"
if (( $EUID != 0 )); then
echo
@GShwartz
GShwartz / install_LAMP.sh
Created February 11, 2020 19:37
Auto basic LAMP installation for Ubuntu 18.04 (Apache2, MySql, PHP7.3)
#!/bin/bash
######################################################
# AUTO LAMP INSTALLATION #
# Written by Gil Shwartz #
# gilshwartzdjgs@gmail.com #
######################################################
clear
echo "#######################################################"
if (( $EUID != 0 )); then
echo "[!] This script requires root privileges in order"
@GShwartz
GShwartz / RPS.py
Created February 11, 2020 19:46
Rock Paper Sccissors with Python
from termcolor import colored
import sys
import random
import time
class rps():
def __init__(self):
@GShwartz
GShwartz / url2ipondesktop.py
Created February 11, 2020 19:49
URL2IPonDesktop
################################################################################
# This program takes a URL from the user, Translates it to an IP address and #
# saves the data on the user's Desktop by the user's filename choice. #
# Coded By Gil Shwartz #
################################################################################
import socket
import sys
import os
from termcolor import colored