- Download docker-compose.yml to dir named
sentry - Change SENTRY_SECRET_KEY to random 32 char string
- Run
docker-compose up -d - Run
docker exec -it sentry_sentry_1 sentry upgradeto setup database and create admin user - Run
docker exec -it pip install sentry-slackif you want slack plugin, it can be done later - Run
docker restart sentry_sentry_1 - Sentry is now running on public port 9000
This file contains hidden or 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
| <?php | |
| /** | |
| * Simple request response script | |
| * | |
| * Point you cURL request to this script to see all incoming data | |
| */ | |
| echo '*API*'. PHP_EOL; |
This file contains hidden or 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 | |
| set -e | |
| if [ -d ~/.local/share/JetBrains/Toolbox ]; then | |
| echo "JetBrains Toolbox is already installed!" | |
| exit 0 | |
| fi | |
| echo "Start installation..." |
This file contains hidden or 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
| curl --user-agent "Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.1 Mobile Safari/537.36 (compatible);" -v $@ | |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
This file contains hidden or 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 dataDump = props => <pre>{JSON.stringify(props, null, 2)}</pre> |
This file contains hidden or 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
| <?php | |
| namespace Axelvkn\AppBundle\Filter; | |
| use ApiPlatform\Core\Bridge\Doctrine\Orm\Filter\SearchFilter; | |
| use ApiPlatform\Core\Bridge\Doctrine\Orm\Util\QueryNameGeneratorInterface; | |
| use ApiPlatform\Core\Exception\InvalidArgumentException; | |
| use Doctrine\ORM\QueryBuilder; | |
| class OrSearchFilter extends SearchFilter |
This file contains hidden or 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
| xcode with development tools | |
| homebrew | |
| rvm | |
| vagrant | |
| virtualbox | |
| iterm2 | |
| alfred | |
| http://spectacleapp.com/ (allows you to snap windows around with kb shortcuts) | |
| BetterSnapTool if spectacle doesn't do what you want | |
| remap your caps lock key to command |
This file contains hidden or 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
| <?php | |
| // Bootstrap | |
| // Change chdir to the full path of your Drupal root | |
| define('DRUPAL_ROOT', getcwd()); | |
| $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] = $_SERVER['PHP_SELF']; | |
| $_SERVER['REMOTE_ADDR'] = "127.0.0.1"; | |
| $_SERVER['REQUEST_METHOD'] = NULL; | |
| require_once './includes/bootstrap.inc'; | |
| drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); | |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
NewerOlder