Skip to content

Instantly share code, notes, and snippets.

Avatar
✌️
¯\_(ツ)_/¯

Spencer Norman spencern

✌️
¯\_(ツ)_/¯
View GitHub Profile
View development-tooling.md

Tooling

CLI Tools

  • ack Search tool like grep, but optimized for programmers
  • atombender/ktail/ktail Tapped 1 formula (61 files, 30.6KB).
  • autoconf Automatic configure script builder
  • automake Tool for generating GNU Standards-compliant Makefiles
  • aws-iam-authenticator Use AWS IAM credentials to authenticate to Kubernetes
  • awscli Official Amazon AWS command-line interface
  • bat Clone of cat(1) with syntax highlighting and Git integration
  • bazel Google's own build tool
View save-commits-to-csv-by-author.sh
#!/bin/bash
cat ~/reaction/contributors-reaction.txt | {
while IFS= read -r line
do
git log --abbrev-commit --date=short --pretty=format:'%cd, "%h", "%an", "%ae", "%s"' --author="${line}" >> ~/reaction/contributors-reaction-commits-and-dates.csv
echo >> ~/reaction/contributors-reaction-commits-and-dates.csv
done
}
View get-all-contributors-emails-via-git-blame.sh
find . -type d \( -path ./node_modules -o -path ./.meteor -o -path ./.git \) -prune -o -name '*.*' -print0 | xargs -0 -I{} git blame --show-email {} | perl -n -e '/^[a-z0-9]{10}\s\(<(([a-zA-Z0-9_\-\.]+)@([a-zA-Z0-9_\-\.]+)\.([a-zA-Z]{2,9}))>/ && print "$1\n"' | sort | uniq
View keybase.md

Keybase proof

I hereby claim:

  • I am spencern on github.
  • I am spencern (https://keybase.io/spencern) on keybase.
  • I have a public key ASBY2TQcA0KvI50Qt3la2p8SgQw3v7SNMhqhRDjdgxBGhAo

To claim this, I am signing this object:

@spencern
spencern / meteor-1521-rc2-rebuild.sh
Created Sep 26, 2017
Meteor 1.5.2.1-rc.2 | Rebuild app profile
View meteor-1521-rc2-rebuild.sh
Rebuild App..................................................84,142 ms (1)
| └─ files.withCache...........................................84,142 ms (1)
| ├─ initFromAppDir 1 ms (1)
| ├─ compiler.compile(the app)...............................1,844 ms (1)
| │ └─ files.withCache......................................1,844 ms (2)
| │ └─ compileUnibuild (the app).........................1,844 ms (2)
| │ ├─ Isopack#getUnibuildAtArch 10 ms (246)
| │ ├─ files.withCache..................................993 ms (2)
| │ │ ├─ files.realpath 56 ms (762)
| │ │ ├─ files.stat 126 ms (3490)
@spencern
spencern / application.js
Created Jul 16, 2014
Example config/application.js file for LinemanJS
View application.js
module.exports = function(lineman) {
//Override application configuration here. Common examples follow in the comments.
return {
jshint: {
options: {
'node': true,
'browser': true,
'esnext': true,
'bitwise': true,
'camelcase': true,
@spencern
spencern / mostLikedUsers.js
Last active Dec 28, 2015
Using the MongoDB Aggregation framework to count the total number of likes among all users within a collection
View mostLikedUsers.js
db.users.aggregate(
[
{ $unwind : "$likes" },
{ $group : { _id : "$likes", number : { $sum : 1 } } },
{ $sort : { number : -1 } },
{ $limit : 10 }
]
);
@spencern
spencern / smart.json
Created Nov 5, 2013
Setting the path to your local package
View smart.json
{
"packages": {
"font-awesome-4": {},
"bootstrap-3": {},
"accounts-linkedin": {},
"iron-router": {},
"mixpanel": {
"path": "../../Javascript/meteor/packages/meteor-mixpanel"
}
}
@spencern
spencern / circle.css
Last active Sep 20, 2016
Creating Image Masks with SVG and CSS
View circle.css
.circle {
-webkit-border-radius: 1000px;
-moz-border-radius: 1000px;
border-radius: 1000px;
}