Monday, May 18, 2015

Mysql backup using alias

This alias will create database backup with current date in filename:

alias dbbck='mysqldump -u myusername -pmypassword mydatabase > mijalkodb_$(date +"%Y_%m_%d").sql'

Add this to your .bashrc 

Tuesday, April 07, 2015

Strange osx shortcuts

Remander for me:


  • To maximize window press shift and double click on title bar
  • Blocked ssh connection: Enter  ~  .

Wednesday, December 10, 2014


Cloud Design Patterns: Prescriptive Architecture Guidance for Cloud Applications

http://msdn.microsoft.com/en-us/library/dn568099.aspx

Friday, August 15, 2014

Ubuntu tasks in separate terminals

On my current project I need to open few terminals (5 and more) and start different processes. For example, I need to open terminal, change current dir, start ruby application. On second terminal I open virtual env start python script etc...

I had a problem also with finding right terminal window when I needed.
So I created scripts that open all my terminals and give them appropriate names

terminal1.sh :

#!/bin/bash
source '/home/dev/.bashrc'
echo -ne '\033]0;Web server\007'
cd '/home/dev/src/proj1'
source '/home/dev/src/venv/bin/activate'
bash /home/dev/src/proj1/start_web_server.sh


To start all terminals I neede one more script

#!/bin/bash

gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal1.sh'
gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal2.sh'
gnome-terminal --window-with-profile=dev --working-directory='/home/dev/' -e 'bash --rcfile /home/dev/scripts/terminal3.sh'

Wednesday, February 12, 2014

Thursday, October 03, 2013

HttpSelfHostServer and maximum concurrent connections

To set up maximum concurrent connections for HttpSelfHostServer you need to tweak following properties:

  • In HttpSelfHostConfiguration set MaxConcurrentRequests (this is not enough, continue reading)
  • System.Net.ServicePointManager.DefaultConnectionLimit
  • ThreadPool.SetMinThreads

Monday, December 10, 2012

Google Apps Alternative

Don't be evil company is not so good anymore. There is no Google apps for free anymore (this was good application for families domain names).

Check domains.live.com as an alternative.

And please post your experiences here.