- Download docker-compose.yml to dir named
sentry - Change
SENTRY_SECRET_KEYto random 32 char string - Run
docker-compose up -d - Run
docker-compose exec sentry sentry upgradeto setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slackif you want slack plugin, it can be done later - Run
docker-compose restart sentry - 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 | |
| namespace App\Console\Commands; | |
| use Illuminate\Support\Str; | |
| use Illuminate\Console\Command; | |
| use Symfony\Component\Console\Input\InputOption; | |
| class KeyGenerateCommand extends Command | |
| { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| from flask import Flask | |
| from flask import render_template | |
| import csv | |
| import json | |
| app = Flask(__name__) | |
| @app.route('/') | |
| def my_runs(): | |
| runs = [] |
Run go install and
gogitlocalstats -add /path/to/folderwill scan that folder and its subdirectories for repositories to scangogitlocalstats -email [email protected]will generate a CLI stats graph representing the last 6 months of activity for the passed email. You can configure the default inmain.go, so you can rungogitlocalstatswithout parameters.
Being able to pass an email as param makes it possible to scan repos for collaborators activity as well.
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 | |
| /* | |
| * Converts CSV to JSON | |
| * Example uses the csv file of this gist | |
| */ | |
| $feed="https://gist.githubusercontent.com/devfaysal/9143ca22afcbf252d521f5bf2bdc6194/raw/ec46f6c2017325345e7df2483d8829231049bce8/data.csv"; | |
| //Read the csv and return as array | |
| $data = array_map('str_getcsv', file($feed)); | |
| //Get the first raw as the key | |
| $keys = array_shift($data); |
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 App\Rules; | |
| use Illuminate\Contracts\Validation\Rule; | |
| class AlphaDashDot implements Rule | |
| { | |
| /** | |
| * Determine if the validation rule passes. |
jdoe@home-pc:~# apt-get install redis-server
jdoe@home-pc:~# systemctl enable [email protected]
jdoe@home-pc:~# apt-get update
jdoe@home-pc:~# apt-cache pkgnames | grep php7.4
jdoe@home-pc:~# apt install php7.4-redis
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
| import os | |
| from fastapi import FastAPI | |
| from sentry_sdk.integrations.asgi import SentryAsgiMiddleware | |
| import sentry_sdk | |
| sentry_sdk.init( | |
| dsn='your Sentry dns', # CHANGE HERE | |
| environment=os.getenv('ENV', 'dev'), # You should read it from environment variable |
OlderNewer
