🗀 root/
├── 🗀 childOne/
│ ├── 🖹 fileOne.txt
│ ├── 🖹 fileTwo.rst
│ ├── 🖹 fileThree.md
│ └── 🖹 README
├── 🗀 childTwo/
│ ├── 🖹 fileOne.txt
│ └── 🖹 fileTwo.rst
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name .example.com; | |
return 301 https://example.com; | |
} | |
server { |
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
const sleep = require('util').promisify(setTimeout); | |
//... | |
await sleep(15); | |
//... |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName example.net | |
ServerAlias www.example.net | |
DocumentRoot /var/www/example.net/public_html/ | |
ErrorLog /var/www/example.net/logs/error.log | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerName doesntmatter | |
UseCanonicalName Off | |
VirtualDocumentRoot /home/webdev/%0 | |
</VirtualHost> |
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
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName appname.com | |
WSGIApplicationGroup %{GLOBAL} | |
WSGIPassAuthorization On | |
WSGIDaemonProcess appname user=username group=username processes=1 threads=4 python-path=/home/username/env/lib/python2.7/site-packages | |
WSGIProcessGroup appname | |
WSGIScriptAlias / /home/username/Projects/AppName/pyramid.wsgi | |
</VirtualHost> |
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
# -*- coding: utf-8 -*- | |
import os, sys, subprocess | |
import ConfigParser | |
import lucene | |
from optparse import OptionParser | |
from sqlalchemy import MetaData, Table, create_engine, orm | |
INDEX_DIRECTORY = '%s/items' % os.path.dirname(os.path.realpath(__file__)) |
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 | |
$index = Zend_Search_Lucene::open(your_index_dir); | |
$query = 'some search query'; | |
$result = $index->find($query); | |
$perPage = 20; | |
$page = 5; | |
$range = 4; | |
Zend_Paginator::setDefaultScrollingStyle('Elastic'); |
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
$(function(){ | |
var columns_no = 4; | |
$('.popup').each(function(){ | |
var total_height = $(this).find('li:not(.brands_column li)').length; | |
var column = $(this).find('.column1'); | |
var average_height = Math.ceil(total_height / columns_no); | |
column.data('height', 0); | |
var total_categories = $(this).find('li.depth1').length; | |
$(this).find('li.depth1').each(function(){ | |
if (total_categories == columns_no) { |