$ sudo find /private/var/folders/ -name com.apple.dock.iconcache -exec rm {} \;
$ sudo find /private/var/folders/ -name com.apple.iconservices -exec rm -rf {} \;
$ sudo rm -rf /Library/Caches/com.apple.iconservices.store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Intercepting HTTP calls with AngularJS. | |
| angular.module('MyApp', []) | |
| .config(function ($provide, $httpProvider) { | |
| // Intercept http calls. | |
| $provide.factory('MyHttpInterceptor', function ($q) { | |
| return { | |
| // On request success | |
| request: function (config) { | |
| // console.log(config); // Contains the data about the request before it is sent. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # original message | |
| base=$(cat $1) | |
| # ticket patterns | |
| patterns=(ticket- issue- bug-) | |
| # current branch name excluding namespace | |
| current_branch=$(git symbolic-ref --short HEAD | cut -d/ -f2-) | |
| # capitalize message's first char | |
| message=`echo ${base:0:1} | tr '[a-z]' '[A-Z]'`${base:1} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'cgi' | |
| require 'digest/md5' | |
| require 'net/https' | |
| require 'uri' | |
| module Jekyll | |
| class GistTag < Liquid::Tag | |
| def initialize(tag_name, text, token) | |
| super | |
| @text = text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName yourdomain.fr | |
| ServerAlias www.yourdomain.fr | |
| ProxyRequests off | |
| <Proxy *> | |
| Order deny,allow | |
| Allow from all | |
| </Proxy> | |
| <Location /> | |
| ProxyPass http://yourdomain.fr:3000/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\UserBundle\Controller; | |
| use Doctrine\ORM\EntityManager; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Symfony\Component\HttpFoundation\JsonResponse; | |
| use Symfony\Component\HttpFoundation\Request; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| security: | |
| providers: | |
| in_memory: | |
| memory: ~ | |
| fos_userbundle: | |
| id: fos_user.user_manager | |
| encoders: | |
| FOS\UserBundle\Model\UserInterface: sha512 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <VirtualHost *:80> | |
| ServerName sportroops.dev | |
| ServerAlias api.sportroops.dev | |
| DocumentRoot /var/www/html/sutunam/sportroops/web/ | |
| <Directory "/var/www/html/sutunam/sportroops/web"> | |
| AllowOverride All | |
| Order allow,deny | |
| Allow from all | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Load DSL and set up stages | |
| require 'capistrano/setup' | |
| # Include default deployment tasks | |
| require 'capistrano/deploy' | |
| require 'capistrano/composer' | |
| require 'capistrano/symfony' |
Preferences -> Keyboard -> Agencements Choose MacBook/MacBook Pro
(https://help.ubuntu.com/community/AppleKeyboard)[https://help.ubuntu.com/community/AppleKeyboard]