подключаемся к серверу и ставим Ansible
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
| "WTF IS \033[30;47m???", a practical cheat-sheet | |
| Font color definitions can be intimidating and nonsense at first, | |
| but it is quite easy, lets just follow character by character: | |
| ┌────────┤\033├── Escape character (ESC) | |
| │┌───────┤ [ ├── Define a sequence (many characters in a code) | |
| ││ | |
| ││┌──────┤ X ├── Parameter (optional) ┐ | |
| │││┌─────┤ ; ├── Parameter separator │ SGR Code |
| --- | |
| - Адыгея: | |
| - Абадзехская | |
| - Адамий | |
| - Адыгейск | |
| - Новая Адыгея | |
| - Нижний Айрюм | |
| - Апостолиди | |
| - Ассоколай | |
| - Кармир-Астх |
TL;DR
Install Postgres 9.5, and then:
sudo pg_dropcluster 9.5 main --stop
sudo pg_upgradecluster 9.3 main
sudo pg_dropcluster 9.3 mainThis gist is the source code for http://gary.beagledreams.com/page/go-websocket-chat.html
Copyright (c) 2013 Gary Burd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| # Конфигуратор lib/flexible_discounts/configuration.rb | |
| require 'singleton' | |
| class FlexibleDiscounts::Configuration | |
| class Filter | |
| class IncompleteArgumentList; end | |
| class Requirements |
| конфиг | |
| config/flexible_discounts.rb | |
| FlexibleDiscounts::Configuration.run do |config| | |
| config.filter :isbns, :scope => :item do | |
| requires do | |
| value :as => :array, :type => :isbn | |
| end | |
| logic do |item| |