Skip to content

Instantly share code, notes, and snippets.

View DelphicOkami's full-sized avatar

Micheal Wilkinson DelphicOkami

View GitHub Profile
@DelphicOkami
DelphicOkami / NewcastleCss
Created June 16, 2020 10:21
Newcastle Jenkins Css
@import url(https://fonts.googleapis.com/css?family=Roboto:400,700,500,300);@import url(https://fonts.googleapis.com/css?family=Roboto+Mono:400,700,500,300);@keyframes a{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes b{0%{opacity:1}50%{opacity:0}to{opacity:1}}[src$="blue.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjMDA5Njg4IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=)}[src$="red.png"]{background-image:url(data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsPSIjRjQ0MzM2IiBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtMmgydjJ6bTAtNGgtMlY3aDJ2NnoiLz48L3N2Zz4=)}[src$="yellow.png
@DelphicOkami
DelphicOkami / file_expander.js
Last active August 10, 2017 10:58
Adds controls for expanding and collapsing all files in github pull requests. Add this to greasemonkey / tampermonkey
// ==UserScript==
// @name Github File collapser
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Micheal Wilkinson
// @match https://github.com/*/*/pull/*/files*
// @grant none
// ==/UserScript==
@DelphicOkami
DelphicOkami / post-commit
Last active June 20, 2017 15:28
lolcommit postcommit for per-commit capture
#!/bin/bash
# This script depends on lolcommits and slack up being installed
# Slackup https://github.com/rkhleics/slackup (pip install slackup)
# Lolcommits https://lolcommits.github.io/
# This file should be in .git/hooks/ and be made executable
exec < /dev/tty
SLACK_CHANNEL="lolcommits"
@DelphicOkami
DelphicOkami / RedirectChecker.php
Last active February 22, 2016 18:49
Checks redirects for urls, returning the final destination
<?php
/* This script is for checking what redirects a url returns,
* only response based redirects are checked (IE: no javascript is checked)
*/
error_reporting(0);
ini_set('allow_url_fopen', 1);
class Response {
protected $responseHeaders;
protected $responseCode;