This file contains hidden or 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. create tools.policy file: | |
grant { | |
permission java.security.AllPermission; | |
}; | |
2. run to start jstatd: | |
jstatd -J-Djava.security.policy=tools.policy |
This file contains hidden or 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
# create patch from diff between remote revisions | |
svn diff -r OLD:NEW > ~/changes_file.diff | |
# create patch from diff based on local changes | |
svn diff > ~/changes_file.diff | |
# apply a patch: -p0 makes sure that all files can be found correctly, -i specifies the input diff file | |
patch -p0 -i ~/changes_file.diff |
This file contains hidden or 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
svn merge --dry-run -r:73:68 http://my.repository.com/my/project/trunk | |
svn merge -r:73:68 http://my.repository.com/my/project/trunk | |
svn commit -m "Reverted to revision 68." | |
# Explanation | |
#Step 1 will perform a dry run and show you what the merge will produce. If you want to see exactly what changes will be applied, do a diff: | |
# | |
# svn diff -r:73:68 http://my.repository.com/my/project/trunk |
This file contains hidden or 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
gksudo gedit /usr/share/applications/name_of_your_app.desktop | |
# and add the below text in the file | |
[Desktop Entry] | |
Name=Eclipse Helios | |
Comment=Eclipse Helios | |
Exec=/external/apps/eclipse-jee-helios-SR2-linux-gtk-x86_64/eclipse/eclipse | |
Icon=/external/apps/eclipse-jee-helios-SR2-linux-gtk-x86_64/eclipse/icon.xpm | |
Terminal=false |
This file contains hidden or 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
# no 64 bit version of the flash debug player is available, thus we will use the 32 bit version and use nspluginwrapper to make it work | |
sudo killall -9 firefox | |
sudo apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper | |
sudo rm -f /usr/lib/mozilla/plugins/*flash* | |
sudo rm -f ~/.mozilla/plugins/*flash* | |
sudo rm -f /usr/lib/firefox/plugins/*flash* | |
sudo rm -f /usr/lib/firefox-addons/plugins/*flash* | |
sudo apt-get install ia32-libs nspluginwrapper libcurl3 libnss3-1d libnspr4-0d | |
cd ~ |
This file contains hidden or 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
BEGIN | |
FOR cur_rec IN (SELECT object_name, object_type | |
FROM user_objects | |
WHERE object_type IN | |
('TABLE', | |
'VIEW', | |
'PACKAGE', | |
'PROCEDURE', | |
'FUNCTION', | |
'SEQUENCE' |
This file contains hidden or 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. sudo apt-get install vsftpd | |
2. nano /etc/vsftpd.conf | |
uncomment: | |
local_enable=YES | |
write_enable=YES | |
comment: | |
#anonymous_enable=YES |
This file contains hidden or 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
git checkout HEAD path/to/file | |
# Without HEAD it's not working because the file is not there anymore |
This file contains hidden or 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
git diff commit_id1..commit_id2 -- path/to/file |
This file contains hidden or 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
# inspired from http://nathanhoad.net/how-to-meld-for-git-diffs-in-ubuntu-hardy | |
# and http://gitguru.com/2009/02/22/integrating-git-with-a-visual-merge-tool/ | |
sudo apt-get install meld | |
# create a python script with the below content and name it diff.py | |
#!/usr/bin/python |