These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
These instructions allow you to intall psql, pg_dump & pg_restore without a full installation of postgresql.
First, install libpq via homebrew
brew doctor
brew update
brew install libpq
It's nice to see a Verified message next to each commit for peace of mind.
Using GPG or S/MIME, you can sign tags and commits locally. These tags or commits are marked as verified on GitHub so other people can be confident that the changes come from a trusted source.
Install latest gpg
If using a mac use homebrew
See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)
For the sake of "maintaining the tradition" here is the updated version.
| #!/bin/bash | |
| PID_FILE=~/.restic_backup.pid | |
| TIMESTAMP_FILE=~/.restic_backup_timestamp | |
| if [ -f "$PID_FILE" ]; then | |
| if ps -p $(cat $PID_FILE) > /dev/null; then | |
| echo $(date +"%Y-%m-%d %T") "File $PID_FILE exist. Probably backup is already in progress." | |
| exit 1 | |
| else |
| [Scheme] | |
| Name=One Dark | |
| ColorForeground=#ABB2BF | |
| ColorCursor=#ABB2BF | |
| ColorBackground=#282C34 | |
| ColorSelection=#3B4451 | |
| ColorSelectionUseDefault=FALSE | |
| ColorBold=#B9C0CB | |
| ColorBoldUseDefault=FALSE | |
| ColorPalette=#282C34;#E06C75;#98C379;#E5C07B;#61AFEF;#C678DD;#56B6C2;#ABB2BF;#3E4452;#BE5046;#98C379;#D19A66;#61AFEF;#C678DD;#56B6C2;#5C6370 |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So β + D does not mean hold shift. β + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | β + T |
| Close Tab or Window | β + W (same as many mac apps) |
| Go to Tab | β + Number Key (ie: β2 is 2nd tab) |
| Go to Split Pane by Direction | β + Option + Arrow Key |
| #!/bin/sh | |
| # Duplicity wrapper | |
| # | |
| # Not working for now. Yandex prevents uploading lagre files via webdav. | |
| # add to crontab: | |
| # 0 0 * * * /bin/sh /usr/local/sbin/backup-host.sh | |
| set -e |
| /** | |
| * Converts an XML string to a JSON object, using logic similar to the | |
| * sunset method Xml.parse(). | |
| * @param {string} xml The XML to parse. | |
| * @returns {Object} The parsed XML. | |
| */ | |
| function xmlToJson(xml) { | |
| var doc = XmlService.parse(xml); | |
| var result = {}; | |
| var root = doc.getRootElement(); |
| docker rmi $(docker images -q -f dangling=true) |