This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Автозапуск віртуального дисплея `:99` з XFCE (і опціонально VNC) на Linux | |
Цей гайд налаштовує **Xvfb** як віртуальний X-сервер на дисплеї `:99`, запускає **XFCE** як сесію поверх нього та (за потреби) додає **x11vnc** для віддаленого доступу. Усе оформлено у вигляді `systemd` сервісів, щоб все стартувало автоматично при завантаженні системи. | |
--- | |
## Вимоги | |
- Debian/Ubuntu-подібна система з `systemd` | |
- Встановлений XFCE (в тебе вже встановлено) | |
- Пакети: `xvfb`, `x11vnc` (опціонально) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sqrt - square root | |
up = good +(fair/2 ) | |
down =poor +(fair/2 ) | |
n = up + down (count voice ) | |
z = 1.64485; //1.0 = 85%, 1.6 = 95% constant | |
phat = up / n; (good / count voice(n)) | |
(phat+z*z/(2*n)-z*sqrt((phat*(1-phat)+z*z/(4*n)/n))/(1+z*z/n); | |
doc http://habrahabr.ru/company/darudar/blog/143188/#habracut |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://pvr.wnet.ua:8018/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You need to add the following entry in /etc/apt/sources.list or a new file in /etc/apt/sources.list.d/: | |
deb http://cdn.debian.net/debian experimental main | |
You can install it with the following commands: | |
$ apt-get update | |
$ apt-get install -t experimental iceweasel | |
Please report any problem to the pkg-mozilla-maintainers@lists.alioth.debian.org list. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$HOME/.rbenv/bin:$PATH" | |
eval "$(rbenv init -)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cnJqueryUi = angular.module('cn.jquery', []); | |
cnJqueryUi.directive('autoComplete', function($http) { | |
// by default do not format autocomplete data | |
var defaultFormatter = function(data) { return data }; | |
return { | |
scope: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main | |
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 | |
http://wiki.postgresql.org/wiki/Apt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Установка nodejs на debian | |
# echo deb http://ftp.us.debian.org/debian/ sid main > /etc/apt/sources.list.d/sid.list | |
# apt-get update | |
# apt-get install nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'deploy/nginx') | |
require File.join(File.dirname(__FILE__), 'deploy/log') | |
default_run_options[:pty] = true | |
set :ssh_options, { :forward_agent => true } | |
set :application, "appname" | |
set :repository, "git@giturl" | |
set :scm, :git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails g migration add_image_to_adf_special_offers image:string | |
rails g migration remove_image_from_adf_special_offers image:string |
NewerOlder