Skip to content

Instantly share code, notes, and snippets.

View Setup Pgadmin4 docker.md

Just run:

curl https://gist.githubusercontent.com/tcoupin/af82bbbf5de516d186c1f2170ae5d0c4/raw/setup.sh | bash

Notes:

  • on close, the container is not close.
  • default email : admin@admin.admin, default password admin
  • a volume named "pgadmin" is create to store config
@karmeljuk
karmeljuk / clean.sh
Created Nov 21, 2020 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
View clean.sh
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
View paginateScroll.js
//переносить сторінку вниз при кліку на пейджері
var firstHeight = $(table).height();
function paginateScroll() {
var scrollElement = $('html, body');
var secondHeight = $(".dataTables_wrapper").height();
if (firstHeight > secondHeight) {
scrollElement.animate({
scrollTop: firstHeight
}, 500);
}