Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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==
# .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 / 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
@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 / 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 / google_search.user.js
Last active August 22, 2020 04:06
Google Search - Keystrokes
// ==UserScript==
// @name Google Search - Keystrokes
// @namespace https://hkamran.com
// @version 1.0.1
// @description Keystrokes for Google Search
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/c522d3285557070619af9ce5d7df3442/raw/google_search.user.js
// @updateUrl https://gist.github.com/hkamran80/c522d3285557070619af9ce5d7df3442/raw/google_search.user.js
// @match https://*.google.tld/search
// @grant none
@hkamran80
hkamran80 / xkcd.user.js
Last active October 6, 2020 21:56
XKCD - Keystrokes
// ==UserScript==
// @name XKCD - Keystrokes
// @namespace https://hkamran.com
// @version 1.0.1
// @description Keystrokes for XKCD
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/7746d7c2ba47e9ecdff547600635fd51/raw/xkcd.user.js
// @updateUrl https://gist.github.com/hkamran80/7746d7c2ba47e9ecdff547600635fd51/raw/xkcd.user.js
// @match https://xkcd.com/*
// @grant none
@hkamran80
hkamran80 / ao3.user.js
Last active January 3, 2021 08:59
Keystrokes for AO3
// ==UserScript==
// @name AO3 - Keystrokes
// @namespace https://hkamran.com
// @version 1.0.3
// @description Keystrokes for AO3
// @author H. Kamran
// @downloadUrl https://gist.github.com/hkamran80/a9bc0a6c13d1137d150980d425d7d025/raw/ao3.user.js
// @updateUrl https://gist.github.com/hkamran80/a9bc0a6c13d1137d150980d425d7d025/raw/ao3.user.js
// @match http*://archiveofourown.org/works/*
// @match http*://archiveofourown.org/collections/*