Skip to content

Instantly share code, notes, and snippets.

Alex aethant

  • Chicago, USA
Block or report user

Report or block aethant

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View machine.js
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
aethant / index.js
Created Feb 11, 2017 — forked from TylerK/index.js
React Router 4, React -> Preact for production, Async route-based code-splitting.
View index.js
import React from 'react'
import { render } from 'react-dom';
import { Router, Route } from 'react-router-dom';
import LazyRoute from 'lazy-route';
const App = () => {
render() {
return (
aethant / shallowify.js
Last active Dec 29, 2016
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. Your solution should be a link to a gist on with your implementation. When writing this code, you can use any language you're comfortable with. The code must be well tested and docum…
View shallowify.js
const a = [ 23, 3, [ 5, 12, ], 11, ]
const b = [ [23, [233, 9, ], 11, ], 13, ]
const c = [ [ [ 222, 34, 55, 1, 7, ], 9, 1500, ], ]
const shallowify = arr => {
let results = []
arr.forEach(arrEl => {
if (arrEl.constructor === Array) {
results = [...results, ...shallowify(arrEl), ]
} else {

Keybase proof

I hereby claim:

  • I am aethant on github.
  • I am atelischak ( on keybase.
  • I have a public key ASA6RcQgtJW9VumgfIw7MR54FwRAArlIT4lbWbnehs4N-Qo

To claim this, I am signing this object:

FROM node:6.1
RUN groupadd -r application && useradd -r -g application application
ENV HOME=/home/application
COPY package.json $HOME/mc/
RUN chown -R application:application $HOME/* && chown -R application:application $HOME/*
RUN /bin/su application
aethant / build-zip-from-s3.php
Created May 25, 2016 — forked from jeremeamia/build-zip-from-s3.php
Create a zip from objects from S3.
View build-zip-from-s3.php
// These are just the basics for how to do this. Notes:
// - Not fully tested.
// - Not suitable for production.
// - May not work well if large ammounts of data.
// - Requires AWS SDK for PHP and
require '/path/to/sdk-or-autoloader';
aethant /
Created Apr 6, 2016 — forked from bmcbride/
Create a new GitHub Issue from a Google Form submission

Wiring up a Google Form to GitHub is not that difficult with a little bit of Apps Script automation. All you need is a Google account, a GitHub account, and a web browser...

Set up your GitHub Personal Access Token

Personal access tokens provide an easy way to interact with the GitHub API without having to mess with OAuth. If you don't already have a personal access token with repo or public_repo access, visit your GitHub settings page and generate a new token.

Be sure to copy your token some place safe and keep it secure. Once generated, you will not be able to view or copy the token again.

Set up the Form & Spreadsheet

  1. Create a Google Form.

Redux Chaos Monkey

This is a proof of concept which allows you to replay system events in a random order each time to make sure your UI can tolerate variable states.

I'm not sure if this is worthy of its on open source project with additional features like changing play back time, whitelisting/blacklisting actions etc but figured I'd put this out there to see if it piques anyones interest.

See a video of this in action here: [](Video on YouTube).

echo "Install brew"
ruby -e "$(curl -fsSL"
brew install caskroom/cask/brew-cask
echo ""
echo "Install apps"
brew cask install --appdir="/Applications" java google-chrome skype vagrant phpstorm firefox radiant-player mysqlworkbench sequel-pro textwrangler
brew cask install --appdir="/Applications" libreoffice slack dropbox imageoptim tunnelblick virtualbox virtualbox-extension-pack the-unarchiver
brew cask install --appdir="/Applications" ccleaner android-studio purevpn cyberduck ccleaner calibre coconutbattery flash-player
brew cask install --appdir="/Applications" spectacle vlc kodi xquartz inkscape launchrocket ngrok transmission gog-galaxy origin steam
aethant / SassMeister-input-HTML.haml
Created Jul 24, 2014
Generated by
View SassMeister-input-HTML.haml
You can’t perform that action at this time.