Skip to content

Instantly share code, notes, and snippets.

@chrisguitarguy
chrisguitarguy / form.html.twig
Last active February 10, 2017 15:33
How to use Bootstrap input groups (http://getbootstrap.com/components/#input-groups) in a Symfony form theme
{% form_theme form 'theme.html.twig' %}
{# the theme above will take care of rendering the input group #}
{{ form(form) }}
@zyphlar
zyphlar / README.md
Last active August 29, 2015 14:23 — forked from oodavid/README.md

Deploy your site with git (improved with secret tokens, branches, and error output)

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@vshvedov
vshvedov / gist:1370650
Created November 16, 2011 17:00
Sublime Text Edit 2 for Debian (from PPA)
wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
sudo mv add-apt-repository.sh.txt /usr/sbin/add-apt-repository
sudo chmod o+x /usr/sbin/add-apt-repository
sudo chown root:root /usr/sbin/add-apt-repository
sudo add-apt-repository ppa:webupd8team/sublime-text-2