Skip to content

Instantly share code, notes, and snippets.

View aackerman's full-sized avatar
💻
Working

Aaron Ackerman aackerman

💻
Working
View GitHub Profile
@aackerman
aackerman / gist:93d86b780ef7e951b59351dcc99af1b1
Last active April 15, 2021 07:45
Parameter Store Config
'use strict'
const EventEmitter = require('events')
// default expiry 3 mins
const DEFAULT_EXPIRY = 3 * 60 * 1000
const create = ({ keys, ssm, keyPrefix = '', expiryMs = DEFAULT_EXPIRY }) => {
let isRefreshing = false
if (!keys || !Array.isArray(keys) || keys.length === 0) {
throw new Error('Provide a non-empty array of config keys')
Front-end app guidelines
* Use create-react-app
* Use bootstrap with a custom theme
* Use prettier
* Avoid semicolons
* 2 space indentation
* Use trailing commas
* Single quotes over double quotes
* Use eslint to enforce prettier styling
@aackerman
aackerman / autobind.js
Last active January 28, 2017 22:45
Autobind
const autobind = (instance) => {
for (var prop in instance) {
if (instance.hasOwnProperty(property) && typeof instance[property] === 'function') {
instance[property] = instance[property].bind(instance)
}
}
}
@aackerman
aackerman / cloudtail.js
Last active December 7, 2016 19:51
Cloudwatch Tail logs
var AWS = require('aws-sdk');
AWS.config.region = 'us-east-1'
var service = new AWS.CloudWatchLogs();
function getLogs(params) {
params = Object.assign({}, params, { endTime: new Date().getTime() - 30000 })
service.getLogEvents(p, function(err, data) {
if (err) { console.log(err) }
if (data && data.events && data.events.length !== 0) {
Vagrant.configure(2) do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "ubuntu/trusty64"
# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network :forwarded_port, guest: 8000, host: 8000
config.vm.network :forwarded_port, guest: 5432, host: 5432
@aackerman
aackerman / errors.txt
Created August 17, 2016 00:23
Flow build errors
vagrant@vagrant-ubuntu-trusty-64:/vagrant$ make test
mkdir -p _build/hack/third-party/inotify/
cp hack/third-party/inotify/inotify_stubs.c _build/hack/third-party/inotify/inotify_stubs.c
mkdir -p _build/hack/third-party/inotify/
cp hack/third-party/inotify/inotify_compat.h _build/hack/third-party/inotify/inotify_compat.h
mkdir -p _build/hack/third-party/libancillary/
cp hack/third-party/libancillary/ancillary.h _build/hack/third-party/libancillary/ancillary.h
cd _build/hack/third-party/inotify/ && ocamlopt -c inotify_stubs.c
mkdir -p _build/hack/heap/
cp hack/heap/hh_shared.c _build/hack/heap/hh_shared.c
.tooltipped {
position: relative
}
.tooltipped::after {
position: absolute;
z-index: 1000000;
display: none;
padding: 5px 8px;
# NodeJS Debugging
## Debugger API
https://nodejs.org/api/debugger.html
## Node Inspector
https://github.com/node-inspector/node-inspector

JavaScript Engineering Interview Questions

  • What kind of work are you excited about?
  • Tell me about a project/deployment/failure that went majorly wrong and how did you or the team recover and what did you learn from the situation?
  • How do you go about testing web application functionality and components?
  • Do you have working familiarity with any of the major web application frameworks? Can you describe some examples of projects that have used these frameworks?
    • Angular, Ember, React, Backbone?

Experience (what has this person worked on in the past?)

  • What were the greatest challenges you've faced in working on those applications/projects?