Skip to content

Instantly share code, notes, and snippets.

View Seldaek's full-sized avatar
😀
😀

Jordi Boggiano Seldaek

😀
😀
View GitHub Profile

Annotation Change RFC

Most of those changes are ideas taken from the php-annotations lib (see its wiki too) by Rasmus Schultz.

Goals

I am not the author of that lib but have been discussing with him for a while and I am convinced that this could benefit Symfony users and PHP as a whole on the long run, if we standardized the annotations a bit more than what we have right now.

@Seldaek
Seldaek / Default.sublime-theme
Created January 13, 2012 09:40
Patch for Sublime Text 2 "highlight_modified_tabs" (missing in b2165)
/* Path: Packages/Theme - Default/Default.sublime-theme, add add the end before the ']' */
/* Patch for highlight_modified_tabs */
,{
"class": "tab_control", "attributes": ["dirty"],
"tint_modifier": [255, 255, 0, 230],
"layer0.texture": "Theme - Default/dark_tab_mask3.png",
"layer2.texture": "Theme - Default/dark_unselected_tab_bg2.png",
"layer2.opacity": 1.0
},
@Seldaek
Seldaek / deploy.sh
Created February 13, 2012 18:15
Deployment script
#!/bin/sh
targetUser="seld"
targetHost="seld.be"
parentDir="/home/seld"
childDir="packagist.org"
port="22"
configFile="~/etc/conf/$childDir.yml"
@Seldaek
Seldaek / composer.json
Created February 17, 2012 16:22
standard-distro temp
{
"autoload": {
"psr-0": { "": "src/" }
},
"require": {
"php": ">=5.3.2",
"symfony/symfony": "2.1.0-dev",
"doctrine/orm": "2.2.0",
"doctrine/doctrine-bundle": "master-dev",
"twig/extensions": "master-dev",
@Seldaek
Seldaek / RSSFeedGen.php
Created February 17, 2012 17:38
Old RSS Feed "lib"
<?php
namespace Seld\RSSBundle;
/**
* RSS feed (RSS 2.0) generator
*
* all the mandatory fields are set in the constructor, the rest is
* accessible either through public properties or public methods.
*
@Seldaek
Seldaek / composer.json
Created March 9, 2012 08:52
Private Repo Handling
{
"repositories": [ { "type": "composer", "url": "http://composer.example.org/" } ],
"require": {
"company/package": "1.2.0",
"company/package2": "1.5.2",
"company/package3": "dev-master"
}
}
@Seldaek
Seldaek / gitconfig
Created March 27, 2012 08:37
Git config aliases
[alias]
co = checkout
ci = commit
st = status
br = branch
rb = rebase
fu = !git fetch upstream
fo = !git fetch origin
p = push
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%an %cr)%Creset' --abbrev-commit --date=relative
@Seldaek
Seldaek / Comments.mdown
Created May 21, 2012 08:11
PHAR build script

This creates a $buildphar as $root/$target/foo.phar + one phar per tag as $root/$target/download/$tag/foo.phar

It also dumps the latest git commit hash built in $root/$target/version

@Seldaek
Seldaek / LoggerInterface.php
Created November 16, 2012 10:35
LoggerInterface PSR Proposal
<?php
namespace PSR\Log;
/**
* Describes a logger instance
*
* The message MUST be a string.
*
* The context array can contain arbitrary data, the only assumption that
@Seldaek
Seldaek / composer.json
Created February 19, 2013 15:55
security checker integration
{
// ...
"scripts": {
"post-update-cmd": [
"checker security:check composer.lock"
]
}
}