Skip to content

Instantly share code, notes, and snippets.

@reshadman
reshadman / sentry-install-ubuntu-20.sh
Created December 12, 2020 20:52 — forked from midweste/sentry-install-ubuntu-20.sh
Install sentry on Ubuntu 20 with Snap
#!/bin/sh
# need to have at least 2.5GB of memory of this install may fail - see docs
# todo 13:52:28 [WARNING] sentry.utils.geo: settings.GEOIP_PATH_MMDB not configured.
SENTRYDB='sentry'
SENTRYUSER='sentry'
SENTRYPW='sentrypw'
# sudo apt-get install -y postgresql postgresql-contrib redis
sudo apt-get install -y postgresql redis
@reshadman
reshadman / letsencrypt_2017.md
Created April 21, 2018 18:56 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 16.04 (including IPv6, HTTP/2 and A+ SLL rating)

There are two main modes to run the Let's Encrypt client (called Certbot):

  • Standalone: replaces the webserver to respond to ACME challenges
  • Webroot: needs your webserver to serve challenges from a known folder.

Webroot is better because it doesn't need to replace Nginx (to bind to port 80).

In the following, we're setting up mydomain.com. HTML is served from /var/www/mydomain, and challenges are served from /var/www/letsencrypt.

array(2) {
[0] array(7) {
["phone_number"] 91212345678
["creator_id"] 53
["description"] "number 1"
["priority"] 0
["shared"] true
["phones"] array(1) {
["phone_number"] 91212345678
}
<?php
class FileHandler {
/**
* allowable default file types
*/
public $enabled_mimes = array (
'image/png',
'image,jpg', #and what ever you want.
);