Command: heroku pgbackups:capture --remote production
Response: >>> HEROKU_POSTGRESQL_COLOR_URL (DATABASE_URL) ----backup---> a712
Command: heroku pgbackups:url [db_key] --remote production
| #!/usr/bin/env python2.7 | |
| import random | |
| import subprocess | |
| class Node(object): | |
| def __init__(self, key, value): | |
| self.key = key | |
| self.value = value |
| # -*- coding: utf-8 -*- | |
| # @author: Peter Lamut | |
| import argparse | |
| import os | |
| import shutil | |
| N = 10 # the number of files in seach subfolder folder |
| #! /usr/bin/env python | |
| """ | |
| Solve linear system using LU decomposition and Gaussian elimination | |
| """ | |
| import numpy as np | |
| from scipy.linalg import lu, inv | |
| def gausselim(A,B): |
The standard names for indexes in PostgreSQL are:
{tablename}_{columnname(s)}_{suffix}
where the suffix is one of the following:
pkeyfor a Primary Key constraint;keyfor a Unique constraint;exclfor an Exclusion constraint;idxfor any other kind of index;
| import numpy as np | |
| ## Tri Diagonal Matrix Algorithm(a.k.a Thomas algorithm) solver | |
| def TDMAsolver(a, b, c, d): | |
| ''' | |
| TDMA solver, a b c d can be NumPy array type or Python list type. | |
| refer to http://en.wikipedia.org/wiki/Tridiagonal_matrix_algorithm | |
| and to http://www.cfd-online.com/Wiki/Tridiagonal_matrix_algorithm_-_TDMA_(Thomas_algorithm) | |
| ''' | |
| nf = len(d) # number of equations |
Just a quick fun experiment to try to make docker-compose work as a Docker CLI plugin
To use it (assuming you have docker compose installed):
| // | |
| // CustomMacTextView.swift | |
| // | |
| // MacEditorv2 Created by Marc Maset - 2021 | |
| // Changes inspired from MacEditorTextView by Thiago Holanda | |
| // | |
| // Modified by Anthony Ingle - 2022 | |
| // | |
| import SwiftUI |
| FROM ubuntu:bionic-20220531 | |
| # Must be root to install the packages | |
| USER root | |
| # Install required deps | |
| RUN apt update | |
| RUN apt -y install gnupg wget apt-transport-https coreutils java-common | |
| # Import Elasticsearch GPG Key |