Skip to content

Instantly share code, notes, and snippets.

View haroonabbasi's full-sized avatar
💭
always looking out for new tools new libraries

Haroon Abbasi haroonabbasi

💭
always looking out for new tools new libraries
  • Lahore
View GitHub Profile
@haroonabbasi
haroonabbasi / index.py
Created January 13, 2023 16:05
Let's see wifi password using python
# https://dev.to/ashishpandey/lets-see-wifi-password-using-python-3kg3?utm_source=hackertab.dev&utm_medium=post&utm_campaign=home
import subprocess
network_name = "Get your own wifi" #your_wifi_network_name
result = subprocess.run(['netsh', 'wlan', 'show', 'profile', network_name, 'key=clear'], stdout=subprocess.PIPE)
output = result.stdout.decode()
for line in output.split('\n'):
Verifying my Blockstack ID is secured with the address 1GHuDxjhFSzYtadAcJP51Q7x7wNNr6XqcL https://explorer.blockstack.org/address/1GHuDxjhFSzYtadAcJP51Q7x7wNNr6XqcL
@haroonabbasi
haroonabbasi / .bash_prfile
Created November 23, 2018 13:51
switch between different version of java
alias j9="export JAVA_HOME=`/usr/libexec/java_home -v 9`; java -version"
alias j8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`; java -version"
alias j7="export JAVA_HOME=`/usr/libexec/java_home -v 1.7`; java -version"
@haroonabbasi
haroonabbasi / ie.js
Created November 20, 2018 10:43
Detect Browser Type : Internet Explorer
/* Sample function that returns boolean in case the browser is Internet Explorer*/
function isIE() {
ua = navigator.userAgent;
/* MSIE used to detect old browsers and Trident used to newer ones*/
var is_ie = ua.indexOf("MSIE ") > -1 || ua.indexOf("Trident/") > -1;
return is_ie;
}
/* Create an alert to show if the browser is IE or not */
if (isIE()){
@haroonabbasi
haroonabbasi / nginx.conf
Created October 26, 2018 10:26
Nginx and SSL
upstream rest_node_js {
server 127.0.0.1:8000;
}
server {
listen 443 ssl;
server_name findmybusnj.com;
ssl on;
gzip on;
@haroonabbasi
haroonabbasi / gist:f49fbb74ede23047025653f28f2eaad2
Created April 9, 2018 10:37
Remote debugging iOS Safari on Windows
https://github.com/google/ios-webkit-debug-proxy/
https://stackoverflow.com/questions/20408110/debug-ipad-safari-with-a-pc?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
https://github.com/RemoteDebug/remotedebug-ios-webkit-adapter/issues/79
@haroonabbasi
haroonabbasi / gist:9346b4e2620870ea0a2b89544ba07aad
Created November 21, 2017 09:30
remove empty lines via [Regular Expression]
^(?:[\t ]*(?:\r?\n|\r))+
npm outdated --depth=0 | grep -v Package | awk '{print $1}' | xargs -I% npm install %@latest --save
@haroonabbasi
haroonabbasi / list.md
Last active November 21, 2017 09:39
Awesome List of Open Source Admin Template
@haroonabbasi
haroonabbasi / appstools.md
Last active September 22, 2017 14:47
Development Tools/Apps online/offline