Skip to content

Instantly share code, notes, and snippets.

View phptek's full-sized avatar

Russ Michell phptek

View GitHub Profile
@phptek
phptek / gist:fdcc7c53efedb2cd51fd
Last active August 29, 2015 14:02
BitBucket post-push hook
<?php
/**
*
* Receive POST requests from bitbucket.org and pull latest based on incoming branch filtering.
* Note: You'll need to setup www-data user (Debian) with SSH keys in the /var/www/.ssh dir and add the public key to bitbucket's UI.
*/
class bitbucketGit {
/**
*
@phptek
phptek / gist:7593542
Last active December 29, 2015 01:29
SVN to GIT project converter.
#!/usr/bin/env php -q
<?php
/*
* Modified from an original by Sam Minnee for SilverStripe Ltd
*/
if(empty($_SERVER['argv'][2])) {
echo "Usage: {$_SERVER['argv'][0]} <svn repo> <dest folder>\n";
echo "Runs: git svn clone for the repo and then manually pulls.\n";
exit(1);
@phptek
phptek / gist:6278911
Created August 20, 2013 08:49
A list of websites and applications that are, or purport to be, "Open Ideas" repositories
* http://myopenideas.com/
* http://www.openideo.com
* http://www.iinspireus.com/how-it-works/sharing
* http://openideas.ideon.co
* http://en.wikipedia.org/wiki/Open_innovation
* http://www.whynot.net/
* http://www.globalideasbank.org/site/home/
Software:
@phptek
phptek / ss-upgrade.sh
Last active October 11, 2015 18:38 — forked from stojg/ss-upgrade.sh
Search and replace for SS 3.0 upgrade [beta]
#!/bin/bash
#
# ss-upgrader.sh
#
# INTRODUCTION
#
# There are some threads on the SS forums that describe the techdocs for upgrading a 2.4 site to 3.x as being too technical. Mainly from content authors who
# also happen to be site maintainers - they are not coders.
# The aim of this script is to therefore to automate - in as much as this is possible in a user-configured, open-source software project - to help those new to
# SS3 upgrade from 2.x as smoothly as possible.