Attention: if you attempt to fork this gist, github will think that you are a spammer and you will have to confirm that you are human with them. Apparantly there are too many links in this list. Also I update it rather frequently (see revisions on the left), so it's probably wise to not fork it anyway.
This file contains hidden or 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 | |
/** | |
* Created by Studio107. | |
* Date: 13.06.13 | |
* Time: 16:31 | |
* All rights reserved. | |
*/ | |
/** |
- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
This file contains hidden or 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 yii\helpers\Html; | |
use yii\widgets\Menu; | |
use yii\widgets\Breadcrumbs; | |
/** | |
* @var $this \yii\base\View | |
* @var $content string | |
*/ | |
app\config\AppAsset::register($this); |
This file contains hidden or 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
{ | |
"Алтайский край": { | |
"0": [ | |
[ | |
54.469437, | |
85.079468 | |
], | |
[ | |
54.195824, | |
85.44720500000001 |
This file contains hidden or 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
[ | |
u'1-й Газетный пер.', | |
u'1-й Гороховский пер.', | |
u'1-й Громовой пер.', | |
u'1-й Кирпичный пер.', | |
u'1-й Кондукторский пер.', | |
u'1-й Курский пер.', | |
u'1-й Линейный пер.', | |
u'1-й Опытный пер.', | |
u'1-й Орловский пер.', |
This file contains hidden or 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
# coding=utf-8 | |
def wrap(func): | |
def wrapped_func(*args, **kwargs): | |
print('hello world') | |
return func(*args, **kwargs) | |
return wrapped_func | |
This file contains hidden or 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
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_redirect off; | |
port_in_redirect off; | |
proxy_connect_timeout 90; | |
proxy_send_timeout 90; | |
proxy_read_timeout 90; |
This file contains hidden or 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 { | |
access_log "/home/something/something.info/log/nginx-access.log"; | |
error_log "/home/something/something.info/log/nginx-error.log"; | |
listen 80; | |
server_name something.info www.something.info; | |
include drop.conf; | |
if ($host = 'www.something.info' ) { |
This file contains hidden or 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
uwsgi: | |
plugins: python | |
# указываем socket, при помощи которого будет происходить | |
# взаимодействие между nginx и uwsgi | |
socket: %d/../tmp/%n.sock | |
chdir: %d../app/ | |
# здесь указываем путь к django-проекту | |
pythonpath: %d../app/ | |
# устанавливаем переменную окружения, которая хранит имя settings файла | |
env: DJANGO_SETTINGS_MODULE=settings |
OlderNewer