Skip to content

Instantly share code, notes, and snippets.

View Schlipak's full-sized avatar
🌳
0x467973

Guillaume de Matos Schlipak

🌳
0x467973
View GitHub Profile
@Schlipak
Schlipak / awesome-stars.js
Last active June 28, 2017 08:17
Add stagazers count to Awesome repositories
// Add stargazers count to Awesome Github repositories
const AWESOME_STAR_STYLES = `
a.awesome-link {
display: inline-flex;
justify-content: flex-start;
align-items: center;
}
a.awesome-link,
@Schlipak
Schlipak / SecurityController.php
Last active August 29, 2015 14:23
Bypass Symfony throwing NotFoundHttpException before loading the security context. (Allows to use security and user infos in 404 pages)
<?php
// src/Vendor/AppBundle/Controller/SecurityController.php
namespace Vendor\AppBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
class SecurityController extends Controller {
@Schlipak
Schlipak / clear_cache.sh
Last active August 29, 2015 14:23
Easy clear cache for Symfony
#!/bin/sh
# Text colors
lblue='\033[0;34m'
green='\033[0;32m'
red='\033[0;31m'
NC='\033[0m'
# Bg colors
bakblu='\033[0;44m'