This file contains 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
<?php | |
echo "TEST"; | |
if ($argv[1]) { | |
sleep(10); | |
echo "RUN AGAIN"; | |
exit; | |
} |
This file contains 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
server | |
{ | |
# To avoid changing your app config | |
# point Nginx to the Solr port | |
listen 8983; | |
# Set read/write variables | |
set $solr_write "0"; | |
set $solr_read "1"; | |
set $solr_admin "0; |
This file contains 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
#!/bin/bash | |
# Install RVM | |
\curl -L https://get.rvm.io | sudo bash -s stable | |
# Add user to a group | |
# Todo: Remove hardcoding | |
sudo usermod -a -G rvm ubuntu | |
# Trying to avoid logout / login part here |
This file contains 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
diff --git a/sites/all/modules/simpletest/drupal_web_test_case.php b/sites/all/modules/simpletest/drupal_web_test_case.php | |
index 9a9c360..fb67fba 100644 | |
--- a/sites/all/modules/simpletest/drupal_web_test_case.php | |
+++ b/sites/all/modules/simpletest/drupal_web_test_case.php | |
@@ -1310,6 +1310,11 @@ class DrupalWebTestCase extends DrupalTestCase { | |
if (!isset($this->curlHandle)) { | |
$this->curlHandle = curl_init(); | |
+ | |
+ if (empty($this->cookieFile)) { |
This file contains 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 submodules lazyloading, very useful for private modules repos | |
// where you don't want to create separate repo for evey module | |
// using this snippet, you can create one main repo for private modules | |
// and create submodules inside subfolder with the same name. | |
var fs = require('fs'); | |
exports.answer = 42; // Some existing property | |
// This is how you would do it without lazy loading | |
// basically u would need to require every submodule right away |
This file contains 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
1382383761.140 38.96.155.45 - 2013-10-21T19:29:21+00:00 GET /sites/all/modules/admin/includes/admin.toolbar.js?Q HTTP/1.1 200 1616 "http://www.fastcompany.com/account/skhaladzinski" "Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/28.0.1500.71 Chrome/28.0.1500.71 Safari/537.36" US 0.001 "-" www.fastcompany.com 6dfca709 | |
input { | |
file { | |
'path' => '/path/to/file.log' | |
'type' => 'fcd6_nginx_access' | |
} | |
} |
This file contains 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
service "opscenter-agent" do | |
supports :status => true | |
start_command "#{agent_dir}/bin/opscenter-agent" | |
status_command "ps aux | grep -q '[o]pscenter-agent'" | |
stop_command "kill $(ps aux | grep '[o]pscenter-agent' | awk '{print $2}')" | |
action :start | |
end |
This file contains 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
- Каждый сценарий должен иметь смысл и выполняться независимо от других сценариев. Это подразумевает что каждый сценарий должен иметь достаточно шагов Given для того чтобы создать необходимый контекст для выполнения теста. | |
- Создатели фич должны иметь возможность описать свои мысли в свободной форме, чтобы фича читалась натурально. Это означает что они могут использовать фразы отличающиеся друг от друга но подразумевающие один результат. Очень важно чтобы фичи не звучали как написанные роботом. | |
- При написании фич, сделайте упор на читабельность, в противном случае они будут выглядеть как программа или тех спецификация и мы хотим избежать этого любой ценой! Ведь если не программист с трудом может понять что происходит в фиче, зачем тогда вообще их писать? ( Ведь ВDD в первую очередь направлен на коммуникацию - если это отбросить то можно вернуть к старым добрым simpletest или codeception ) | |
- Старайтесь избегать технических деталей вроде "чистка очереди", "запуск back-end сервиса", "открытие браузреа на бе |
This file contains 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
version: '2' | |
services: | |
app: | |
image: gansbrest/php7-fpm | |
volumes: | |
- .:/usr/share/nginx/html | |
environment: | |
XDEBUG_CONFIG: remote_host=192.168.1.13 | |
depends_on: |
This file contains 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
server { | |
listen 80 default_server; # redundant in new nginx versions | |
server_name _; | |
#index index.php index.html index.htm; | |
root /usr/share/nginx/html/web; | |
# Block access to "hidden" files and directories whose names begin with a |