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
rm -rf `find . -type d -name .svn` |
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
# See info on processor (available, used and generic info) | |
cat /proc/cpuinfo | |
# See info on memory (available, used and generic info) | |
cat /proc/meminfo | |
# See info on HDD | |
df -h | |
# and of course kind of task manager |
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
sudo /etc/init.d/gdm restart |
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 import https://svnserver/svn/repo_name -m "imported code into SVN" > ~/svn_import.log | |
# you need first to delete the metadata if you copied the code from another SVN repository |
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
LOGGER.info("Classpath: '" + System.getProperty( "java.class.path" ) + "'" ); | |
LOGGER.info("Ext dirs: '" + System.getProperty( "java.ext.dirs" ) + "'" ); | |
LOGGER.info("Library path: '" + System.getProperty( "java.library.path" ) + "'" ); | |
LOGGER.info("Path separator: '" + System.getProperty( "path.separator" ) + "'" ); |
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
# just use mvn:describe -Ddetail and specify the name of the plugin, see example below | |
mvn help:describe -Dplugin=org.jacoco:jacoco-maven-plugin -Ddetail |
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
# just run the below and you should be fine! | |
git config --global http.sslverify | |
############################################################################################# | |
# Before this EGit gave me the below error even if the SSL certificate was valid | |
# (from a CA, class 2 from startssl in my case) | |
# Cannot list the available branches. | |
# Reason: |
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
Why would you need this? | |
Because NxServer or VNC needs a special client installed in order to connect. | |
If your destination Ubuntu machine has multiple displays installed, you will eventually go crazy configuring it to be correctly seen from a Windows machine with a single display. It will show you 2 desktops on a single monitor... | |
Enabling Windows style RDP server in Ubuntu in easy. | |
Steps: | |
1. sudo apt-get install xrdp | |
2. cd ~ | |
3. echo "gnome-session --session=gnome-classic" > .xsession |
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
Sharing your Git repository using Git daemon (for pull & push) | |
1. In a git repository run the following command to share it in read-only mode (pull only): | |
git daemon --export-all --base-path=. | |
(from the folder with the project to be shared) | |
and then clone directly, like: |
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
# packages from localhost to localhost | |
sudo tcpdump -vvv -A -i lo port 8080 | |
# packages from localhost to somewhere else | |
sudo tcpdump -vvv -A host 192.168.1.101 | |
# packages coming and going on a specific port, specific interface | |
sudo tcpdump -vvv -A -i eth0 'port 8080' | |
# packages coming and going on a specific port, any interface |
OlderNewer