Skip to content

Instantly share code, notes, and snippets.

@corny
corny / git.cap
Created November 14, 2013 01:31
Capistrano 3 with Git Submodules
# Save this file as lib/capistrano/tasks/git.cap
namespace :git do
desc 'Copy repo to releases'
task create_release: :'git:update' do
on roles(:all) do
with fetch(:git_environmental_variables) do
within repo_path do
execute :git, :clone, '-b', fetch(:branch), '--recursive', '.', release_path
end
@matthewriley
matthewriley / Git1841onCentOS64.md
Last active August 8, 2018 18:28
Install Git 1.8.4.1 from source on CentOS 6.4

Install Git 1.8.4.1 from source on CentOS 6.4

These are the Terminal commands I recently used (October 2013) to install Git 1.8.4.1 from source on CentOS 6.4. I ran this in a VirtualBox VM after a fresh install from the ISO.

If you are not running in a VirtualBox VM, you will need run the following first.

su
yum -y install gcc make
exit
@kemo
kemo / fix.diff
Last active July 16, 2018 06:47
Kohana 2 ob_end_clean() hotfix (PHP 5.4+)
diff --git a/system/core/Kohana.php b/system/core/Kohana.php
index 271f917..287c271 100644
--- a/system/core/Kohana.php
+++ b/system/core/Kohana.php
@@ -722,7 +722,7 @@ final class Kohana {
if (ob_get_level() >= self::$buffer_level)
{
// Set the close function
- $close = ($flush === TRUE) ? 'ob_end_flush' : 'ob_end_clean';
+ $close = ($flush === TRUE) ? 'ob_end_flush' : 'Kohana::_ob_end_clean';