Skip to content

Instantly share code, notes, and snippets.

View alexkreidler's full-sized avatar
🎯
Focusing

Alex Kreidler alexkreidler

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Installs bazel for Ubuntu 14.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
echo debconf shared/accepted-oracle-license-v1-1 select true | \
sudo debconf-set-selections
echo debconf shared/accepted-oracle-license-v1-1 seen true | \
sudo debconf-set-selections
sudo apt-get install oracle-java8-installer -y
echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
@alexkreidler
alexkreidler / logicproxScripterEvents
Created July 29, 2017 19:18 — forked from djtech42/logicproxScripterEvents
Logic Pro X MIDI Scripter Javascript Events
//-----------------------------------------------------------------------------
// EventTypes.js
//-----------------------------------------------------------------------------
// required event class definitions for MIDI events
//-----------------------------------------------------------------------------
// Event : base class for all events
//-----------------------------------------------------------------------------
#!/usr/bin/env sh
# Steps to fix Atom not updating properly on Mac OS, as described at
# https://discuss.atom.io/t/i-am-unable-to-update-to-the-latest-version-of-atom-on-macos-how-do-i-fix-this/40054
dirs=(/Applications/Atom.app/ ~/Library/Caches/com.github.atom.ShipIt ~/Library/Application\ Support/com.github.atom.ShipIt)
for dir in "${dirs[@]}"; do
echo "$dir"
if [ -d "$dir" ]; then
echo "Exists: $dir"
data:text/html;charset=utf-8,<title>TextEditor<%2Ftitle><style>body%7Bbackground%3A%23fbfbfb%3Bcolor%3A%23333%3Bmargin%3A0%20auto%3Bwidth%3A50rem%7Dtextarea%7Bbackground%3A%23fbfbfb%3Bborder%3A0%3Bcolor%3A%23333%3Bfont-family%3Asans-serif%3Bfont-size%3A2rem%3Bheight%3A98%25%3Bline-height%3A1.4%3Bmargin%3A0%20auto%3Boutline%3A0%3Bpadding%3A4rem%3Bwidth%3A100%25%7Dbutton%7Bbackground-color%3A%23fbfbfb%3Bborder%3A1px%20%23ccc%20solid%3Bcolor%3A%23999%3Bcursor%3Apointer%3Bfloat%3Aright%3Bmargin%3A10px%200%3Bpadding%3A5px%2010px%7D%40media%20%28max-width%3A768px%29%7Bbody%7Bwidth%3A100%25%3Bpadding%3A0%7Dtextarea%7Bpadding%3A10px%7Dbutton%7Bfloat%3Anone%7D%7D<%2Fstyle><body><button%20onclick%3D"sM%28%29%3B%20return%20false">Email%20this<%2Fbutton><textarea%20contenteditable%20id%3DTE%20spellcheck%3Dfalse%20placeholder%3DWrite...%20autofocus><%2Ftextarea><script>function%20sM%28%29%7Bvar%20a%3D"mailto%3A%3Fsubject%3D"%2Bescape%28"Text%20from%20TextEditor"%29%2B"%26body%3D"%2Bescape%28document.getElementById%28"TE"%
@alexkreidler
alexkreidler / machine.js
Last active December 13, 2019 12:48
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@alexkreidler
alexkreidler / open-source-web-analytics.md
Last active July 16, 2021 09:23
Comparison of open-source web analytics tools

Comparison of open-source web analytics tools

Mostly from this list: https://privacyfocusedanalytics.info/. Our analysis is restricted to open source web analytics solutions that don’t use cookies.

  • Ackee
    • Backend: NodeJS, DB: Mongo
    • No bounce rate
    • MIT license
  • Goatcounter
  • Backend: Go, DB: SQL

Things the Uniforms JSON Schema parser doesn't like

General issues with anyOf handling: vazco/uniforms#863

Array inside anyOf

Error: Invariant Violation: Field not found in schema: "domainDash.0"

{

Quick examples

  • feat: new feature
  • fix(scope): bug in scope
  • feat!: breaking change in API
  • chore(deps): update dependencies

Commit types

Type Description
build Changes that affect the build system or external dependencies (example scopes gulp, broccoli, npm)
@alexkreidler
alexkreidler / pandoc-default-styles.css
Created April 18, 2021 15:25
Pandoc default styles
html {
line-height: 1.5;
font-family: Georgia, serif;
font-size: 20px;
color: #1a1a1a;
background-color: #fdfdfd;
}
body {
margin: 0 auto;
max-width: 36em;
[
{
"number": 2,
"createdAt": "2020-04-28T18:27:35Z",
"closedAt": null
},
{
"number": 3,
"createdAt": "2020-05-28T10:31:13Z",
"closedAt": "2020-05-29T10:46:38Z"