This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Restores Google search's links to the subtle light blue colour | |
* that's known everywhere as the default link colour | |
*/ | |
@-moz-document url-prefix("https://www.google.com/") { | |
a { | |
color: #1559b5 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Generates a self-signed localhost certificate. Don't forget to restart the browser | |
# if it doesn't work the first time(certificate caching) | |
sitename=$1 | |
openssl req -config openssl.cnf -x509 -nodes -sha256 -days 365 -newkey rsa:2048 -keyout $sitename.key -out $sitename.crt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Stackoverflow decided to change the navigation bar styling on 14th February 2017. | |
* This userstyle attempts to restore the old navigation bar feel with some of my | |
* subjective styling preferences thrown in | |
* | |
* Userstyles: https://userstyles.org/ | |
* Relevant: http://meta.stackoverflow.com/questions/343653/top-navigation-update | |
* Original: https://userstyles.org/styles/138640/stack-black-slim-header | |
* | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pre { | |
font-family: Consolas !important; | |
} | |
p { | |
font-family: Helvetica Neue !important; | |
} | |
.graf--li { | |
margin: 0px !important; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# coding: utf-8 | |
""" LightShot Image Extractor | |
Date: 17th December 2016 | |
Author: nkmathew <[email protected]> | |
Script for scraping the jpg link from a LightShot screenshot page to be used for | |
hotlinking |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script for cloning repos from GitHub using a username/repo-name combo | |
# | |
# e.g. cloning last 10 commits: | |
# | |
# clone nkmathew/yasi-sexp-indenter 10 | |
# | |
if [[ -n $1 ]]; then | |
if [[ $1 =~ ^http[s]*:// ]]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gist Jumper | |
// @description Enables you to go to a users' gist page using the normal 'gist' link | |
// @author nkmathew | |
// @namespace http://nkmathew.net | |
// @include https://github.com/* | |
// @version 0.1.0 | |
// @grant GM_getValue | |
// @grant GM_setValue | |
// ==/UserScript== |