Milliseconds in your Timestamps.
We got 'em, you want 'em.
Shit needs to be PRECISE
MIT
| function keepTrying(otherArgs, promise) { | |
| promise = promise||new Promise(); | |
| // try doing the important thing | |
| if(success) { | |
| promise.resolve(result); | |
| } else { | |
| setTimeout(function() { | |
| keepTrying(otherArgs, promise); |
| #Migrate i-mscp to a new server | |
| #the new imscp is already installed and does have a different IP than the old one | |
| #1. Dump the DB and copy the i-MSCP backup to new server: | |
| rsync -rave "ssh -l root" /var/www/imscp/backups 10.0.0.3:/var/tmp/imscp_old_backups | |
| #2.Install the old config DB | |
| #3. Copy all customer data: | |
| rsync -rave "ssh -l root " /var/www/virtual/ 10.0.0.3:/var/www/virtual |
| # Assuming an Ubuntu Docker image | |
| $ docker run -it <image> /bin/bash |
| #!/usr/bin/env ruby | |
| require 'watir-webdriver' | |
| def log (message) puts " #{message}" end | |
| def success (message) puts "+ #{message}" end | |
| def fail (message) puts "- #{message}" end | |
| def notify (message) | |
| success message.upcase | |
| system 'osascript -e \'Display notification "Bürgerbot" with title "%s"\'' % message | |
| rescue StandardError => e |
| --- PSQL queries which also duplicated from https://github.com/anvk/AwesomePSQLList/blob/master/README.md | |
| --- some of them taken from https://www.slideshare.net/alexeylesovsky/deep-dive-into-postgresql-statistics-54594192 | |
| -- I'm not an expert in PSQL. Just a developer who is trying to accumulate useful stat queries which could potentially explain problems in your Postgres DB. | |
| ------------ | |
| -- Basics -- | |
| ------------ | |
| -- Get indexes of tables |
The go command line tool needs to be able to fetch dependencies from your private GitLab, but authenticaiton is required.
This assumes your private GitLab is hosted at privategitlab.company.com.
The following environment variables are recommended:
export GO111MODULE=on
export GOPRIVATE=privategitlab.company.com