Monthly Archives: April 2012

How to restore windows MBR from linux

Just install collection of boot loaders (usually already installed)
And use DD, Luke 🙂 🙂

  #aptitude install syslinux
  #sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
  # aptitude search syslinux
  i   syslinux                                                               - collection of boot loaders                                                      
  i   syslinux-common                                                        - collection of boot loaders (common files)

Some interesting search word statistic resources.

For one article (other project, not it.randomthemes) I look fore some “search engine” wordstat.
Google and Yandex provides it. Here are links:

https://adwords.google.com/select/KeywordToolExternal
http://google.com/insights/search/#geo=RU&cmpt=q
http://wordstat.yandex.ru/

How to use GIT + bitbucket

Finally I decide to move all my projects from SVN to Git.
And my friends recommend https://bitbucket.org/ – perfect place for hosting projects. Absolutely free for small groups (up to 5 accounts as I remember.)
+ Jira + wiki etc.

So, your register, create first repo then commit files.
It`s very trivial, but I always forget syntax. 🙂

  git init
  git remote add origin https://ksi_sergey@bitbucket.org/ksi_sergey/ruby-mail-filter.git
  git add .
  git status
  git commit -m "First commit"
  1 files changed, 44 insertions(+), 0 deletions(-)
  create mode 100755 filter.rb

And Push

  git push -u origin master
  Password:
  Counting objects: 3, done.
  Delta compression using up to 4 threads.
  Compressing objects: 100% (2/2), done.
  Writing objects: 100% (3/3), 755 bytes, done.
  Total 3 (delta 0), reused 0 (delta 0)
  remote: bb/acl: ksi_sergey is allowed. accepted payload.
  To https://ksi_sergey@bitbucket.org/ksi_sergey/ruby-mail-filter.git
   * [new branch]      master -> master
  Branch master set up to track remote branch master from origin.
  $:~/Ruby Mail Filter$

Done 🙂