Skip to content

Instantly share code, notes, and snippets.

View magic-madrigal's full-sized avatar

Heriberto Madrigal magic-madrigal

View GitHub Profile
ShellExecute( "C:\Users\Magic\Desktop\Line.m3u8" )
Sleep(1000)
WinActivate( "[CLASS:BaseWindow_RootWnd]","" )
Sleep(1000)
Send("^+K")
// This file is used to evaluate the stage being used and dynamically
// populate several config properties pertaining to the env being created.
module.exports = (serverless) => {
serverless.cli.log('-= Evaluating AWS ENV using stage option =-');
let baseDomain;
let devBranch = '';
const aws = serverless.getProvider('aws');
const { stage } = aws.options;
language: node_js
sudo: required
dist: trusty
node_js:
- 8.10.0
branches:
only:
- master
- stg
- dev
@magic-madrigal
magic-madrigal / deploy.sh
Created February 26, 2019 22:07
Deploy Script For Automated Serverless Deployments
#!/bin/bash
set -e # Stop Execution if Error is Fouund
echo -= Beginning deploy script =-
BRANCH=${TRAVIS_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
echo BRANCH = $BRANCH
# Selecting stage using branch
if [[ $BRANCH == 'master' ]]; then
STAGE="prod"
### Keybase proof
I hereby claim:
* I am magic-madrigal on github.
* I am magic_zen (https://keybase.io/magic_zen) on keybase.
* I have a public key ASBHGGx8qEc1hUOR6I87SKCYVGfkJ8Gj9FGX_7cijC5lVAo
To claim this, I am signing this object: