Skip to content

Instantly share code, notes, and snippets.

View tgezginis's full-sized avatar

Tolga Gezginiş tgezginis

View GitHub Profile
@tgezginis
tgezginis / upgrade-postgres-9.3-to-9.4.md
Created March 15, 2016 14:24 — forked from dideler/upgrade-postgres-9.3-to-9.4.md
Upgrading PostgreSQL from 9.3 to 9.4 when upgrading Ubuntu 14.04 to 14.10

TL;DR

sudo pg_dropcluster 9.4 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 main

@tgezginis
tgezginis / git_tag_cleanup.rb
Last active August 29, 2015 14:26 — forked from nathanl/git_tag_cleanup.rb
Clean up tags in a git repository
# Script to delete all but a specified list of tags
# from a git repo, both locally and remotely
# Run like `mode=test ruby git_tag_cleanup` to test;
# use 'execute' mode to actually delete the tags
mode = ENV['mode'] || 'test'
tags_to_keep = %w[v2.0.0 v2.0.1]
tags_to_delete = `git tag`.split("\n") - tags_to_keep
@tgezginis
tgezginis / Gemfile
Created July 25, 2014 18:07
RoR Google Analytics Sample
gem 'google-api-client'