This theme is based on agnoster.zsh-theme.
A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "NameOfYourBaseBox" |
/** | |
* getFilter | |
*/ | |
public function getFilters ( ) | |
{ | |
return array ( | |
'month_name' => new \Twig_Filter_Method ( $this , 'get_month_name' ) | |
) ; | |
} |
/* TEAM */ | |
Name: Rémi Barbe | |
Contact: free-software <<at>> remibarbe <<dot>> fr | |
Twitter: @Remiii_ | |
From: Bordeaux/Paris, France | |
/* THANKS */ |
# This awk script splits an XML file and exports X nodes into separate file | |
# It doesn't work if the main node has an attribute | |
# It doesn't work if the main node contains a subnode with the same tagname, etc. | |
# Use at your own risk, think before using. | |
# Usage: | |
# - Replace "myNumberOfNodesByOutputFile" by your number of nodes by output file | |
# - Replace "myChildNode" by your tag | |
# - Replace "myParentNode" by your parent tag | |
# Run: | |
# $ awk -f xml-split.awk myXML.xml |
Get line number when number of occurrences of a specific pattern in a line is different from a given argument. Usefull for test the number of columns in a CSV file.
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
mQINBFj80rcBEADkNAuCPZevurJp5Z8qqv4lDX0XYUVhVFfI88tS0mTPYv0W7Oxx | |
jIKgYql/0NLh7iWGKaLeeYynRRadove9W5shBfzQVgBCAWsHaMsliv9DxM8jZoq3 | |
eziHHvfLXPKhRKSSf0WQFyg2Lg5eAJw4zQTCR/QPSKZRKkgOY9JcGgedt+lIpkeV | |
rFydBIiLDUKdabhv6RlqIG5t1NIcU150iFA7SJfis2ee5bVTe46gS5Fr/YFvnK5P | |
j9kFx6CAfP6JYC2kLlbC8yYItzwflKefUnRNMUJfn4XRhIfCIaY4i34x7btgtr+4 | |
wfNonba+zC9g07Ej6CiuA1GPg13/I6lBt5DkJNcPVqmk1Qjw3WbTBWMLpFMS821R | |
VG3nIwDCQu3Hz2q5bO+SIlPFBI6w5PhPiRvlV/D6QLFc9b2mJYnzPFuqBGfw9kUu | |
7OcQnEBUeZQ5cgWNw6pA8eBSn6T62sgQUjK4md9w7C2qNJK4a9kLOg4qB6FnxB9g |