Skip to content

Instantly share code, notes, and snippets.

View johnt1000's full-sized avatar
🐞
if without condition

Jônatas Rodrigues johnt1000

🐞
if without condition
View GitHub Profile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y wget unzip
cd /vagrant && wget https://dl.dropboxusercontent.com/u/25746552/scripts/instant_client_oracle/32/instantclient-basiclite-linux-12.1.0.2.0.zip
cd /vagrant && wget https://dl.dropboxusercontent.com/u/25746552/scripts/instant_client_oracle/32/instantclient-sdk-linux-12.1.0.2.0.zip
cd /vagrant && wget https://dl.dropboxusercontent.com/u/25746552/scripts/instant_client_oracle/32/instantclient-sqlplus-linux-12.1.0.2.0.zip
sudo mkdir /opt
sudo mkdir /opt/oracle
@johnt1000
johnt1000 / solutions.markdown
Created November 5, 2015 17:50 — forked from bvajda/solutions.markdown
ruby/rails tips, tricks, solutions

Ruby and Rails Tips, Tricks and Solutions

  • 'normalize_yaml_input' error might be caused by wrong locale settings.

    # CLI
    locale
    # => "LC_ALL ="
    export LC_ALL="en_US" # (or your locale of choice)
    
#!/usr/bin/env bash
sudo sh -c "echo 'export LANGUAGE=en_US.UTF-8' >> /etc/bash.bashrc"
sudo sh -c "echo 'export LANG=en_US.UTF-8' >> /etc/bash.bashrc"
sudo sh -c "echo 'export LC_ALL=en_US.UTF-8' >> /etc/bash.bashrc"
sudo sh -c "echo 'LC_ALL=en_US.UTF-8' > /etc/default/locale"
sudo sh -c "echo 'LANG=en_US.UTF-8' >> /etc/default/locale"
sudo locale-gen en_US.UTF-8
sudo dpkg-reconfigure locales
#sudo sh -c "echo 'deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
@johnt1000
johnt1000 / install_psql_php.sh
Last active September 12, 2015 02:10 — forked from giorgiofellipe/install_psql_php.sh
Install PHP PGSQL extensions on Mac OS X Yosemite (change PHP_VER with your PHP version)
PHP_VER="5.5.14"
# Check if extension exists first
php -m | grep pgsql
# Update brew and install requirements
brew update
brew install autoconf
# Download PHP source and extract