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 | |
/** | |
* Скрипт, демострирующий как можно обойти eval для нахождения результата конкатенации строк. | |
* | |
* @category INDEX0H | |
* @package MAIN | |
* @subpackage SCRIPTS | |
* @author Roman Levishchenko <[email protected]> | |
* @copyright 2013 Roman Levishchenko | |
* @license BSD |
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
################################################################################################### | |
# APT | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install linux-headers-$(uname -r) build-essential automake autoconf zlib1g-dev libssl-dev \ | |
libreadline-gplv2-dev libyaml-dev vim dkms nfs-common zip unzip mc curl software-proprieties-common | |
################################################################################################### | |
################################################################################################### | |
# Vagrant |
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 | |
# Необходимо задать три массива: PORTS, PROXY_HOSTS и HOSTS. | |
# При подключении будут созданы туннели PROXY_HOSTS[id]:PORTS[id] -> HOSTS[id]:3306. | |
# HOSTS - массив хостов, к которым будет выполнятся ssh подключение (рекомендую использовать ssh-ключи). | |
PORTS=('33061') | |
PROXY_HOSTS=('127.0.0.1') | |
HOSTS=('external.host') |
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 | |
#============================================================================= | |
# | |
# FILE: list_dates.sh | |
# | |
# USAGE: list_dates.sh start_date end_date | |
# | |
# DESCRIPTION: List the dates between a given range of dates. | |
# | |
#============================================================================= |
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 | |
/** | |
* Поведение для стандартизированной работы с переводами. | |
* | |
* Подготовка. | |
* Создаем основную модель. | |
* | |
* - **ДОЛЖНА НЕ** иметь переводимых полей. | |
* - **ДОЛЖНА** иметь поле id. | |
* - Основная модель не обязана иметь прописанную связь с моделью переводов. |
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 | |
/** | |
* Поведение для отслеживания изменений. | |
* | |
* **ВНИМАНИЕ!!!** | |
* Данное поведение не работает с моножественными действиями: update и delete, будьте внимательны. | |
* | |
* ### Подготовка: | |
* | |
* - Необходимо создать такую же таблицу с суфиксом **_history**, как отслежуемая, но с дополнительными полями: |
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 | |
# Current script works with branches by next standars: | |
# dev-{YYYYmmdd}-{surname}-N{ticket number}-{ticket name} | |
# dev-{YYYYmmdd}-{surname}-{ticket number}-{ticket name} | |
# | |
# {YYYYmmdd} - branch creation date | |
# {surname} - authors surname | |
# {ticket number} - number of ticket in your bug tracker | |
# {ticket name} - short ticket description, words could be separated by - or _ |
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
################################### General #################################### | |
## Sentry server name. This is the base URL that Cyclops will use to send | |
## requests to sentry. | |
## Defaults to: localhost:9000 | |
SENTRY_BASE_URL = '{{ SENTRY_HOST_HERE }}' | |
################################################################################ | |
################################# Performance ################################## |
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
thrift_service: | |
constructor: NewThriftService | |
arguments: | |
- "%visit_handler%" | |
- "%event_handler%" | |
- "%flash_handler%" | |
- "%track_handler%" | |
- "%mark_handler%" | |
- "localhost:9090" | |
- binary |
OlderNewer