Skip to content

Instantly share code, notes, and snippets.

View xserrat's full-sized avatar
:octocat:
coding as much as I can!

Xavier Serrat Bordas xserrat

:octocat:
coding as much as I can!
  • @ deporvillage
  • Barcelona
  • 04:44 (UTC +02:00)
  • X @xserrat
View GitHub Profile
@edufabra
edufabra / phpenv-macos.sh
Last active March 17, 2022 09:35 — forked from christopher-hopper/phpenv-macos.sh
Install phpenv on macOS with homebrew php packages.
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Install or re-install phpenv with
# multiple versions of PHP on macOS.
#
# Usage:
#
# curl -L https://git.io/JvG7i | bash
#
@havvg
havvg / ZendKernel.php
Created December 29, 2016 20:50
StackPHP Example: Symfony + Zend Framework (ZF1)
<?php
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\TerminableInterface;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
class ZendKernel implements HttpKernelInterface, TerminableInterface
@mitchwongho
mitchwongho / Docker
Last active November 29, 2023 06:36
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@vinaydotblog
vinaydotblog / composer-install.sh
Last active April 17, 2023 11:08
Installing composer using curl
# Goto a directory you can write to:
cd ~
#get composer:
curl -s https://getcomposer.org/installer | php
# move composer into a bin directory you control:
sudo mv composer.phar /usr/local/bin/composer
# double check composer works
composer about