Skip to content

Instantly share code, notes, and snippets.

View juliantellez's full-sized avatar
🤖
Serverless, Cloud and Automation enthusiast 🎉

Julian Tellez juliantellez

🤖
Serverless, Cloud and Automation enthusiast 🎉
View GitHub Profile
@juliantellez
juliantellez / pimp.sh
Last active March 4, 2018 14:37
Pimp your terminal with zsh
brew install zsh
chsh -s `which zsh`
curl -L http://install.ohmyz.sh | sh
cd ~/.oh-my-zsh && git clone git://github.com/zsh-users/zsh-syntax-highlighting.git
source ~/.oh-my-zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
brew install z
echo '. `brew --prefix`/etc/profile.d/z.sh' >> ~/.zshrc
@juliantellez
juliantellez / usePlugin.js
Created February 8, 2019 15:35
Using Lambcycle Plugins
import lambcycle from 'lambcycle'
import sentryPlugin from './sentryPlugin'
const myApplicationLogic = async (event, context) => {
return await someLogic()
}
const handler = lambcycle(myApplicationLogic)
.register([
sentryPlugin({
@juliantellez
juliantellez / usingTheMiddleware.js
Created February 8, 2019 15:38
using Lambcycle
import Joi from 'joi'
import lambcycle from 'lambcycle'
import joiPlugin from 'lambcycle/dist/plugin-joi'
import bodyParser from 'lambcycle/dist/plugin-body-parser'
import realTimeEventTracker from './bugFreeBizLogic'
const businessLogic = async(event, context) => {
const {error, data} = await realTimeEventTracker(event.data)
if(error) {
@juliantellez
juliantellez / craftingAPlugin.js
Last active November 13, 2019 21:35
Create Lambcycle Plugin
import * as Sentry from '@sentry/node';
import MyAwesomeIntegration from './MyAwesomeIntegration'
const sentryPlugin = (config) => {
Sentry.init({
dsn: `https://${config.key}@sentry.io/${config.project}`,
integrations: [new MyAwesomeIntegration()]
});
return {
{"contents":{"tslint":{"configFile":"./config/tslint/tslint.json"},"css":{"validate":false}},"overrides":[],"keys":["tslint.configFile","css.validate"]}