четверг, 26 февраля 2015 г.

Исправление ошибки при использовании P/Invoke

Чтобы исправить вот эту ошибку:

System.BadImageFormatException: Была сделана попытка загрузить программу, имеющую неверный формат.

Нужно в свойствах проекта Visual Studio установить платформу сборки x86.Properties - Build - Platform Target - x86



#slack for windows with desktop notifications

Hello there!

There are no official desktop Slack version, so I started to search non-official clients. I have found this project SlackUI, but that version does not support desktop notifications :(

So, I have been working on new Slack UI with desktop notifications. Here is result of my work (be careful, 25 Mb GIF):

https://lh4.googleusercontent.com/GdVxADmQTy3BRVpF7X2Ml8SoCmvxjcg2tOkcLEMERnB5ZNba-hXwEQ3p4ym3lc7xkYA7dlEFyZk=w1896-h875




What works?

  • Drag'n'Drop
  • Notifications

What doesn't work?

  • Opening links in new window
  • Hiding to tray

Where can I download?

четверг, 19 февраля 2015 г.

How to set Omnibus Gitlab unicorn workers count

Stop your gitlab instance

sudo gitlab-ctl stop

Edit file
/etc/gitlab/gitlab.rb


Uncomment and set unicorn workers count

#!/bin/sh
##################
# GitLab Unicorn #
##################
## Tweak unicorn settings.

# unicorn['worker_timeout'] = 60
unicorn['worker_processes'] = 1

How to set Omnibus #Gitlab #Sidekiq workers count

Stop your gitlab instance

sudo gitlab-ctl stop

Edit file
/opt/gitlab/sv/sidekiq/run


Set your workers count

#!/bin/sh

cd /var/opt/gitlab/gitlab-rails/working

exec 2>&1

exec chpst -e /opt/gitlab/etc/gitlab-rails/env -P \
  -U git -u git \
  /opt/gitlab/embedded/bin/bundle exec sidekiq \
    # ADD THE LINE BELOW AND SET NUMBER OF WORKERS
    -c 3 \  # <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< SET NUMBER OF WORKERS HERE
    -q post_receive \
    -q mailer \
    -q system_hook \
    -q project_web_hook \
    -q gitlab_shell \
    -q common \
    -q default \
    -e production \
    -r /opt/gitlab/embedded/service/gitlab-rails \
    -t 4

Configuring Jenkins for C# projects

Steps in my build configuration Restore nuget packages chcp 1251 .nuget\nuget.exe restore Swag.sln Build solution chcp 1251 cmd.e...