Category Archives: Handy

Working with Visual Studio 2010 and github on Synology

gitInstall the “GIT server”  package on your Synology Disk Station. Goto the package center and search for the “Git Server” package. Download and install it.

Install GitExtensions on your dev box.

Install the latest msysgit on your dev box.

Install the “Git Source Control Provider”  Visual Studio 2010 extension on your dev box. In Visual Studio goto Tools -> Extensions and search for “Git Source Control Provider” in the online gallery.

Now SSH to your Synology (either with putty or with a Linux terminal) and execute the following commands:

cd /volume1/
mkdir git
cd git
mkdir repo1.git
cd repo1.git
git --bare init
cd ..
chown -R johndoe:users repo1.git

This will create a so called “bare git” repository. A bare git repository can be used as a central repository to which you push your local repositories.

Ok; now there is a GIT repository created on your Synology. Next create a new Visual Studio solution. Right click the solution name and select “Create Git Repository”. This will add an .git folder to your solution directory and now your solution is in a local Git repository.

Next commit your new solution to the Git repository.Select all files; type your comment and hit “Commit”.

Now push your local repository to the central bare git repository you created earlier. Right click the solution name; choose Git (master) -> Push. The checklist for Git settings will show up if not all settings are valid. For now just click Ok. The Push dialog appears. Specify the remote name; for example: ssh://johndoe@10.0.0.1/volume1/repo1.git

Some useful GIT commands
In Visual Studio goto GIT -> GIT bash; a Bash command prompt will start.
Show available tags:

git tag

Create a tag in the GIT bash:

git tag -a v1.0.2 -m "The new version"

Commit your changes with a message:

git commit -m "Your message / comment"

Push the tag information:

git push --tag

Delete a tag:

git tag -d name_of_the_tag

GIT Use Case

Create bare repo on diskstation

git init --bare repo.git

On a client clone (initialise) a repository from the dskstation:

git clone ssh://git@diskstation.local/volume1/git/repo.git

[Remote “origin”] can be found in .git/config file; you could add an alias for convenience. A directory repo will be created that contains your files. Add files to your repo directory

Add them to the local stage:

git add file.txt

Commit them to the local repo:

git commit -m "Your comment"

Push them to the server repo:

git push origin master

A new branch master will be created. From now on you can use git push (without the origin master)

Share

Convert eml email to outlook pst

outlook

Did you ever want to import messages in the EML format to outlook and could not find an easy way to do this? This post describes the step to take, and the software to use, to make such a conversion easy.

You can add these EML files to your PST file with the help of OutlookFreeware.com Utilities. It lets you select the EML files to store and the destination location in Outlook. Works very good and its completely free (only needs registration).

Goto http://www.outlookfreeware.com/en/products/all/OutlookMessagesImportEML/ to get a copy. You will also need the “OutlookFreeware.com Runtime“.

Share

SSL and Certificates for IIS6.0

Installation of certificates in Windows 2003; you will be your own Certicate Authority.

Install the necessary software:

Internet Information Server
Certificate Services (for making your own certificates)
After installation a Default WebSite is created (check with inetmgr). This website contains a virtual directory called CertServ.

A CA can process certificate requests; browse to the URL http://ServerName/CertServ. On this site you can also retrieve the CA certificate.

Request a certicate
Start inetmgr
Create a new website e.g. SSLWebSite. Leave everything default

Share

Removing netmeeting from Windows 2003

To prevent WFP (Windows File Protection) to restore the files delete the items found in “Program FilesNetmeeting” from the folders:

%systemroot%Windowssystem32dllcache
%systemroot%WindowsServicesPacksI386

Execute the following commandline:

%systemroot%system32rundll32.exe setupapi,InstallHinfSection NetMtg.Remove 132 msnetmtg.inf

After a reboot Windows 2003 asks to delete user-settings for netmeeting; answer with Yes

Share

Schedule tasks with windows 2003

The following command schedules the “start.cmd” batch file to run hourly beginning at five minutes past midnight. Because the /mo parameter is omitted, the command uses the default value for the hourly schedule, which is every (1) hour. If this command is issued after 12:05 A.M., the program will not run until the next day.

schtasks /create /sc hourly /st 00:20:00 /tn “Move backup to fs” /tr start.cmd

Share

Keyboard shortcuts

Windows
Win+Break Open “System Properties”
Shft+Win+M Restore all windows
Shft+Ctrl+Esc Task Manager
Win+E Explorer

Visual Studio 2005
Server Explorer Ctrl+Alt+S
Solution Explorer Ctrl+Alt+L
Properties Window F4
Toolbox Ctrl+Alt+X
Class View Ctrl+Shft+C
Error List Ctrl+W,Ctrl+E
Bookmark Ctrl+K,Ctrl+K
Bookmark previous Ctrl+K,Ctrl+P
Output Window Ctrl+Alt+O
BreakPoints Ctrl+Alt+B
Tasklist Ctrl+,Ctrl+K
Insert Code Snippet Ctrl+K,Ctrl+X
Code Snippet manager Ctrl+K,Ctrl+B

Share