Skip to content

Instantly share code, notes, and snippets.


Njuguna Gathere, Tirus njugunagathere

View GitHub Profile
giannisp / gist:ebaca117ac9e44231421f04e7796d5ca
Last active Sep 30, 2020
Upgrade PostgreSQL 9.6.5 to 10.0 using Homebrew (macOS)
View gist:ebaca117ac9e44231421f04e7796d5ca
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql
brew install postgresql@9.6
brew unlink postgresql@9.6
brew link postgresql
View bitbucket-pipelines.yml
# You can specify a custom docker image from Docker Hub as your build environment.
image: samueldebruyn/debian-git
- step:
- apt-get update
- apt-get -qq install git-ftp
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD
# for the second push run this command instead of init
Rajeshr34 /
Last active Sep 7, 2020
Wkhtmltopdf With Patched QT Setup Ubuntu 16+
cd ~
apt-get install libfontenc1 xfonts-75dpi xfonts-base xfonts-encodings xfonts-utils openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y
#replace arch
dpkg -i wkhtmltox_0.12.5-1.bionic_amd64.deb
apt --fix-broken install
mvaneijgen / bitbucket-pipelines.yml
Created Feb 17, 2017
Roots/sage compile and push to remote server via git ftp
View bitbucket-pipelines.yml
# This is a sample build configuration for PHP.
# Check our guides at for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
- step:
davidperezgar / bitbucket-pipelines.yml
Last active May 20, 2017
Bitbucket Pipelines YML to FTP
View bitbucket-pipelines.yml
image: savjee/docker-s3website-git-ftp-deploy
- step:
- git ftp init --user $FTP_USERNAME --passwd $FTP_PASSWORD
olivierlacan /
Last active Sep 28, 2020
How to migrate a Homebrew-installed PostgreSQL database to a new major version (9.3 to 9.4) on OS X. See upgraded version of this guide:

This guide assumes that you recently run brew upgrade postgresql and discovered to your dismay that you accidentally bumped from one major version to another: say 9.3.x to 9.4.x. Yes, that is a major version bump in PG land.

First let's check something.

brew info postgresql

The top of what gets printed as a result is the most important:

swarminglogic /
Last active Jun 4, 2020
watchfile - monitor file(s) and execute a command when files are changed
function showHelp() {
echo "watchfile - monitor file(s)/command and perform action when changed
Possible ways of usage
View gist:1475276
A good commit message looks like this:
Header line: explaining the commit in one line
Body of commit message is a few lines of text, explaining things
in more detail, possibly giving some background about the issue
being fixed, etc etc.
The body of the commit message can be several paragraphs, and
please do proper word-wrap and keep columns shorter than about
You can’t perform that action at this time.