Skip to content

Instantly share code, notes, and snippets.

View John-Almardeny's full-sized avatar

Yahya John-Almardeny

  • Ireland
View GitHub Profile
@John-Almardeny
John-Almardeny / noti.sh
Last active December 7, 2018 06:55
Create a Notification With Sound with a Given Message and Time in Linux-Like OS
#!/bin/sh
# https://gist.github.com/John-Almardeny/04fb95eeb969aa46f031457c7815b07d
# Create a Notification With Sound with a Given Message and Time
# The Downloaded Sound is from Notification Sounds https://notificationsounds.com/
MSSG="$1"
TIME="$2"
# install wget if not found
@John-Almardeny
John-Almardeny / DesktopBrowserUA.java
Last active June 30, 2018 19:27
The User Agents of the Most Popular Desktop Browsers, Namely: Chrome, Firefox, Opera, Internet_Explorer, Safari and Edge.
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.NoSuchElementException;
/**
* 6505 User Agents of the Most Popular Desktop Browsers,
* Namely: Chrome, Firefox, Opera, Internet_Explorer, Safari and Edge.
* info reference from useragentstring.com
@John-Almardeny
John-Almardeny / Course.java
Last active February 23, 2018 11:45
All Courses in Waterford Institute of Technology
/**
* All courses in WIT 2018
* @author Yahya Almardeny
* @version 22/02/2018
* https://gist.github.com/John-Almardeny/54a4fcc43f8358ef88c9d2288a8a9cdf
*/
public enum Course {
Bachelor_Hons_of_Business,
BA_Hons_in_Accounting,
@John-Almardeny
John-Almardeny / create_repo.sh
Last active June 15, 2018 01:47
Create Github repository locally and remotely at the same time, also push the local one to the remote repo.
#!/bin/bash
#https://gist.github.com/John-Almardeny/b595dacdc31e84012045486b39f69236
#Create Github repository locally and remotely at the same time
#also push the local one to the remote repo.
#first check if curl is installed
#if not -> intstall it
if [ ! $(which curl) ];then
echo -e "\n*****************************************"
@John-Almardeny
John-Almardeny / git_setup.sh
Last active January 27, 2018 18:33
Easy Github Setup from scratch on Ubuntu for first time
#!/bin/bash
#https://gist.github.com/John-Almardeny/e409174137f69669843a2d001e7066da
#Set up Github from scratch on Ubuntu for first time
# if Git is not installed -> go head and install it
if [ ! $(which git) ];then
echo -e "\n*****************************************"
echo "git not found, starting to install it..."
echo -e "*****************************************\n"