git clone https://github.com/getsentry/onpremise
cd onpremise
# https://docs.sentry.io/server/installation/docker/
make build
mkdir -p data/{sentry,postgres} # Make our local database and sentry config directories.`
docker-compose run --rm web config generate-secret-key # Generate a secret key.
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
| redis: | |
| image: redis | |
| postgres: | |
| image: postgres | |
| environment: | |
| - POSTGRES_PASSWORD=sentry | |
| - POSTGRES_USER=sentry | |
| volumes: | |
| - /var/lib/postgresql/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
| 'use strict'; | |
| var http = require( "http" ), | |
| pathUtils = require( "path" ), | |
| express = require( "express" ), | |
| app = express(), | |
| PORT = process.env.PORT || 5000, | |
| appDir = pathUtils.resolve( __dirname, "client" ); | |
| app.use( express.static( appDir ) ); |
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
| fastcgi_param QUERY_STRING $query_string; | |
| fastcgi_param REQUEST_METHOD $request_method; | |
| fastcgi_param CONTENT_TYPE $content_type; | |
| fastcgi_param CONTENT_LENGTH $content_length; | |
| fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
| fastcgi_param REQUEST_URI $request_uri; | |
| fastcgi_param DOCUMENT_URI $document_uri; | |
| fastcgi_param DOCUMENT_ROOT $document_root; | |
| fastcgi_param SERVER_PROTOCOL $server_protocol; |
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
| C-@ : set-mark A-& : tilde-expand | |
| C-a : beginning-of-line A-* : insert-completions | |
| C-b : backward-char A-- : digit-argument | |
| C-c : ctrl-c A-. : yank-last-arg | |
| C-d : delete-char A-0 : digit-argument | |
| C-e : end-of-line A-1 : digit-argument | |
| C-f : forward-char A-2 : digit-argument | |
| C-g : abort A-3 : digit-argument | |
| C-h : backward-delete-char A-4 : digit-argument | |
| C-i : clink-completion-shim A-5 : digit-argument |
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
| /** | |
| * Prints a line of non-ASCII text as a series of images. | |
| * All doc.text methods can be replaced with this method. | |
| * Works like doc.text but requires a fontsize (default is 10). | |
| * | |
| * Add function to jsPDF instance (do not overwrite doc.text): | |
| * var doc = new jsPDF(); | |
| * doc.alttext = nonASCIItext; | |
| * | |
| * @param {Number} x Horizontal placement |
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
| pkg-config | |
| dh-autoreconf | |
| libgtk-3-dev | |
| libcurl4-openssl-dev | |
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
| sudo apt-get install -y mailutils postfix | |
| sudo vim /etc/ssh/ssh_alert.sh | |
| --- content --- | |
| #!/bin/bash | |
| # replace with sender's email address | |
| sender="sender_address@some_mail.com" | |
| # replace with recipient's email address | |
| recipient="recipient_address@some_mail.com" | |
| time=$(date) |
git
git-kraken
curl wget build-essential automake
i32 packages
arc-theme
gnome-tweaks
nodejs
postman
vscode
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
| /* | |
| Incredibly simple Node.js and Express application server for serving static assets. | |
| Given as an example from the React Router documentation (along with examples | |
| using nginx and Apache): | |
| - https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md#browserhistory | |
| */ | |
| const express = require('express'); | |
| const path = require('path'); |