Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Serverless, Cloud and Automation enthusiast 🎉

Julian Tellez juliantellez

🤖
Serverless, Cloud and Automation enthusiast 🎉
View GitHub Profile
View bd3d4befe38185704bf0fc875e9deed6|configuration.json
{"contents":{"tslint":{"configFile":"./config/tslint/tslint.json"},"css":{"validate":false}},"overrides":[],"keys":["tslint.configFile","css.validate"]}
View usingTheMiddleware.js
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 Nov 13, 2019
Create Lambcycle Plugin
View craftingAPlugin.js
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 {
@juliantellez
juliantellez / usePlugin.js
Created Feb 8, 2019
Using Lambcycle Plugins
View usePlugin.js
import lambcycle from 'lambcycle'
import sentryPlugin from './sentryPlugin'
const myApplicationLogic = async (event, context) => {
return await someLogic()
}
const handler = lambcycle(myApplicationLogic)
.register([
sentryPlugin({
@juliantellez
juliantellez / pimp.sh
Last active Mar 4, 2018
Pimp your terminal with zsh
View pimp.sh
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
You can’t perform that action at this time.