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
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 | |
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
Чтобы скачать сайт целиком с помощью wget нужно выполнить команду: | |
wget -r -k -l 7 -p -E -nc http://site.com/ | |
После выполнения данной команды в директорию site.com будет загружена локальная копия сайта http://site.com. Чтобы открыть главную страницу сайта нужно открыть файл index.html. | |
Рассмотрим используемые параметры: | |
-r — указывает на то, что нужно рекурсивно переходить по ссылкам на сайте, чтобы скачивать страницы. | |
-k — используется для того, чтобы wget преобразовал все ссылки в скаченных файлах таким образом, чтобы по ним можно было переходить на локальном компьютере (в автономном режиме). | |
-p — указывает на то, что нужно загрузить все файлы, которые требуются для отображения страниц (изображения, css и т.д.). | |
-l — определяет максимальную глубину вложенности страниц, которые wget должен скачать (по умолчанию значение равно 5, в примере мы установили 7). В большинстве случаев сайты имеют страницы с большой степенью вложенности и wget может просто «закопаться», скачивая новые страницы. Чтобы этого не п |
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
DNG 1.4 Parser | |
This tutorial describes how to build the Adobe DNG SDK on Linux. | |
It generates the dng_validate C++ program that can parse any DNG images, a bit like a "Hello world" for DNG image processing. | |
Adobe DNG SDK 1.4 | |
XMP SDK | |
DNG SDK | |
dcraw issue | |
Compatibility issue |
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
language: php | |
php: | |
- 5.5 | |
env: | |
- APPLICATION_ENV=develope DB_NAME=sendlead | |
services: | |
- mongodb | |
mysql: | |
adapter: mysql2 |
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 | |
use Zend\Mvc\Service\ServiceManagerConfig; | |
use Zend\ServiceManager\ServiceManager; | |
error_reporting(E_ALL | E_STRICT); | |
chdir(dirname(__DIR__)); | |
include __DIR__ . '/../init_autoloader.php'; |
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
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. |
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
# 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) | |
# |
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
FROM ubuntu | |
CMD echo "hello" | |
MAINTAINER Asoskov Alexander "[email protected]" | |
ENV SERVER_NAME rails-project | |
# turn on universe packages | |
RUN apt-get update | |
# basics |
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
docker run -d -p 9099:9000 --privileged -v /var/run/docker.sock:/var/run/docker.sock dockerui/dockerui |
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
1.Остановить все контейнеры | |
docker stop $(docker ps -a -q) | |
2. Удалить все контейнеры | |
docker rm -f $(docker ps -a -q) | |
3. Удалить все образы |
OlderNewer