Skip to content

Instantly share code, notes, and snippets.

View yazdipour's full-sized avatar
:shipit:
Make Us Great Again

Shahriar yazdipour

:shipit:
Make Us Great Again
View GitHub Profile
#src https://8192.one/post/ssh_login_notification_withtelegram/
USERID="<Enter_the_user_id_of_the_recipient>"
KEY="<The_key_of_your_telegram_bot>"
TIMEOUT="10"
URL="https://api.telegram.org/bot$KEY/sendMessage"
DATE_EXEC="$(date "+%d %b %Y %H:%M")" #Collect date & time.
TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt' #Create a temporary file to keep data in.
if [ -n "$SSH_CLIENT" ] && [ -z "$TMUX" ]; then #Trigger
IP=$(echo $SSH_CLIENT | awk '{print $1}') #Get Client IP address.
$ curl -s "https://crawler.ninja/files/security-txt-values.txt" | grep -i "hiring: http" | sed 's/^#//g' | awk '{print $2}'
https://www.tumblr.com/jobs
https://kariera.shoptet.cz/
https://g.co/SecurityPrivacyEngJobs
https://www.shopify.com/careers
https://solarwinds.jobs
https://www.chcidozootu.cz/it-devel/
https://careerssearch.bbc.co.uk/jobs/search
https://www.npmjs.com/jobs
https://grab.careers/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yazdipour
yazdipour / mit_downloader.py
Created December 15, 2019 08:16
ocw.mit.edu download link finder
import sys
import urllib
import os
from HTMLParser import HTMLParser
from pathlib import Path
import time
base_url = 'http://ocw.mit.edu'
lec_url_list = []
video_url_list = []
@yazdipour
yazdipour / mqtt.py
Created March 27, 2020 22:58
Python MQTT Pub/Sub
import paho.mqtt.client as mqtt #pip install paho.mqtt
client = mqtt.Client()
client.username_pw_set(username="testuser",password="testpass")
client.connect("192.168.0.101", 1883)
# PUBLISH
client.publish("Topic", "hello server")
# SUBSCRIBE
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"existingStorageAccountResourceGroupName": {
"type": "string",
"metadata": {
"description": "Resource group for existing storage account"
}
},
Universities  Times Higher Education Ranking (2021)  Shanghai Jiao Tong University Ranking (2020)  TopUniversities Ranking (2021)  U.S. News & World Report Ranking (2021) 
Harvard University 3 1 3 1
Massachusetts Institute of Technology (MIT) 5 4 1 2
Stanford University 2 2 2 3
University of California, Berkeley 7 5 30 4
Columbia University 17 7 19 6
California Institute of Technology - Caltech 4 8 4 7
University of Washington 29 16 72 8
Johns Hopkins University 12 15 25 10
Yale University 8 11 17 11