Skip to content

Instantly share code, notes, and snippets.

@hkamran80
hkamran80 / canvas_lms.user.js
Last active August 22, 2020 04:05
Canvas LMS - Keystrokes
// ==UserScript==
// @name Canvas LMS - Keystrokes
// @namespace https://hkamran.com
// @version 1.0.1
// @description Snippets for the Canvas LMS
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/8f0778b0f5379305674742682cb17b5e/raw/canvas_lms.user.js
// @updateUrl https://gist.github.com/hkamran80/8f0778b0f5379305674742682cb17b5e/raw/canvas_lms.user.js
// @match https://*.instructure.com/courses/*
// @grant none
@hkamran80
hkamran80 / fueled.user.js
Last active August 22, 2020 04:05
FuelEd Brightspace Keystroke
// ==UserScript==
// @name FuelEd Keystroke
// @namespace https://hkamran.com
// @version 1.0.1
// @description Keystroke for FuelEd
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/2a7676a816564832588fde7b43516eba/raw/fueled.user.js
// @updateUrl https://gist.github.com/hkamran80/2a7676a816564832588fde7b43516eba/raw/fueled.user.js
// @match https://fueled.brightspace.com/*
// @grant none
@hkamran80
hkamran80 / fanfiction.user.js
Last active August 22, 2020 04:07
FanFiction.net - Keystrokes
// ==UserScript==
// @name FanFiction.net - Keystrokes
// @namespace https://hkamran.com
// @version 1.0.4
// @description Keystrokes for FanFiction.net
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/b78ba189f0319efccaa534952f66ceb0/raw/fanfiction.user.js
// @updateUrl https://gist.github.com/hkamran80/b78ba189f0319efccaa534952f66ceb0/raw/fanfiction.user.js
// @match https://www.fanfiction.net/s/*
// @grant none
# .IO Games Blocklist by H. Kamran (@hkamran80)
# License: GPLv3
# Contact: hkamran [at] unisontech.org
agar.io
diep.io
mope.io
surviv.io
doblons.io
deeeep.io
@hkamran80
hkamran80 / full_play.js
Last active February 25, 2020 19:51
Full Player for Gameinc.io
// ==UserScript==
// @name Gameinc.io Full Player
// @namespace hkamran80
// @version 1.0
// @description Full play bot for Gameinc.io
// @author H. Kamran
// @match http://gameinc.io/?use_fp_mode=true
// @grant none
// ==/UserScript==
@hkamran80
hkamran80 / autotyper.js
Last active February 26, 2020 18:13
Gameinc.io Autotyper
// ==UserScript==
// @name Gameinc Autotyper
// @namespace http://gameinc.io
// @version 1.1
// @description Make money!
// @author H. Kamran
// @match http*://gameinc.io/
// @grant none
// ==/UserScript==
@hkamran80
hkamran80 / search.py
Created September 11, 2019 04:12
Simple Google Search in Python
from bs4 import BeautifulSoup
import requests
url = "https://google.com/search?q=python"
headers = {"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15"}
r = requests.get(url, headers=headers)
print(r.status_code)
page = BeautifulSoup(r.content, "html.parser")
@hkamran80
hkamran80 / useful_regularexpressions
Created June 28, 2019 03:22
Useful regular expressions
\#.* = Remove all comments (Python)
@hkamran80
hkamran80 / anagram.py
Created January 1, 2019 18:49
Anagram Finder
"""
Anagram
Contributors:
:: H. Kamran [@hkamran80] (author)
Version: 0.0.1
Last Updated: 2019-01-01, @hkamran80
"""
import requests
@hkamran80
hkamran80 / googlelogin_example.py
Last active May 24, 2018 00:19
googlesession_example.py
import googlelogin, getpass
username = "{your_google_email_here}"
password = getpass.getpass()
session = googlelogin.GoogleSession(username, password)
# Will return nothing
session.get("https://plus.google.com")
# Returns the content of the site