From: https://stackoverflow.com/questions/26596566/postgres-database-locked-queries-running-forever
You should check for locks:
SELECT l.*,a.*
FROM pg_locks l
JOIN pg_stat_activity a USING (pid)
WHERE NOT granted;
Application.put_env(:sample, Example.Endpoint, | |
http: [ip: {127, 0, 0, 1}, port: 5001], | |
server: true, | |
live_view: [signing_salt: "aaaaaaaa"], | |
secret_key_base: String.duplicate("a", 64) | |
) | |
Mix.install([ | |
{:plug_cowboy, "~> 2.5"}, | |
{:jason, "~> 1.0"}, |
{"lastUpload":"2021-02-03T12:14:03.986Z","extensionVersion":"v3.4.3"} |
From: https://stackoverflow.com/questions/26596566/postgres-database-locked-queries-running-forever
You should check for locks:
SELECT l.*,a.*
FROM pg_locks l
JOIN pg_stat_activity a USING (pid)
WHERE NOT granted;
### Keybase proof | |
I hereby claim: | |
* I am benregn on github. | |
* I am benregn (https://keybase.io/benregn) on keybase. | |
* I have a public key whose fingerprint is 635E 9ACE AB30 62CE 0D12 C42E CB9C 5EFF 38D5 E798 | |
To claim this, I am signing this object: |
import json | |
from collections import defaultdict | |
import requests | |
token = '<github-access-token>' | |
gh_url = 'https://api.github.com' | |
headers = {'Authorization': 'token {}'.format(token)} |
docker-machine create --driver virtualbox default
(this is the default with Docker toolkit).The git.io URL (https://git.io/vzaSg) is a shortened form of the raw url of the plist.
is-executable() { | |
local BIN=`command -v "$1" 2>/dev/null` | |
if [[ ! $BIN == "" && -x $BIN ]]; then | |
return 0 | |
else | |
return 1 | |
fi | |
} | |
# a wrapper for versionbump |
// https://www.bdk.dk/min-profil/mine-opskrivninger.aspx | |
var csv = [['Company name', 'Apartment section', 'Number of rooms', 'Active number', 'Passive number']]; | |
$('#basketAccordion .panel-default').each(function (index, panel) { | |
var $panel = $(panel); | |
var apartmentCompanyName = $.trim($panel.find('.panel-title').text()); | |
console.log('---' + apartmentCompanyName + '---'); | |
$panel.find('.panel-body').each(function (index, panelBody) { | |
$(panelBody).children().each(function (index, apartmentSection) { | |
var $apartmentSection = $(apartmentSection); |
I hereby claim:
To claim this, I am signing this object: