Skip to content

Instantly share code, notes, and snippets.

View s-thom's full-sized avatar
💜

Stuart Thomson s-thom

💜
View GitHub Profile
@s-thom
s-thom / github-font-changer.js
Created March 13, 2023 01:21
GitHub font changer userscript
// ==UserScript==
// @name GitHub Font Changer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Change the font used in code blocks on GitHub
// @author Stuart Thomson <https://github.com/s-thom>
// @match https://github.com/*
// @match https://*.github.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com
// @grant none
@s-thom
s-thom / async.d.ts
Created March 25, 2020 02:51
Async function type
type Async<T extends (this: any, ...args: any) => void> =
(this: ThisParameterType<T>, ...params: Parameters<T> ) => Promise<ReturnType<T>>;
@s-thom
s-thom / output.txt
Created August 24, 2019 20:17
npm install standard && npm ls
standard-pkg-list@1.0.0 B:\Repositories\standard-pkg-list
`-- standard@14.0.2
+-- eslint@6.1.0
| +-- @babel/code-frame@7.5.5
| | `-- @babel/highlight@7.5.0
| | +-- chalk@2.4.2 deduped
| | +-- esutils@2.0.3 deduped
| | `-- js-tokens@4.0.0
| +-- ajv@6.10.2
| | +-- fast-deep-equal@2.0.1
@s-thom
s-thom / gist:a705c28e0f254b400218
Last active August 29, 2015 14:19
Get rid of referral spam in analytics

#Add this to your .htaccess file

# Referral spam blocker
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{HTTP_REFERER} (INSERT_REFERER_HERE) [NC]
  RewriteRule .* – [F]
</IfModule>

##Explanation