Mix.install([
{:ex_cldr, "== 2.40.3"},
{:ex_cldr_numbers, "== 2.33.6"}
])
This file contains 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
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"}, |
This file contains 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
{"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;
This file contains 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
### 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: |
This file contains 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
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 + Docker
- curl
- A Virtualbox-driven Docker Machine called "default"
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.
This file contains 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
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 |
This file contains 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
// 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); |
NewerOlder