A tool for interacting with PHP code from the command line. It is intended to be used alongside Respect\Config.
Usage: [action] [config] [command]
#!/usr/bin/php | |
<?php | |
// v v | |
// \\O// | |
$RED = 31; | |
$GREEN = 32; | |
$BLUE = 34; | |
$MAGENTA = 35; | |
$CYAN = 36; |
apt-get install apache2 php5 php5-mysql php5-cli php5-dev php5-xsl php-pear mysql-server mysql-client phpmyadmin subversion |
<?php | |
include_once __DIR__.'/autoload.php.dist'; | |
/** | |
* PHPDoc block inspector for Symfony 2.0's classes. | |
* At the moment, this inspector tells which methods have missing PHPDoc blocks | |
* or have not been completely written (it checks the number of @param elements | |
* in the PHPDoc block against the number of parameters in every method). | |
* |
#!/bin/bash | |
# | |
# assess-security.sh | |
# | |
# AUTHOR: José Nahuel Cuesta Luengo @ncuestal | |
# | |
## | |
# Assess the security status of a symfony 1.X application. |
by Jonathan Rochkind, http://bibwild.wordpress.com
Capistrano automates pushing out a new version of your application to a deployment location.
I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
#!/bin/bash | |
### ### | |
## ## | |
# # | |
# Insist on committing some changes using fast:commit # | |
# This script takes at least one argument: # | |
# + The changelist number. # | |
# Optionally, you may indicate the maximum number of attempts # | |
# desired. # |
#!/usr/bin/env php | |
<?php | |
/** | |
* Insist on committing some changes using fast:commit. | |
* This script takes at least one argument: | |
* + The changelist number. | |
* Optionally, you may indicate the maximum number of attempts desired. | |
*/ |
The FAQ maintained by Github covers most stumbling blocks, some other tips and tricks supplied here.
Add _site
to .gitignore
. The generated site should not be uploaded to Github since its gets generated by github.