Skip to content

Instantly share code, notes, and snippets.

View patricksamson's full-sized avatar

Patrick Samson patricksamson

View GitHub Profile

Keybase proof

I hereby claim:

  • I am lykegenes on github.
  • I am lykegenes (https://keybase.io/lykegenes) on keybase.
  • I have a public key ASD3i2-nRaK0QO2UEyTsg-e0DFlBYSYor899qF2oyhyAcwo

To claim this, I am signing this object:

@patricksamson
patricksamson / .bash_profile
Last active December 4, 2016 03:50 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@patricksamson
patricksamson / material-theme.terminal
Last active September 8, 2016 14:26 — forked from mvaneijgen/material-theme.terminal
Mac OS Terminal - Material theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ANSIBlackColor</key>
<data>
YnBsaXN0MDDUAQIDBAUGKSpYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS
AAGGoKcHCBMXGyImVSRudWxs1QkKCwwNDg8QERJcTlNDb21wb25lbnRzVU5TUkdCXE5T
Q29sb3JTcGFjZV8QEk5TQ3VzdG9tQ29sb3JTcGFjZVYkY2xhc3NPECgwLjAyNzQ1MTAw
NjcgMC4yMTE3NjQ3MjMxIDAuMjU4ODIzNDg0MiAxTxAoMC4wMzkzODA3NDc4MiAwLjE2
@patricksamson
patricksamson / Postgresql pg_upgrade on Ubuntu for pgsql 9.3 to 9.4
Last active January 4, 2017 05:47 — forked from martinseener/postgresql_9.1_to_9.3_on_ubuntu_debian
Postgresql pg_upgrade on Ubuntu for pgsql 9.3 to 9.4
# Add postgresql repo and update apt listing
echo "deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main" > /etc/apt/sources.list.d/pgdg.
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get upgrade
# Stop all running postgresql servers -- needed for migration of 9.3 data to 9.4 (pg_upgrade execution)
sudo /etc/init.d/postgresql stop
# Must link conf file into data directory since it's expected there by pg_upgrade.
@patricksamson
patricksamson / gpu.applescript
Last active August 29, 2015 14:26 — forked from soldni/gpu.applescript
Toggle between "discrete GPU only" and "automatic switching" on a 15" Retina MacBook Pro.
tell application "System Preferences"
reveal pane "com.apple.preference.energysaver"
end tell
tell application "System Events" to tell process "System Preferences" to tell window "Energy Saver"
set status to value of checkbox "Automatic graphics switching" of group 1
click checkbox "Automatic graphics switching" of group 1
end tell
quit application "System Preferences"
if status is 0 then
return "Automatic switch activated"
{{-- Define all our servers --}}
@servers(['staging' => '', 'production' => ''])
@setup
{{-- The timezone your servers run in --}}
$timezone = 'Europe/Amsterdam';
{{-- The base path where your deployments are sitting --}}
$path = '/var/www/site.com/htdocs';
LATIN CAPITAL LETTER B WITH STROKE
Unicode: U+0243
HTML: &#579;
LATIN SMALL LETTER B WITH STROKE
Unicode: U+0180
HTML: &#384;