Skip to content

Instantly share code, notes, and snippets.

@pgodel
pgodel / test.sh
Last active August 29, 2015 13:59
test to install symfony deps using PHP and HHVM
#!/bin/bash
# Instructions
# run: php composer.phar create-project symfony/framework-standard-edition test 2.4.3 --no-scripts
# cd test and download and run this script
if [ ! -f composer.phar ]; then
curl -sS https://getcomposer.org/installer | php
fi
@pgodel
pgodel / composer.lock
Created April 15, 2014 15:32
sf2.4.3 composer.lock
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file"
],
"hash": "2c0295f7b959d7cc894ee1a78d4f3b41",
"packages": [
{
"name": "doctrine/annotations",
"version": "v1.1.2",
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [nprobe.c:3087] Welcome to bprobe v.1.0.0fi772 ($Revision: 1983 $) for x86_64-redhat-linux-gnu
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [nprobe.c:3106] Tracing enabled
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [nprobe.c:4858] There are no bonded interfaces being monitored.
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [plugin.c:133] Loading plugins...
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [plugin.c:142] No plugins found in ./plugins
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [plugin.c:142] No plugins found in /usr/local/lib/bprobe/plugins
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [plugin.c:146] WARNING: Unable to find plugins directory. bProbe will work without plugins!
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [plugin.c:196] 0 plugin(s) loaded [0 delete][0 packet].
Mar 27 14:33:10 sg123 bprobe[83972]: 27/Mar/2012 14:33:10 [nprobe.c:4992] We
27/Mar/2012 14:36:56 [nprobe.c:2017] Exporting flows towards tls://collector.boundary.com:4740 using TLS
/bin/bash: line 1: 96680 Segmentation fault /usr/local/bin/bprobe --tls-key /etc/bprobe/key.pem --tls-ca /etc/bprobe/ca.pem --tls-cert /etc/bprobe/cert.pem -n tls://collector.boundary.com:4740 --flow-version 10 -p 1/1/1/1/0/1 -w 1048576 --pid-file /var/run/bprobe.pid -e 0 --syslog bprobe -b 2 -G --streaming --no-promisc
@pgodel
pgodel / deploy.rb
Created November 28, 2011 16:15 — forked from jakzal/deploy.rb
Updating assets version before assetic dump (capifony)
namespace :symfony do
namespace :assets do
desc "Updates assets version"
task :update_version do
run "sed -i 's/\\(assets_version: \\)\\(.*\\)$/\\1 #{real_revision}/g' #{latest_release}/app/config/config.yml"
end
end
end
before "symfony:assetic:dump" do
@pgodel
pgodel / gist:1186349
Created September 1, 2011 15:01
find by ObjectId reference
{'user.$id':ObjectId('...')}
@pgodel
pgodel / nginx-php-config-sample
Created July 17, 2011 16:19
nginx php config sample
server {
set $website_host "mywonderfulwebsite.org";
set $website_root "/var/www/mywonderfulwebsite/web";
set $default_controller "index.php";
set $symfony_root "/var/www/mywonderfulwebsite/lib/vendor/symfony";
listen 80;
server_name $website_host;
# Gzip