The standard library for security is ESAPI from the OWASP fondation.
The OWASP Enterprise Security API GitHub repositories:
https://github.com/ESAPI/esapi-java
https://github.com/ESAPI/esapi-java-legacy
Monday, September 22, 2014
Thursday, July 10, 2014
windows - Sync left pane in Explorer with opened folder
Click on an empty space on the left pane, enable: "Show all folders" and "Expand to current folder"
Source
Source
Monday, July 7, 2014
bash - history sharing between sessions
# .bash_rc
HISTSIZE=9000
HISTFILESIZE=$HISTSIZE
HISTCONTROL=ignorespace:ignoredups
history() {
_bash_history_sync
builtin history "$@"
}
_bash_history_sync() {
builtin history -a #1
HISTFILESIZE=$HISTSIZE #2
builtin history -c #3
builtin history -r #4
}
PROMPT_COMMAND=_bash_history_sync
history() overrides the original function to make sure that the history is synchronised before it is printed, so the numbers match.
Source | cheat sheet (pdf) | Nice article
Wednesday, June 25, 2014
Windows - Track and kill the right process
If you try to delete a file/folder and Windows stop you, because there's alread an other process which lock it, then you can use Process Explorer to track and kill that process.
- Download & Install Process Exploerer
- Find -> Find Handle or DLL ...
- Insert the path of the file in "Handle or DLL substring:"
- Click the "Search" button
bash - customizing
In the ".bashrc" file, you can add...
To add the time/date in the history:
HISTTIMEFORMAT="%d/%m/%y %T "
Shortcut for "ls -l":
alias ll="ls -l"
Shortcut for a fast maven clean build:
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
Modify the prompt:
export PS1="\n\u@\h \w\n$ "
Always activate the color in grep:
export GREP_OPTIONS="--color"
Add magic to the space !cmd ...
bind Space:magic-space
Result:
__________________________.bashrc __________________________
# .bashrc
HISTTIMEFORMAT="%d/%m/%y %T "
export PS1="\n\u@\h \w\n$ "
export GREP_OPTIONS="--color"
alias ll='ls -l'
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
To add the time/date in the history:
HISTTIMEFORMAT="%d/%m/%y %T "
Shortcut for "ls -l":
alias ll="ls -l"
Shortcut for a fast maven clean build:
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
Modify the prompt:
export PS1="\n\u@\h \w\n$ "
Always activate the color in grep:
export GREP_OPTIONS="--color"
Add magic to the space !cmd ...
bind Space:magic-space
Result:
__________________________.bashrc __________________________
# .bashrc
HISTTIMEFORMAT="%d/%m/%y %T "
export PS1="\n\u@\h \w\n$ "
export GREP_OPTIONS="--color"
alias ll='ls -l'
alias mvnci="mvn clean install -DskipTests -Dcheckstyle.skip=true"
bind Space:magic-space
__________________________.bashrc __________________________
Extra
To show line numbers in vi, modify the .vimrc (once inside vi, you can disable it if you want to copy the line without the number with: ":set number!"):
set number
Wednesday, May 14, 2014
Tuesday, May 13, 2014
SVN - Credentials for corporate proxy
There a simple way to add the credentials to the svn client:
%appdata%\Subversion\servers
http-proxy-host=proxy-corpo
http-proxy-port=80
http-proxy-username=username
http-proxy-password=password
%appdata%\Subversion\servers
http-proxy-host=proxy-corpo
http-proxy-port=80
http-proxy-username=username
http-proxy-password=password
Subscribe to:
Posts (Atom)