Skip to content

Instantly share code, notes, and snippets.

View Remiii's full-sized avatar
👨‍💻
remibarbe.fr

Rémi Barbe Remiii

👨‍💻
remibarbe.fr
View GitHub Profile

It's still a work in progress...

Intro

As William Durand was recently explaining in his SOS, he "didn't see any other interesting blog post about REST with Symfony recently unfortunately". After spending some long hours to implement an API strongly secured with oAuth, I thought it was time for me to purpose my simple explanation of how to do it.

Ok, you know the bundles

You might have already seen some good explanation of how to easily create a REST API with Symfony2. There are famous really good bundles a.k.a. :

@Remiii
Remiii / README.md
Last active August 29, 2015 14:17
PIMP Symfony Form with Twig

PIMP Smyfony Form with Twig

Because PIMP templating sucks in FormType 😱

@Remiii
Remiii / README.md
Created February 16, 2015 20:39
Install a more recent version of git on a Ubuntu LTS

Install a more recent version of git on a Ubuntu LTS

$ sudo apt-get install python-software-properties
$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:git-core/ppa -y

$ sudo apt-get update
$ sudo apt-get install git
@Remiii
Remiii / BlogPostBoot2docker2.md
Created December 31, 2014 16:12
BlogPostBoot2docker2.md
$ brew update
$ brew upgrade
$ boot2docker -v
Boot2Docker-cli version: v1.4.1
Git commit: 43241cb
@Remiii
Remiii / README.md
Last active February 26, 2021 08:36
Doctrine (Symfony) DB mapping - Relation Mapping

Doctrine (Symfony) DB mapping

OneToOne (1=>1)

Sample: Category and Product

// src/Acme/StoreBundle/Entity/Category.php

// ...
@Remiii
Remiii / README.md
Created November 21, 2014 14:12
HW state log

hw-state-log

@Remiii
Remiii / README.md
Last active August 29, 2015 14:06
Bash vulnerability check
@Remiii
Remiii / README.md
Last active August 29, 2015 14:05
VPN & PortForwarding SSH Noob

VPN & PortForwarding SSH Noob

Yo Noob, look at this Gist! 👊

Show OpenVPN status

$ sudo service openvpn status
@Remiii
Remiii / README.md
Last active August 29, 2015 14:05
Mount NFS (server/client config)

Mount NFS

This file describe a basic config for NFS mount on a server/client.

Server (store datas) - server.myserver.com

Share a datas folder : /home/ubuntu/documents/datas

$ sudo apt-get update
@Remiii
Remiii / .htaccess
Created August 19, 2014 13:03
Htaccess / Htpasswd
AuthName "Auth require..."
AuthType Basic
AuthUserFile "/home/myuser/pathToHtpasswd/.htpasswd"
Require valid-user