Skip to content

Instantly share code, notes, and snippets.

View alannsiqueira's full-sized avatar

Alan Siqueira alannsiqueira

View GitHub Profile
@alannsiqueira
alannsiqueira / bitbucket-pipelines.yaml
Created December 16, 2022 18:53 — forked from RaschidJFR/bitbucket-pipelines.yaml
Sentry: Angular ErrorHandler with Custom Errors, Sentry reporting and Version Bumping.
# Add this step to upload sourcemaps to Sentry
# Don't forget to build with `--source-map=true` to generate the sourcemaps.
# It's recommended that you don't upload them to your production hosting
- script: &script-sentry-release
- npm i @sentry/cli@1.66.0
- VERSION=$(npm run --silent version:describe)
- npx sentry-cli --auth-token=$SENTRY_AUTH_TOKEN releases -o $SENTRY_ORG new "$VERSION" --finalize -p $SENTRY_PROJECT
- npx sentry-cli --auth-token=$SENTRY_AUTH_TOKEN releases -o $SENTRY_ORG set-commits --auto $VERSION # make sure to add the repo in Sentry Dashboard
- npx sentry-cli --auth-token=$SENTRY_AUTH_TOKEN releases -o $SENTRY_ORG -p $SENTRY_PROJECT files "$VERSION" upload-sourcemaps ./sourcemaps
- npx sentry-cli --auth-token=$SENTRY_AUTH_TOKEN releases -o $SENTRY_ORG -p $SENTRY_PROJECT files "$VERSION" upload-sourcemaps ./www
@alannsiqueira
alannsiqueira / boxstarter.ps1
Created October 4, 2019 22:43 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
@alannsiqueira
alannsiqueira / fp.md
Created September 20, 2018 04:12 — forked from rodrigorgs/fp.md
Exercícios sobre programação funcional

Primeiramente, crie um arquivo chamado index.html com o seguinte conteúdo:

<!DOCTYPE html>
<html>
<head>
    <title></title>
</head>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js"></script>
<body>