Open terminal
sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text
# Deploy group | |
deploy_group=deploy | |
# Deploy user | |
deploy_user=deploy | |
# Github usernames for access with ssh to deploy user | |
usernames=(tayfunoziserikan ismailakbudak) | |
# Check user is exist | |
id -u $deploy_user &> /dev/null | |
if [ $? -ne 0 ] |
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
tr: | |
devise: | |
confirmations: | |
confirmed: "Eposta adresiniz başırılı bir şekilde onaylandı." | |
send_instructions: "Bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
send_paranoid_instructions: "Eğer eposta adresinizi veritabanımızda kayıtlı ise bir kaç dakika içerisinde eposta adresinizi nasıl onaylayacağınız hakkında bir eposta alacaksınız." | |
failure: | |
already_authenticated: "Zaten giriş yaptınız." |
#!/usr/bin/env ruby | |
# this is a test of ruby-processing (https://github.com/jashkenas/ruby-processing) with video capture | |
# use "rp5 unpack library" at a command line to install the video library, among others | |
# tested with Ruby 1.9.2 on OSX with built in web cam | |
class VideoCaptureTest < Processing::App |
# Put this in your Rails app's lib/tasks directory | |
namespace :db do | |
desc "Fix 'ERROR: must be owner of extension plpgsql' complaints from Postgresql" | |
task :fix_psql_dump do |task| | |
filename = ENV['DB_STRUCTURE'] || File.join(ActiveRecord::Tasks::DatabaseTasks.db_dir, "structure.sql") | |
sql = File.read(filename) | |
sql.sub!(/(CREATE EXTENSION IF NOT EXISTS plpgsql)/, '-- \1') | |
sql.sub!(/(COMMENT ON EXTENSION plpgsql)/, '-- \1') | |
File.open(filename, 'w') do |f| | |
f.write(sql) |
## Run this script with root user | |
# After installation check this | |
# vi /etc/ssh/sshd_config # Change ssh post | |
# vi /etc/environment # Write below locales | |
# LANGUAGE="en_US.utf8" | |
# LC_ALL="en_US.utf8" | |
# dpkg-reconfigure locales # Configure locales | |
## Fancy echo | |
fancy_echo() { |
## Run this command with deploy user | |
# define user home path | |
user_path=/home/deploy | |
## Fancy echo | |
fancy_echo() { | |
printf "\n%b\n" "$1" | |
} | |
fancy_echo "Installing rbenv..." | |
git clone git://github.com/sstephenson/rbenv.git $user_path/.rbenv |