$ mkvirtualenv django-poc -p python3 -a pathToTheProject
$ pip install django
$ pip install -r requirements/local.txt
$ python -V
This Gist give some tips in order to remove AWS Glacier Vault
with AWS CLI (ie. https://aws.amazon.com/en/cli/).
$ aws glacier initiate-job --job-parameters '{"Type": "inventory-retrieval"}' --vault-name YOUR_VAULT_NAME --account-id YOUR_ACCOUNT_ID --region YOUR_REGION
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 | |
// src/remiii/UtilsBundle/Command/Assets/AssetsUpdateHeadersCommand.php | |
namespace remiii\UtilsBundle\Command\Assets ; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand ; | |
use Symfony\Component\Console\Input\InputArgument ; | |
use Symfony\Component\Console\Input\InputInterface ; | |
use Symfony\Component\Console\Input\InputOption ; |
Drop in photos
folder your photos with firstname and lastname in title... do the following things et voila ;-)
$ for i in ./photos/*.JPG ; do convert -colorspace GRAY "$i" "${i%.*}.jpg" ; done
$ for i in ./photos/*.JPG ; do convert -resize 250 "$i" "${i%.*}.jpg" ; done
Display the daily meal of Mamacake (ie. https://www.facebook.com/MamaCake.Paris - MamaCake Paris - Restaurant sans gluten).
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
# Use the front controller as index file. It serves as a fallback solution when | |
# every other rewrite/redirect fails (e.g. in an aliased environment without | |
# mod_rewrite). Additionally, this reduces the matching process for the | |
# start page (path "/") because otherwise Apache will apply the rewriting rules | |
# to each configured DirectoryIndex file (e.g. index.php, index.html, index.pl). | |
DirectoryIndex app.php | |
# Disabling MultiViews prevents unwanted negotiation, e.g. "/app" should not resolve | |
# to the front controller "/app.php" but be rewritten to "/app.php/app". | |
<IfModule mod_negotiation.c> |
cd /etc/apache2/ssl
sudo openssl genrsa -out ./domain.key 2048
sudo openssl req -new -sha256 -key ./domain.key -out ./domain.csr
Source: http://www.rackspace.com/knowledge_center/article/generate-a-csr-with-openssl
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 | |
namespace remiii\UtilsBundle\Command\Assets ; | |
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand ; | |
use Symfony\Component\Console\Input\InputArgument ; | |
use Symfony\Component\Console\Input\InputInterface ; | |
use Symfony\Component\Console\Input\InputOption ; | |
use Symfony\Component\Console\Output\OutputInterface ; |