Skip to content

Instantly share code, notes, and snippets.

@acleon
acleon / .ssh_config
Created April 1, 2012 21:13
Different Identity Files for Different Hosts
# .ssh/config
Host shortname1 hostname1.example.com
Hostname hostname1.example.com
IdentityFile ~/.ssh/hostname1_rsa
Host shortname2 hostname2.example.com
Hostname hostname2.example.com
IdentityFile ~/.ssh/hostname2_rsa
@acleon
acleon / form_div_layout.html.twig
Created February 16, 2014 11:29
Twig file for rendering Symfony forms with some Gumby styling
{# Widgets #}
{% block form_widget %}
{% spaceless %}
{% if compound %}
{{ block('form_widget_compound') }}
{% else %}
{{ block('form_widget_simple') }}
{% endif %}
{% endspaceless %}
@acleon
acleon / pre-commit.sh
Last active March 16, 2020 15:09
PHP CS Fixer Pre-commit Hook
#!/bin/bash
# Diff agaisnt HEAD, unless it's the first commit, in which case diff
# against an empty tree object.
if git rev-parse --verify HEAD > /dev/null
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
@acleon
acleon / cockney.geojson
Last active March 29, 2024 10:49
Create geofence from point and distance
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.