Skip to content

Instantly share code, notes, and snippets.

View Setup Pgadmin4

Just run:

curl | bash


  • 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 /
Created Nov 21, 2020 — forked from Iman/
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#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) {
scrollTop: firstHeight
}, 500);