This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
brew cleanup && | |
brew prune && | |
brew update && | |
brew upgrade && | |
brew doctor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O - <link>.sh | sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
aptitude update && | |
aptitude upgrade -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function create_slug($string){ | |
$slug=preg_replace('/[^A-Za-z0-9-]+/', '-', $string); | |
return $slug; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ln -s /etc/nginx/sites-available/<site>.conf /etc/nginx/sites-enabled/<site>.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const sentryMiddleware = () => next => action => { | |
Sentry.addBreadcrumb({ | |
category: 'redux', | |
message: action.type, | |
level: 'info', | |
}) | |
return next(action) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sentry.init({ | |
dsn: env.SENTRY_DSN, | |
environment: env.ENVIRONMENT, | |
release: env.COMMIT_SHA1, // Passed by CircleCI during the build | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Release new release on sentry | |
sentry-release: | |
working_directory: ~/repo | |
docker: | |
- image: circleci/node:10.11 | |
steps: | |
- checkout | |
- run: | |
name: Install Sentry cli | |
command: curl -sL <https://sentry.io/get-cli/> | bash |