⚡ Lightning Fast, Ultra Relevant, and Typo-Tolerant Search Engine 🔍
Taken from: http://michal.karzynski.pl/blog/2013/06/09/django-nginx-gunicorn-virtualenv-supervisor/
[Django][1] is an efficient, versatile and dynamically evolving web application development framework. When Django initially gained popularity, the recommended setup for running Django applications was based around Apache with mod_wsgi. The art of running Django advanced and these days the recommended configuration is more efficient and resilient, but also more complex and includes such tools as: Nginx, Gunicorn, virtualenv, supervisord and PostgreSQL.
In this text I will explain how to combine all of these components into a Django server running on Linux.
There are a few JQL syntax bits to get you started:
AND
--- allows you to add qualifiers to a list!= Thing
--- target one thingis in (List, Of, Things)
--- target a bunch of things (Done, Closed, Resolved) typicallynot in (List, of, Things)
--- do not include a bunch of things-1w
--- relative time. You can also use -1d for day"2015/3/15"
--- specific dates
ref stackoverflow: | |
https://stackoverflow.com/questions/41283955/github-keeps-saying-this-branch-is-x-commits-ahead-y-commits-behind | |
works by | |
1. git remote add upstream https://github/upstream/repo.git | |
2. git pull --rebase upstream master | |
2.1 git rebase --skip (if the conflicts are not true, skip the patches) | |
3. git push --force-with-lease origin master | |
If there are branches to fix |
trigger: | |
batch: true | |
branches: | |
include: | |
- develop | |
jobs: | |
- job: 'run_tests' | |
pool: | |
vmImage: 'Ubuntu-20.04' |
-- Copied from Hendy https://our.umbraco.org/forum/umbraco-7/using-umbraco-7/72814-creating-a-list-of-unused-doc-types#comment-233729 | |
-- Find all unused docTypes | |
-- These results may contain docTypes that are masters of used ones, so need to exclude these too... | |
SELECT | |
A.nodeId as 'DocTypeId', | |
B.text AS 'Name', | |
A.alias AS 'Alias' | |
FROM | |
cmsContentType A LEFT JOIN |
<?php | |
namespace App\Providers; | |
use Illuminate\Http\Request; | |
use Illuminate\Routing\Route; | |
use Illuminate\Support\ServiceProvider; | |
use App\Http\Middleware\CaptureRequestExtension; | |
class AppServiceProvider extends ServiceProvider |
I wrote a middleware class that sets a singleton "Context" based upon either a domain or subdomain. This was an untested class and was refactored for testing with some help from @adamwathan (https://gist.github.com/adamwathan/d8dd4ea5337eb3f975b8).
''' | |
texture image path are relative to the blend file directory. run from command line like this: | |
texture=img/2012720989_c.jpg blender -b mug.blend --python texture_change.py -F PNG -s 1 -e 1 -j 1 -t 0 -a | |
'''' | |
import os | |
image_file = os.getenv('texture') | |
if not image_file: | |
image_file="img/2012720989_c.jpg" |