Skip to content

Instantly share code, notes, and snippets.

View plombix's full-sized avatar
🏠
Working from home

plombix plombix

🏠
Working from home
View GitHub Profile
@plombix
plombix / erb_type.rb
Created August 31, 2016 11:02
Basic ruby string operation to find if file is '.erb' or not
class String
def erb?
self[-3..-1] == "erb"
end
end
@plombix
plombix / views_com.rb
Last active August 31, 2016 11:08
This script provide commenting & un-commenting fuctionanilty over every view files in a rails project .
# **************************************************************************** #
# #
# ::: :::::::: #
# 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 / nginx.md
Last active September 5, 2016 11:21

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 / deploy.rb
Last active September 19, 2016 20:35
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
@plombix
plombix / .vimrc
Created April 11, 2017 22:05
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