Skip to content

Instantly share code, notes, and snippets.

View spencern's full-sized avatar
✌️
¯\_(ツ)_/¯

Spencer Norman spencern

✌️
¯\_(ツ)_/¯
View GitHub Profile
@spencern
spencern / default.md
Created August 5, 2025 05:31 — forked from cablej/default.md
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.

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
#!/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
}
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

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 September 26, 2017 01:38
Meteor 1.5.2.1-rc.2 | Rebuild app profile
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 July 16, 2014 18:18
Example config/application.js file for LinemanJS
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 December 28, 2015 16:49
Using the MongoDB Aggregation framework to count the total number of likes among all users within a collection
db.users.aggregate(
[
{ $unwind : "$likes" },
{ $group : { _id : "$likes", number : { $sum : 1 } } },
{ $sort : { number : -1 } },
{ $limit : 10 }
]
);
@spencern
spencern / smart.json
Created November 5, 2013 00:31
Setting the path to your local package
{
"packages": {
"font-awesome-4": {},
"bootstrap-3": {},
"accounts-linkedin": {},
"iron-router": {},
"mixpanel": {
"path": "../../Javascript/meteor/packages/meteor-mixpanel"
}
}
@spencern
spencern / circle.css
Last active September 20, 2016 00:49
Creating Image Masks with SVG and CSS
.circle {
-webkit-border-radius: 1000px;
-moz-border-radius: 1000px;
border-radius: 1000px;
}