Skip to content

Instantly share code, notes, and snippets.

View gjacobrobertson's full-sized avatar

Jacob Robertson gjacobrobertson

View GitHub Profile
body {
margin: 0;
padding: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
display: grid;
grid-template-rows: [top] auto [header] 1fr [footer] auto [bottom];
@gjacobrobertson
gjacobrobertson / coke_apt_monorepo.sh
Last active August 9, 2018 17:54
Coke APT Monorepo
git clone https://github.com/northhighland/coke_apt.git
git clone https://github.com/northhighland/coke_apt_ui.git
(cd coke_apt_ui && git checkout -b export)
cd coke_apt
git checkout -b import-web
scripts/import.sh ../coke_apt_ui web export
function createFetcher<Params, Return>(endpoint: (params: Params) => string, handler: (obj: any) => Return) {
return _debounce((params: Params) => {
fetch(API_BASE_URL + endpoint(params), DEFAULT_GET_OPTIONS)
.then(response => response.json())
.then(handler);
}, 200);
}
export const findMarketingAsset = createFetcher(
({ id = null } = {}) => `/assets/${id}`,
jsonArray => new MarketingAsset(jsonArray[0]),
@echo off
echo 127.0.0.1 global.jobs.test > %temp%\temphosts.txt
echo 127.0.0.1 bravo.jobs.test >> %temp%\temphosts.txt
type C:\WINDOWS\system32\drivers\etc\hosts >> %temp%\temphosts.txt
copy /Y %temp%\temphosts.txt C:\WINDOWS\system32\drivers\etc\hosts
@gjacobrobertson
gjacobrobertson / pwned.json
Created December 5, 2013 20:41
A link made it to the front page of HN yesterday entitled "Have I been pwned?" (discussion: https://news.ycombinator.com/item?id=6849057). The link is to a site that will check an email address against a handful of high profile public data breaches in the interest of informing people if their accounts have been compromised. After entering my own…
[
{
"email":"example@gmail.com",
"pwned":[
"Adobe"
]
}
]