Skip to content

Instantly share code, notes, and snippets.

View SemVerTsar's full-sized avatar

Philip Tunnard-Gardner SemVerTsar

View GitHub Profile
@SemVerTsar
SemVerTsar / upgrade-postgres-9.3-to-9.4.md
Last active January 10, 2019 16:39 — forked from dideler/upgrade-postgres-9.3-to-9.4.md
Upgrading PostgreSQL from 9.3 to 9.4

First, check the version of Ubuntu:

lsb_release -sc

You need to add the latest PostgreSQL repository for the latest version, otherwise It will install PostgreSQL 9.3. This is for trusty version.

sudo add-apt-repository "deb https://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main"

Update and Install PostgreSQL 9.4:

Step 1: Provision a server

  • Completed

Step 2: Setup DNS

Using the IP address from the server

  • Completed

Step 3: Setup OS level tools

@SemVerTsar
SemVerTsar / update_teams
Last active January 25, 2022 00:09
Using GitHub's API to manage a team's access to repos.
#!/usr/bin/env python
# http://pygithub3.readthedocs.org/en/latest/
# Pip install pygithub3
from pygithub3 import Github
token = '<your GitHub application token>'
# Teams