Skip to content

Instantly share code, notes, and snippets.

View adrianalonso's full-sized avatar

Adrián Alonso Vega adrianalonso

View GitHub Profile
@adrianalonso
adrianalonso / myip.sh
Created September 5, 2016 15:22
Command for determining my public IP
curl -s checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'
wget http://ipinfo.io/ip -qO -
#%RAML 0.8
title: examle
version: 1.0
baseUri: http://example.local/api
traits:
- secured:
description: Some requests require authentication
headers:
X-User:
@adrianalonso
adrianalonso / 0_reuse_code.js
Created April 11, 2016 07:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@adrianalonso
adrianalonso / ImportCountriesCommand.php
Created January 22, 2016 12:10
Symfony Command Import CSV
<?php
namespace AppBundle\Command;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;