Skip to content

Instantly share code, notes, and snippets.

View AV4TAr's full-sized avatar

Diego Sapriza AV4TAr

View GitHub Profile
<IfModule mod_proxy.c>
ProxyRequests Off
<Proxy *>
AddDefaultCharset off
Order deny,allow
Deny from all
Allow from 192.168.8.0/24
</Proxy>
ProxyVia On
</IfModule>
<?php
return array(
'modules' => array(
'Application',
'MyModule1',
'MyModule2',
//and so on...
),
//...
)
<?php
// dont return the array, just define a variable to use it later
$config = array(
'modules' => array(
'Application',
),
//...
)
// use this only for development

#Javascript Resources

@AV4TAr
AV4TAr / php-zf2-resources.md
Last active August 9, 2021 14:13
A bunch of resources for PHP and Zend Framework 2
Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/bankaccount/workspace
Checkout:workspace / /var/lib/jenkins/jobs/bankaccount/workspace - hudson.remoting.LocalChannel@2d65ca94
Using strategy: Default
Last Built Revision: Revision 2e4531bb95c791be304fc03c8cccced11a7de437 (origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from [email protected]:AV4TAr/bankaccount.git
Commencing build of Revision 2e4531bb95c791be304fc03c8cccced11a7de437 (origin/master)
Checking out Revision 2e4531bb95c791be304fc03c8cccced11a7de437 (origin/master)
[workspace] $ ant
task :ask_production_confirmation do
set(:confirmed) do
puts <<-WARN
========================================================================
WARNING: You're about to perform actions on production server(s)
Please confirm that all your intentions are kind and friendly
========================================================================
set :user, "diego"
set :domain, "capistrano.vbox2"
set :application, "Prueba de Capistrano"
set :repository, "[email protected]:AV4TAr/githubTest.git"
set :deploy_to, "/home/#{user}/deploy/#{domain}"
set :shared_path, "#{deploy_to}/shared"
set :use_sudo, false
set :csm, :git
set :branch, 'master'
#showing git branches in bash prompt
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
@AV4TAr
AV4TAr / gist:4008612
Created November 3, 2012 20:26
sorteo
<?php
$participantes = file('asistentes.csv');
$total = count($participantes);
for($i=1; $i<=10; $i++ ){
$posicion = rand(0, $total - 1 );
echo $i.' - '.$participantes[$posicion];
}