Skip to content

Instantly share code, notes, and snippets.

View fabiotatsuo's full-sized avatar

Fabio Tatsuo fabiotatsuo

View GitHub Profile
@fabiotatsuo
fabiotatsuo / gist:5431764
Created April 22, 2013 00:44
Emacs install
http://www.mikeyboldt.com/2011/11/30/install-emacs-24-in-ubuntu/#comment-375
After reading several good things about emacs 24, I decided to give it a shot. A little googling led me to Damien Cassou’s emacs snapshot PPA. Simply ran the following:
sudo add-apt-repository ppa:cassou/emacs
sudo apt-get update
sudo apt-get install emacs-snapshot
emacs-snapshot
@fabiotatsuo
fabiotatsuo / gist:5433909
Created April 22, 2013 10:53
Setup erros Eclipse
Windows > Preferences > Web > JSF > Validation
- General Problems
General Syntax Error = Warning
Empty EL expression = Warning
Missing closing bracket on expression = Ignore
Applying operator to method binding = Ignore
Dotted property names should use array ([]) syntax = Warning
- Possible programming errors
@fabiotatsuo
fabiotatsuo / gist:5434921
Last active December 16, 2015 12:29
Imagens Amazon S3
Create a folder static/imagens on root
sudo mkdir -r /static/
Create the subfolders like amazon S3
@fabiotatsuo
fabiotatsuo / gist:5438619
Last active December 16, 2015 12:59
Git checkout
Git status
Git check out aplication.properties persistence.xml
Git add .
Git commit -m "msg"
Merge
Git add .
Git commit -m "merge de arquivos"
Git pull
Git push
@fabiotatsuo
fabiotatsuo / gist:5438638
Created April 22, 2013 21:19
VI / VIM / Emacs / Eclipse Cheat Sheets
VI / VIM
https://cloudup.com/c4EwcFOQqHi
Emacs
http://www.rgrjr.com/emacs/emacs_cheat.html
http://cs.iupui.edu/~kweimer/EmacsCheatSheet.pdf
Eclipse Indigo
https://code.google.com/p/eclipse-cheatsheet/
@fabiotatsuo
fabiotatsuo / gist:5438909
Created April 22, 2013 21:57
Kill Tomcat
netstat -ntpl
kill -9 PID
@fabiotatsuo
fabiotatsuo / gist:5442610
Last active December 16, 2015 13:38
Tomcat 7 log
Terminal Amazon AWS
sudo su -
tail -1000f /var/log/tomcat7/catalina.out
@fabiotatsuo
fabiotatsuo / gist:5445736
Created April 23, 2013 17:42
Persistence.xml
jdbc:mysql://enderecodords
@fabiotatsuo
fabiotatsuo / gist:5461878
Last active December 16, 2015 16:19
Searching Bugs Banner
Mysql Workbench
Filtering
SELECT * FROM sequencia_banner where id in (14,21,22,23);
Put message on console
ExibeBannerBean
System.out.println("ATUALIZANDO VIEWS");
ExibeBannerBean
@fabiotatsuo
fabiotatsuo / gist:5464889
Last active December 16, 2015 16:40
Eclipse on Ubuntu launcher
Set icon for eclipse
sudo cp /yourEclipseFolder/icon.xpm /usr/share/pixmaps/eclipse.xpm
///////////////////////////////////
For Ubuntu 11.10, 12.04, 12.10
If the applications folder does not exist inside ~/.local/share/ create it