Skip to content

Instantly share code, notes, and snippets.

View .vimrc
set backspace=2 " backspace in insert mode works like normal editor
syntax on " syntax highlighting
filetype indent on " activates indenting for files
set autoindent " auto indenting
set number " line numbers
colorscheme desert " colorscheme desert
set nobackup " get rid of anoying ~file
View deploy.rb
server 'localhost', port: 3000, roles: [:web, :app, :db], primary: true
set :repo_url, 'https://github.com/plombix/Group_app.git'
set :application, 'Group_app'
set :user, 'deploy'
set :puma_threads, [4, 16]
set :puma_workers, 0
# Don't change these unless you know what you're doing
set :pty, true
set :use_sudo, false
set :stage, :production
View nginx.md

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone

@plombix
plombix / views_com.rb
Last active Aug 31, 2016
This script provide commenting & un-commenting fuctionanilty over every view files in a rails project .
View views_com.rb
# **************************************************************************** #
# #
# ::: :::::::: #
# views_com.rb :+: :+: :+: #
# +:+ +:+ +:+ #
# By: sballet <sballet@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2016/07/04 14:47:15 by sballet #+# #+# #
# Updated: 2016/07/13 18:17:29 by sballet ### ########.fr #
# #
@plombix
plombix / erb_type.rb
Created Aug 31, 2016
Basic ruby string operation to find if file is '.erb' or not
View erb_type.rb
class String
def erb?
self[-3..-1] == "erb"
end
end