Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| yum install java-1.7.0-openjdk-devel | |
| gunzip pycharm-community-3.1.1.tar.gz | |
| tar -xvf pycharm-community-3.1.1.tar | |
| mv pycharm-community-3.1.1 pycharm-3.1 | |
| export JAVA_HOME=/usr | |
| # Pycharm looks with bin/java | |
| vi ~/.bashrc | |
| * text=auto | |
| *.css linguist-vendored | |
| *.scss linguist-vendored | |
| *.otf binary | |
| *.eot binary | |
| *.svg binary | |
| *.ttf binary | |
| *.woff binary |
| #!/bin/sh | |
| apt-get build-dep -y php5-cli | |
| aptitude install -y build-essential git libreadline-dev libxml2-dev libmcrypt-dev libjpeg8-dev libpng12-dev libcurl4-openssl-dev libtidy-dev libxslt1-dev | |
| cd /tmp | |
| git clone git://github.com/CHH/php-build | |
| cd php-build/ | |
| ./install.sh | |
| mkdir /usr/local/php | |
| php-build -i production 5.6.5 /usr/local/php/5.6.5 | |
| cd /usr/local/bin |
| @font-face { | |
| font-family: 'Nombre_de_tu_fuente'; | |
| src: url('../ruta_de_tu_fuente.ttf') format('truetype'),; | |
| font-weight: 100; | |
| font-style: normal; | |
| } |
| @font-face { | |
| font-family: 'Nombre_de_tu_fuente'; | |
| src: url('../ruta_de_tu_fuente.ttf') format('truetype'),; | |
| font-weight: 100; | |
| font-style: normal; | |
| } |
| src: local('Nombre_de_tu_fuente'), | |
| url('ruta_de_tu_fuente.eot') format('embedded-opentype'), | |
| url('ruta_de_tu_fuente.woff') format('woff'), | |
| url('ruta_de_tu_fuente.ttf') format('truetype'), | |
| url('ruta_de_tu_fuente.svg') format('svg'); | |
| } |
| .tu_clase{ | |
| font-family:'Nombre_de_tu_fuente' | |
| }; |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| # put it to your app/shared/decorators.py and than import when required | |
| from django.core.exceptions import PermissionDenied | |
| from django.shortcuts import redirect | |
| def superuser_only(function): | |
| """ | |
| Limit view to superusers only. |