- Abrimos la terminal y ejecutamos la siguiente linea para actualizar la base de datos de los paquetes
sudo pacman -Syu
- Instalamos el apache y ejecutamos lo siguiente
sudo pacman -S apache
/* Using a JavaScript proxy for a super low code REST client */ | |
// via https://dev.to/dipsaus9/javascript-lets-create-aproxy-19hg | |
// also see https://towardsdatascience.com/why-to-use-javascript-proxy-5cdc69d943e3 | |
// also see https://github.com/fastify/manifetch | |
// also see https://github.com/flash-oss/allserver | |
// and https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
const createApi = (url) => { | |
return new Proxy({}, { | |
get(target, key) { |
# Find the latest version on https://github.com/creationix/nvm#install-script | |
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
# Add in your ~/.zshrc the following: | |
export NVM_DIR=~/.nvm | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
$ source ~/.zshrc |
playonlinux
lib32-libldap
, lib32-gnutls
(multilib needed)ttf-ms-fonts
# Taxonomy terms: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_taxonomy_term-php | |
# Menu links: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_menu_link-php | |
# File items: | |
- https://gist.github.com/facine/35bb291811c146b6fc9e#file-create_file-php | |
# Nodes: |
{# Check if we got a session without creating one #} | |
{% if app.request.hasPreviousSession %} | |
{# Check if we got some flash messages #} | |
{% if app.session.flashbag.peekAll()|length > 0 %} | |
<div id="flash"> | |
{# Loop all types of flash messages #} | |
{% for type, flashMessages in app.session.flashbag.all() %} | |
{# For all flash messages with this type #} | |
{% for idx, flashMessage in flashMessages %} | |
<div class="flash-item flash-type-{{ type }}"> |
# Installation | |
curl -o laravel.phar http://laravel.com/laravel.phar | |
chmod 755 laravel.phar | |
mv laravel.phar /usr/local/bin/laravel | |
# Usage | |
laravel new <application_name> |
<?php // src/Acme/Form/Type/ExampleForm.php | |
namespace Acme\Form\Type; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\Validator\Constraints as Assert; | |
class ExampleForm extends AbstractType { | |
public function buildForm(FormBuilderInterface $builder, array $options) { | |
$builder->add('email', 'email', array( |
{% extends layout %} | |
{% block body %} | |
<div id="main"> | |
<h2>Contact me</h2> | |
<p>For queries about anything on this website, or for job quotations, please contact me using the contact form below or via <a href="mailto:[email protected]">email</a>.</p> | |
<form action="#" method="post"> | |
{{ form_start(form) }} | |
{{ form_errors(form) }} |