Skip to content

Instantly share code, notes, and snippets.

View grekodev's full-sized avatar
🎯
<grekodev/>

Greck Pastor grekodev

🎯
<grekodev/>
View GitHub Profile
@grekodev
grekodev / pycharm-install
Last active September 10, 2015 15:02 — forked from shafi-codez/pycharm-install
Pycharm installation
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
@grekodev
grekodev / php-install.sh
Created April 7, 2017 16:07
PHP 5.6.5 installer for Debian 7.7
#!/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'
};
@grekodev
grekodev / phalconphp_php7_ubuntu_16_04.sh
Created August 16, 2017 17:27 — forked from Tosyn/phalconphp_php7_ubuntu_16_04.sh
PhalconPhp with PHP7 Installation on Ubuntu 16.04
#!/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 \
@grekodev
grekodev / web-servers.md
Created October 27, 2017 13:38 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ 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.