Skip to content

Instantly share code, notes, and snippets.

View icqparty's full-sized avatar

Asoskov Alexander icqparty

  • Russia, city Ryazan
View GitHub Profile
git init
git remote add origin '{LINK REMOTE REPOSITORY}'
echo "TEXT ANY" >> readme.txt
git add readme.txt
git commit -m 'Initial commit with contributors'
git push -u origin master
language: php
php:
- 5.5
env:
- APPLICATION_ENV=develope DB_NAME=sendlead
services:
- mongodb
mysql:
adapter: mysql2
@icqparty
icqparty / Bootstrap.php
Created October 26, 2014 01:43
tests/phpunit.xml and Bootstrap.php
<?php
use Zend\Mvc\Service\ServiceManagerConfig;
use Zend\ServiceManager\ServiceManager;
error_reporting(E_ALL | E_STRICT);
chdir(dirname(__DIR__));
include __DIR__ . '/../init_autoloader.php';
@icqparty
icqparty / gist:0bbc39d958223d2e1382
Created February 17, 2015 01:17
Install from source Ruby 2.2.0
Links: Homepage | Downloads
Dependencies: rbenv | OpenSSL
Version:
Get the Code
Switch to /usr/local/src and download the source package.
$cd /usr/local/src
$curl --remote-name http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.gz
Extract the archive and move into the folder.
# Nginx+Unicorn best-practices congifuration guide. Heartbleed fixed.
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies.
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module
#
# Deployment structure
#
# SERVER:
# /etc/init.d/nginx (1. nginx)
# /home/app/public_html/app_production/current (Capistrano directory)
#
@icqparty
icqparty / Dockerfile-rails
Last active August 29, 2015 14:16
Create docker conteiner radis-server
FROM ubuntu
CMD echo "hello"
MAINTAINER Asoskov Alexander "icqparty@gmail.com"
ENV SERVER_NAME rails-project
# turn on universe packages
RUN apt-get update
# basics
@icqparty
icqparty / dockerui
Last active August 29, 2015 14:24
Docker UI START
docker run -d -p 9099:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock dockerui/dockerui
@icqparty
icqparty / create-cert-key.txt
Created July 31, 2015 03:04
Создание самоподписаного сертификата
$ openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout cert.key -out cert.crt
@icqparty
icqparty / create-boot-disk-from-iso
Created August 5, 2015 15:49
Создание загрузочной флешки(диска)из под Linux
1.Создать раздел
2.посмотреть разделы
#df
3.Создание
#sudo dd if=file.iso of=/dev/sdb2
@icqparty
icqparty / Generate Doctrine Entity.md
Last active February 28, 2016 17:42
Generate doctrine entity class in Zf2

icqparty@icqparty-K61IC ~ $ cd /vendore/bin/

  1. Create class Entities

icqparty@icqparty-K61IC ~ $ ./vendor/bin/doctrine-module orm:convert-mapping -f --from-database --namespace="Application\Entity\\" annotation \module//Application//src

  1. Create getters/setters for class Entities

icqparty@icqparty-K61IC ~ $ ./vendor/bin/doctrine-module orm:generate-entities --generate-annotations=true \module//Application//src