-
Removing all images is
#!/bin/bash $ docker ps -q -a | xargs docker rm -f
-
Removing all containers
#!/bin/bash # Delete all dangling (unused) images
docker rmi $( docker images -f dangling=true -q )
{ | |
"always_show_minimap_viewport": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme", | |
"default_encoding": "UTF-8", | |
"default_line_ending": "unix", | |
"detect_indentation": false, | |
"display_signatures": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, |
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"AdvancedNewFile", | |
"Alignment", | |
"Anaconda", |
Removing all images is
#!/bin/bash
$ docker ps -q -a | xargs docker rm -f
Removing all containers
#!/bin/bash
# Delete all dangling (unused) images
docker rmi $( docker images -f dangling=true -q )
document.addEventListener( 'DOMContentLoaded', function () { | |
function cachetAlert(cachetUrl) { | |
var createAlert = function(incident) { | |
var divElement = document.createElement('div'); | |
divElement.id = 'cachet-alert'; | |
divElement.setAttribute('style', 'background-color: #FF3D2E; text-align: center; font-family: sans-serif;'); | |
divElement.innerHTML = '<a style="color: #fff; display: block; padding: 5px;" href="'+ cachetUrl +'" target="_blank">'+ incident.name +'</a>'; | |
document.body.insertBefore(divElement, document.body.children[0]); | |
}; |
# settings.py | |
'huey.contrib.djhuey', | |
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'level-and-date': { | |
'format': | |
'%(levelname)s\t%(asctime)s\t%(funcName)s\t%(message)s' |
sudo nano /etc/X11/xorg.conf
Section "ServerFlags"
Option "blank time" "0"
Option "standby time" "0"
Option "suspend time" "0"
Option "off time" "0"
EndSection
1. Remove old migrations file | |
sudo find . -path "*/migrations/*.py" -not -name "__init__.py" -not -path "./.venv/*" -delete | |
sudo find . -path "*/migrations/*.pyc" -not -path "./.venv/*" -delete | |
2. Make migrations again | |
python manage.py makemigrations | |
3. Truncate django_migrations table | |
TRUNCATE TABLE django_migrations; |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "ListAllBuckets", | |
"Effect": "Allow", | |
"Action": [ | |
"s3:ListAllMyBuckets", | |
"s3:GetBucketLocation" | |
], |
Create a user for the replication:
$ psql postgres
postgres=# CREATE USER replica REPLICATION LOGIN ENCRYPTED PASSWORD 'so-secret';