Skip to content

Instantly share code, notes, and snippets.

@reginaldlong
reginaldlong / README.md
Created February 6, 2023 04:17 — forked from arikfr/README.md
Setting up HTTPS with LetsEncrypt for Redash Docker Deployment
  1. Make sure the domain you picked points at the IP of your Redash server.
  2. Switch to the root user (sudo su).
  3. Create a folder named nginx in /opt/redash.
  4. Create in the nginx folder two additional folders: certs and certs-data.
  5. Create the file /opt/redash/nginx/nginx.conf and place the following in it: (replace example.redashapp.com with your domain name)
    upstream redash {
        server redash:5000;
    }
    
@reginaldlong
reginaldlong / create_function_plv8_cuid.sql
Last active December 16, 2022 04:09 — forked from notakaos/create_function_plv8_cuid.sql
cuid for PostgreSQL with PL/v8
-- original code: https://github.com/ericelliott/cuid
-- Add the "plv8" extension
create extension if not exists "plv8";
-- Add the "pgcrypto" extension
create extension if not exists "pgcrypto";
-- initialize
SET plv8.start_proc = 'plv8_init';
@reginaldlong
reginaldlong / list.txt
Created October 26, 2022 17:54 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: true,
async rewrites() {
console.log(`${process.env.NEXT_PUBLIC_API_URL}`);
return [
{
source: "/api/:path*",
", " File "/opt/virtualenv/monolith/local/lib/python2.7/site-packages/falcon/api.py", line 244, in __call__
responder(req, resp, **params)
", " File "/opt/virtualenv/monolith/code/rpc2/affirm/rpc2/transport/http.py", line 449, in __on_post
output, status, headers = self.__transport.post(request.headers, path, request.stream)
", " File "/opt/virtualenv/monolith/code/rpc2/affirm/rpc2/transport/http.py", line 343, in post
serialized_response = self.__post(headers, path, data)
", " File "/opt/virtualenv/monolith/code/rpc2/affirm/rpc2/transport/http.py", line 389, in __post
metadata={METADATA_KEY: wsgi_metadata})
", " File "/opt/virtualenv/monolith/code/rpc2/affirm/rpc2/server.py", line 139, in receive
return self.__receive(serialized_request, metadata=metadata)

Keybase proof

I hereby claim:

  • I am reginaldlong on github.
  • I am reginaldlong (https://keybase.io/reginaldlong) on keybase.
  • I have a public key ASA_aT5bS_y-DkTpbSQ6heSxsV68vBhttiTM6TvKcThWago

To claim this, I am signing this object: