This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Listando Processo no Linux | |
ps -f -u postgres | |
REF -> [http://canaltech.com.br/tutorial/linux/conheca-6-comandos-para-gerenciar-processos-do-linux/] | |
Listando endereços TCP/IP e portas do PostgreSQL | |
sudo lsof -n -u postgres |grep LISTEN | |
REF -> [http://www.vivaolinux.com.br/dica/O-comando-lsof] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"color_scheme": "Packages/Boxy Theme/schemes/Boxy Tomorrow.tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "monaco", | |
"font_size": 10, | |
"rulers": [122], | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"tab_size": 2, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://dl.dropbox.com/u/26209128/mac_fonts.tar.gz | |
tar zxvf mac_fonts.tar.gz | |
sudo mv fonts /usr/share/fonts/ | |
sudo fc-cache -f -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Baixe o tema Seti UI, coloque dentro da pasta package do sublime text e renomei a pasta para "Theme - Soda" para adicionar icones ao tema soda dark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var date = new Date(); | |
var firstDay = new Date(date.getFullYear(), date.getMonth(), 1); | |
var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- get all latest the finished progresses of all individuals | |
SELECT * | |
FROM progresses pr | |
WHERE id = ( | |
SELECT id | |
FROM progresses p | |
WHERE p.individual_id = pr.individual_id AND p.procedure_id = pr.procedure_id AND p.finished | |
ORDER BY p.created_at DESC LIMIT 1 ) | |
ORDER BY pr.created_at DESC; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [1] Definir o Vim como editor default | |
# http://vim.wikia.com/wiki/Set_Vim_as_your_default_editor_for_Unix | |
# no ubuntu | |
$~> sudo update-alternatives --config editor | |
# [2] Instalando pacotes .deb no linux | |
$~> sudo dpkg -i nome_do_infeliz.deb | |
# [2.1] Removendo pacotes .deb no linux | |
$~> sudo dpkg --purge nome_do_infeliz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edivan@mint-virtual-machine ~/Projetos/VidracariaPaulista $ cap development deploy | |
DEBUG [cfc067fd] Running /usr/bin/env [ -d ~/.rvm ] as [email protected] | |
DEBUG [cfc067fd] Command: [ -d ~/.rvm ] | |
DEBUG [cfc067fd] Finished in 2.421 seconds with exit status 1 (failed). | |
DEBUG [73c05d07] Running /usr/bin/env [ -d /usr/local/rvm ] as [email protected] | |
DEBUG [73c05d07] Command: [ -d /usr/local/rvm ] | |
DEBUG [73c05d07] Finished in 0.338 seconds with exit status 0 (successful). | |
DEBUG [0e7d0208] Running /usr/local/rvm/bin/rvm version as [email protected] | |
DEBUG [0e7d0208] Command: /usr/local/rvm/bin/rvm version | |
DEBUG [0e7d0208] rvm 1.26.10 (latest) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= form_for(@ambiente, :html => {:class => "form-horizontal"}) do |f| %> | |
<% if @ambiente.errors.any? %> | |
<div id="error_explanation"> | |
<h2><%= pluralize(@ambiente.errors.count, "error") %> prohibited this ambiente from being saved:</h2> | |
<ul> | |
<% @ambiente.errors.full_messages.each do |message| %> | |
<li><%= message %></li> | |
<% end %> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo fdisk -l |