Skip to content

Instantly share code, notes, and snippets.

View tterb's full-sized avatar
Building stuff

Brett Stevenson tterb

Building stuff
View GitHub Profile
@tterb
tterb / GitHubDownloads.md
Last active June 5, 2024 00:05
Downloads README Badge

Github All Releases

[![Github All Releases](https://img.shields.io/github/downloads/username/repo/total.svg)](https://github.com/username/repo/releases)
#!/usr/bin/python
# Returns the common lines between each of the 'n' specified files
python -c 'import sys;print " ".join(sorted(set.intersection(*[set(open(a).readl
ines()) for a in sys.argv[1:]])))'
@tterb
tterb / Gulpfile.js
Created June 25, 2017 21:20
The Gulpfile for my website
var gulp = require('gulp'),
shell = require('gulp-shell'),
minifyHTML = require('gulp-minify-html'),
sass = require('gulp-sass'),
importCss = require('gulp-import-css'),
autoprefixer = require('gulp-autoprefixer'),
uncss = require('gulp-uncss'),
minifyCss = require('gulp-minify-css'),
rename = require('gulp-rename'),
glob = require('glob'),
@tterb
tterb / frontmatter.yml
Last active February 24, 2018 04:19
A default frontmatter template for https://github.com/JonSn0w/Hyde
---
title:
desc:
date:
options:
image:
categories:
tags:
priority:
---
@tterb
tterb / markdown-github-buttons.md
Last active April 11, 2025 09:36
Add github buttons to your README.md

Watch on GitHub Star on GitHub Tweet

@tterb
tterb / README-badges.md
Last active May 9, 2025 20:53
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@tterb
tterb / userChrome.css
Created January 31, 2018 05:21
A monokai-pro inspired theme for Firefox devtools
:root.theme-dark {
/* --theme-body-background: var(--grey-80); */
--theme-body-background: #2c292e !important;
--theme-body-background: hsl(270,4%,17%) !important;
--theme-sidebar-background: #202020 !important;
--theme-contrast-background: #efb35b !important;
/* Toolbar */
--theme-tab-toolbar-background: #202020 !important;
--theme-toolbar-background: #202020 !important;
@tterb
tterb / Monokai-Pro.scss
Last active December 28, 2022 14:03
Monokai Pro-inspired syntax-highlighting for Rouge
/**
* Syntax highlighting styles
*/
$syntax-hue: 270;
$syntax-saturation: 4%;
$syntax-brightness: 15%;
$base: hsl($syntax-hue, $syntax-saturation, $syntax-brightness);
$text: hsl($syntax-hue, 9%, 87%);
@tterb
tterb / Gulpfile.js
Last active March 24, 2025 07:25
An updated gulpfile for tterb.github.io
// Gulpfile.js
const autoprefixer = require('autoprefixer');
const browserSync = require('browser-sync').create();
const concat = require('gulp-concat');
const cssnano = require('cssnano');
const del = require('del');
const gulp = require('gulp');
const gutil = require('gulp-util');
const imagemin = require('gulp-imagemin');
@tterb
tterb / tterb.iterm2.plist
Created March 19, 2019 04:07
iTerm2 Settings
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AllowClipboardAccess</key>
<true/>
<key>AlternateMouseScroll</key>
<true/>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>