Skip to content

Instantly share code, notes, and snippets.

View dklisiaris's full-sized avatar

Dimitris Klisiaris dklisiaris

View GitHub Profile
@dklisiaris
dklisiaris / postgres-install.md
Last active August 29, 2015 14:18
Quick PostgreSQL install and setup in Ubuntu 14.04

Install postgres.

sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib libpq-dev

Change to posgres user who is the default user created by postgres

@dklisiaris
dklisiaris / Preferences.sublime-settings
Created September 27, 2016 09:43
My sublime preferences file
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_options":
[
"subpixel_antialias"
],
"ignored_packages":
// Fills all textareas and text input fields in page with random characters
$.each($("textarea, input[type='text']"), function(index, textfield){
$(textfield).val(Math.random().toString(24).substring(7))
});