Skip to content

Instantly share code, notes, and snippets.

View eoinsha's full-sized avatar

Eoin Shanaghy eoinsha

View GitHub Profile
@eoinsha
eoinsha / sls-function.yml
Created August 7, 2019 15:19
Serverless functions http event
get:
handler: services/checklists/get.main
events:
- http:
path: /{id}
method: get
_ _ _ _ _ _ _
| _| _||_||_ |_ ||_||_|
||_ _| | _||_| ||_| _|
_ _ _ _ _ _ _
| | _| _||_| ||_ ||_||_|
|_||_ _| | ||_| ||_| _|
@eoinsha
eoinsha / keybase.md
Created December 14, 2017 09:17
keybase.md

Keybase proof

I hereby claim:

  • I am eoinsha on github.
  • I am eoinsp (https://keybase.io/eoinsp) on keybase.
  • I have a public key whose fingerprint is AACF 458A 815E 798A 5175 0A5A 2437 85C1 A504 B89A

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am eoinsha on github.
  • I am eoinsp (https://keybase.io/eoinsp) on keybase.
  • I have a public key ASANrlUjC9ZkJuZrq_-onFrQUKYKNi7jWVS7lmH_onsbIgo

To claim this, I am signing this object:

FROM eoinsha/node-seneca-base
FROM node:4-slim
RUN mkdir /node-seneca-base
COPY package.json /node-seneca-base
WORKDIR /node-seneca-base
RUN npm install
COPY . /node-seneca-base
RUN npm link
RUN mkdir /src
@eoinsha
eoinsha / deps.js
Last active March 24, 2016 00:19
Module to expose all your immediate package dependencies to dependent modules
'use strict'
// This module is one way of exposing subdependencies to dependent modules
// Modules are still `require`d on demand
const fs = require('fs')
const path = require('path')
const modulePath = path.resolve(__dirname, 'node_modules')
fs.readdirSync(modulePath)
.map(subDir => path.resolve(modulePath, subDir))
.filter(file => fs.statSync(file).isDirectory() && fs.existsSync(path.resolve(file, 'package.json')))
@eoinsha
eoinsha / .bash_profile
Created November 27, 2015 12:28
bash_profile snippet to avoid repeatedly typing eval $(docker-machine env default)
alias dm-env="source ~/.docker-machine.default.env"
alias dm-stop="docker-machine stop default"
alias dm-start="docker-machine start default && docker-machine env default > ~/.docker-machine.default.env && dm-env"
dm-env > /dev/null 2>&1