###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| # Add correct content-type for fonts | |
| AddType application/vnd.ms-fontobject .eot | |
| AddType font/ttf .ttf | |
| AddType font/otf .otf | |
| AddType font/x-woff .woff | |
| AddType image/svg+xml .svg | |
| # Compress compressible fonts | |
| AddOutputFilterByType DEFLATE font/ttf font/otf image/svg+xml |
| <?php | |
| namespace Ormigo\Bundle\BackofficeBundle\Menu; | |
| use Knp\Menu\FactoryInterface; | |
| use Symfony\Component\DependencyInjection\ContainerAware; | |
| use Ormigo\Bundle\UserBundle\Model\User\UserQuery; | |
| use Symfony\Component\Security\Core\Role\SwitchUserRole; |
###SSH into a remote machine###
ssh [email protected]
#or by ip address
ssh [email protected]
exit: exit
###Install Something###
#If it's a new server, update apt-get first thing
| // Main containers | |
| .container | |
| @include outer-container | |
| // Rows | |
| .row | |
| @include row() | |
| // A basic column without a defined width or height |
| {% macro recursiveCategory(category) %} | |
| <li> | |
| <h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4> | |
| {% if category.children|length %} | |
| <ul> | |
| {% for child in category.children %} | |
| {{ _self.recursiveCategory(child) }} | |
| {% endfor %} | |
| </ul> |
| <?php | |
| # xxx/yyyBundle/Command/AddFulltextIndexesCommand.php | |
| /** | |
| * AddFulltextIndexesCommand.php | |
| * | |
| * @author Jérémy Hubert <[email protected]> | |
| * @since lun. 26 sept. 2011 09:23:53 | |
| */ | |
| namespace xxx\yyyBundle\Command; |
| Select all and delete (actually move to buffer) | |
| :%d | |
| Select all and copy to buffer | |
| :%y | |
| Use p to paste the buffer. |
| #!/bin/bash | |
| # `` sudo sh install.sh `` | |
| # Developement environnement | |
| # Important: use 'i686' instead of 'x86_64' | |
| # | |
| # For stable environnement see also : https://gist.github.com/mickaelandrieu/6312724 | |
| echo Installation de Phantomjs | |
| cd /usr/local/share | |
| sudo wget https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2 |
| ##################################################################################### | |
| # INSTALL isolated PHP 7.2 ZTS (Thread-safe) with pthreads on Ubuntu 14.04 &16.04 ### | |
| ##################################################################################### | |
| 0) Possible dependencies | |
| sudo apt-get install libxml2-dev | |
| 1) Install necessary bison version | |
| wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb |
| sudo apt-get update | |
| sudo apt-get install apt-transport-https ca-certificates -y | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update | |
| sudo apt-get purge lxc-docker | |
| sudo apt-get install linux-image-extra-$(uname -r) -y | |
| sudo apt-get install docker-engine cgroup-lite apparmor -y | |
| sudo usermod -a -G docker $USER | |
| sudo service docker start |