Skip to content

Instantly share code, notes, and snippets.

View amandasantanati's full-sized avatar

Amanda Santana amandasantanati

View GitHub Profile
# settings
typeset +H karen="$FG[124]"
typeset +H hikari="$FG[033]"
typeset +H maya="$FG[242]"
typeset +H kuro="$FG[214]"
typeset +H nana="$FG[226]"
typeset +H junna="$FG[043]"
typeset +H kaoruko="$FG[200]"
typeset +H futaba="$FG[135]"
typeset +H mahiru="$FG[070]"
@amandasantanati
amandasantanati / Dockerfile
Created February 18, 2020 10:04
Dockerfile for ubuntu 18.04 based system with Rails and SSH
FROM ubuntu:18.04
LABEL mantainer='Amanda Santana'
RUN apt-get update
RUN apt-get install -y openssh-server vim curl git sudo zip
RUN apt-get update
RUN apt-get install -y build-essential automake autoconf \
bison libssl-dev libyaml-dev libreadline6-dev \
zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev \
@amandasantanati
amandasantanati / Vagrantfile
Last active November 9, 2015 20:56
Vagrantfile general configuration to Rails development
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = '2'
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = 'ubuntu/trusty64'
config.ssh.insert_key = false
# enable as needed
@amandasantanati
amandasantanati / setting_up_rails.sh
Last active December 13, 2015 14:47
Shortcuts to install and set up Vagrant to Rails development
# install virtualbox
# install vagrant
# install VirtualBox GuestTools: VBoxLinuxAdditions.run
# entering project folder
cd project_folder
# creating Vagrantfile
vagrant init
Complete list of toolbar items of CKEditor
'Source', 'Save', 'NewPage', 'DocProps', 'Preview', 'Print', 'Templates', 'document'
'Cut', 'Copy', 'Paste', 'PasteText', 'PasteFromWord', 'Undo', 'Redo'
'Find', 'Replace', 'SelectAll', 'Scayt'
'Form', 'Checkbox', 'Radio', 'TextField', 'Textarea', 'Select', 'Button', 'ImageButton', 'HiddenField'
'Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', 'RemoveFormat'
'NumberedList', 'BulletedList', 'Outdent', 'Indent', 'Blockquote', 'CreateDiv'
'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', 'BidiLtr', 'BidiRtl'
'Link', 'Unlink', 'Anchor', 'CreatePlaceholder', 'Image', 'Flash', 'Table', 'HorizontalRule'
@amandasantanati
amandasantanati / gist:8ead0791f5fe2a67bc36
Created May 21, 2015 00:45
CakePHP 3.x beforeFilter
public function beforeFilter(Event $event)
{
I18n::locale('pt_br');
}