Skip to content

Instantly share code, notes, and snippets.

View andrey-yantsen's full-sized avatar

Andrew Y. andrey-yantsen

View GitHub Profile
#!/bin/bash
for i in $(ls -d *x* 2>/dev/null)
do
if [[ $i =~ [0-9]+x[0-9]+ ]]
then
echo $i
ls *.jpg *.JPG 2>/dev/null | while read f
do
if ! [ -f $i/$f ]
server {
listen 80;
root @HOTELLOOK_ROOT@/;
index index.php index.html;
location / {
index index.html index.php;
try_files $uri $uri/ /index.php?$args;
}
$I->fillField('input[name="cityName"]', 'Lond');
$I->pressKeyDown('input[name="cityName"]', 'o');
$I->pressKey('input[name="cityName"]', 'o');
$I->pressKeyUp('input[name="cityName"]', 'o');
$I->wait(1000);
$I->seeInField('input[name="cityName"]', 'Londo');
@andrey-yantsen
andrey-yantsen / _bootstrap.php
Created August 13, 2013 10:48
Correct AspectMock configuration for Yii1
$kernel->init([
'debug' => false,
'includePaths' => [
__DIR__ . '/../'
],
'appDir' => __DIR__ . '/../',
'excludePaths' => [
__DIR__ . '/../config',
__DIR__ . '/../vendor/codeception/aspect-mock',
__DIR__ . '/../runtime',
#!/bin/bash
#### CONFIG ####
XFERLOG="/opt/psa/var/log/xferlog"
MATCH_FILES="index default defaults"
EXCLUDE_LIST=""
awk '($12 ~ /^i$/ && $NF ~ /^c$/){print $9, $8, $14, $7, $1, $2, $3, $4, $5}' $XFERLOG | while read logLine
do
lineArr=($logLine)
fileNameWithPath=${lineArr[0]}