Skip to content

Month: August 2014

Best guide to duplicity!

[key id] is your GPG public key ID.
[source] is the path to the files you want to backup.
[destination] is the (optional) folder on the server that you want to put the encrypted backup files in. 

http://www.evbackup.com/support-misc-duplicity/

Change author in Eclipse

Usually Eclipse uses your login alias as default in the @Author-tag in Java. You can change this by altering the values stored at

Window -> Preferences -> Java -> Code Style -> Code Templates -> Comments – >Types -> Edit

Window -> Preferences -> Java -> Editor -> Templates -> @author -> Edit

and change the  ${user} variable to whatever you like in both menus. It’s not a pretty way, hardcoding the values – but it’s universal and it works!

How to clone a repo from BitBucket

Navigate to the work dir.

Clone the repo to the current work dir.

Example:

How to get started with an empty repo on BitBucket

Navigate to the work dir.

Use init to create a .git-file in the dir.

Add the online repository to the dir.

 

Create a README-file, or just anyting you could push to the repo.
The status command will show you which files that isn’t in sync with the repo.

Now add the file to the repo. This will add the file to the “upload queue” and let you write a small message that tell you and others what’s changed.

And now it’s time to commit the file to the online repo. This will upload all the commited files to the BitBucket-repo.

Shell
1
git pushuorigin master