Skip to content

Instantly share code, notes, and snippets.

View naeemrashid's full-sized avatar
🎯
Focus

Naeem Rashid naeemrashid

🎯
Focus
View GitHub Profile
@naeemrashid
naeemrashid / ProxyProblemExample.java
Created January 3, 2017 06:15 — forked from thomasdarimont/ProxyProblemExample.java
Hack for allowing dedicated proxy settings to be used for URL with http and https protocol handling in JavaFXs Webkit based WebView. Tested with JDK8
package de.tutorials.training.fx.proxy;
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.scene.web.WebEngine;
import javafx.scene.web.WebView;
import javafx.stage.Stage;
import java.net.InetSocketAddress;
@naeemrashid
naeemrashid / UpOrDown.sh
Created February 14, 2017 10:02 — forked from davetromp/UpOrDown.sh
Bash script that checks if a site is up or down and emails notifications
#!/bin/bash
################################################################################
# This script will check to see if a website is up/down by pinging the url
# If there is no response an email wil be send via an external smtp mail server
# If the site status is down an email will be send when the site is up again
# set your check interval here :-) #############################################
interval=3600 # hour
@naeemrashid
naeemrashid / tmux-cheatsheet.markdown
Created September 24, 2018 14:46 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname