Skip to content

Instantly share code, notes, and snippets.

View hmidani-abdelilah's full-sized avatar

hmidani abdelilah hmidani-abdelilah

View GitHub Profile
@hmidani-abdelilah
hmidani-abdelilah / install_lamp_18.sh
Created July 16, 2019 13:50 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 18.04 - PHP development (php 7.2, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 18.04 dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
@hmidani-abdelilah
hmidani-abdelilah / install.sh
Created December 17, 2019 10:53 — forked from ziadoz/install.sh
Install Chrome, ChromeDriver and Selenium on Ubuntu 16.04
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@hmidani-abdelilah
hmidani-abdelilah / outline-server-setup.md
Created February 27, 2020 09:05 — forked from okeehou/outline-server-setup.md
How to setup an Outline VPN Server on Ubuntu 16.04

How to setup an Outline VPN Server on Ubuntu 16.04 Server

This guide will show you how to install Outline Server on an Ubuntu 16.04 Server, use Outline Manager for Windows and connect to your Outline Server on Windows and Anroid.

Install Outline Manager

Outline Manager supports Windows, macOS and Linux.

Outline Manager for Windows

@hmidani-abdelilah
hmidani-abdelilah / ubuntu-hardening.md
Created March 29, 2020 22:19 — forked from lokhman/ubuntu-hardening.md
List of things for hardening Ubuntu

System Updates

http://bookofzeus.com/harden-ubuntu/initial-setup/system-updates/

Keeping the system updated is vital before starting anything on your system. This will prevent people to use known vulnerabilities to enter in your system.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoremove
sudo apt-get autoclean
sudo su -
cat >/etc/apt/sources.list.d/webupd8team-java.list<< EOF
deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main
EOF
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
apt-get update
apt-get install oracle-java8-installer
java -version
@hmidani-abdelilah
hmidani-abdelilah / facebok ip list
Created July 14, 2020 21:03 — forked from Whitexp/facebok ip list
facebook ip list
31.13.24.0/21
31.13.64.0/19
31.13.64.0/24
31.13.69.0/24
31.13.70.0/24
31.13.71.0/24
31.13.72.0/24
31.13.73.0/24
31.13.75.0/24
31.13.76.0/24
@hmidani-abdelilah
hmidani-abdelilah / gnu_linux_links.txt
Created July 26, 2020 21:58 — forked from abderraouf-adjal/gnu_linux_links.txt
روابط مفيدة حول جنو/لينكس
@hmidani-abdelilah
hmidani-abdelilah / recreate_udev_net.txt
Created July 30, 2020 00:25 — forked from hernad/recreate_udev_net.txt
recreate ubuntu udev persistent network rules - udevadm trigger
vagrant@lucid64:~$ sudo rm /etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo udevadm trigger
vagrant@lucid64:~$ sudo ls /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules
vagrant@lucid64:~$ sudo cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
Serial Keys:
FU512-2DG1H-M85QZ-U7Z5T-PY8ZD
CU3MA-2LG1N-48EGQ-9GNGZ-QG0UD
GV7N2-DQZ00-4897Y-27ZNX-NV0TD
YZ718-4REEQ-08DHQ-JNYQC-ZQRD0
GZ3N0-6CX0L-H80UP-FPM59-NKAD4
YY31H-6EYEJ-480VZ-VXXZC-QF2E0
ZG51K-25FE1-H81ZP-95XGT-WV2C0
VG30H-2AX11-H88FQ-CQXGZ-M6AY4
@hmidani-abdelilah
hmidani-abdelilah / 9Y1iNFZYgTbLq.md
Created August 4, 2020 09:40 — forked from anonymous/9Y1iNFZYgTbLq.md
[TODAY FREE] okdo software all converting products bundle v4 9 0