Skip to content

Instantly share code, notes, and snippets.

View nandes2062's full-sized avatar

Fernando Averanga nandes2062

View GitHub Profile
@nandes2062
nandes2062 / web-servers.md
Created March 3, 2017 21:02 — 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
@nandes2062
nandes2062 / README.md
Created August 30, 2016 03:38 — forked from oodavid/README.md
Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/

#URL Amigables en Yii2 - Configurar correctamente

#1. Dirigirse a aplicacion/config/web.php y agregar o descomentar el siguiente codigo para activar las Url amigables.

 'components' => [
       'urlManager' => [
           'enablePrettyUrl' => true,
           'showScriptName' => false,
           'rules' => [
               '' => 'site/index',
@nandes2062
nandes2062 / Install-php7.md
Last active June 22, 2017 02:35 — forked from hollodotme/Install-php7.md
Installing php7-fpm with phpredis and xdebug extension on Ubuntu 14.04

Install php7.1-fpm

# remove php5 modules
apt-get autoremove --purge php5-*
# add php-7.1 source list by [Ondřej Surý](https://github.com/oerdnj)
add-apt-repository ppa:ondrej/php
# Update index
apt-get update
# Install php7.1-fpm with needed extensions