Skip to content

Instantly share code, notes, and snippets.

require 'colored'
require 'grit'
require 'optparse'
require_relative 'git-recap/version'
class GitRecap
def run(argv)
# process_args(argv)
@ScreamingDev
ScreamingDev / wicca.py
Created February 19, 2014 22:42
very first python :)
import argparse
import git
import os
import colorama
import shutil
class InitAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
if os.path.isdir(".git"):
print colorama.Fore.YELLOW + "This is already a project. Skipping the rest."
@ScreamingDev
ScreamingDev / attributeSet.yaml
Last active August 29, 2015 13:56
product.yaml
eav:
attribute:
– attribute_id: 42
entity_type_id: 4
attribute_code: foobar
frontend_input: select
the_new_one: yyy
@ScreamingDev
ScreamingDev / functions.php
Created March 14, 2014 11:10
taxonomie kommt nicht
function codex_muse_subcategory_taxonomy_init() {
// create a new taxonomy
register_taxonomy(
'subcategory',
'page',
array(
'label' => __( 'Untermenüs' ),
'rewrite' => array( 'slug' => 'unterkategorien' ),
'capabilities' => array(
'assign_terms' => 'edit_guides',
@ScreamingDev
ScreamingDev / semantic-commits.md
Last active August 29, 2015 13:57
Semantic commits described with ABNF

Semantic commits

Writing commits is a fast and simple process which we do all day. Imagine them becoming powerful for us which finally give them some attention. The following semantic commits will do so and have the aim to:

  • Generate a changelog with commits for end-user
  • Generate a speaking summary for customer
  • Generate a easy to read list of changes for developer
  • In general: Make commits parseable by some script
@ScreamingDev
ScreamingDev / .proof.txt
Last active August 29, 2015 13:57
php .user.ini
$ php -i | grep user_ini
user_ini.cache_ttl => 10 => 10
user_ini.filename => .user.ini => .user.ini
@ScreamingDev
ScreamingDev / foo.md
Created March 31, 2014 10:28
magedoc

This documentation has been generated by combining static and dynamic code analysis. Please excuse the lack of information or bad english which is up to the developer of each extension.

Modules

Acme_Doc

@ScreamingDev
ScreamingDev / import.php
Last active August 29, 2015 14:00
WordPress Shell Script
<?php
/*
* Like to do a shell import?
*
* Place this in wp-content/plugins/foo-plugin/bin/import.php
*/
function out( $txt ) {
if ( func_num_args() > 1 ) {
$txt = vsprintf( $txt, array_slice( func_get_args(), 1 ) );
@ScreamingDev
ScreamingDev / AbstractPost.php
Last active August 29, 2015 14:00
Make WordPress feel like Magento - Post vs. VarienObject
<?php
namespace Oowp;
/**
* Class Oowp_AbstractPost
*
* @method getPostContent()
* @method getPostTitle()
* @method setPostContent($string)
<?xml version="1.0"?>
<project name="waferthin.com" description="Targets for maintaining and deploying the waferthin.com web site." default="deploy">
<!-- See book here: http://www.packtpub.com/expert-php-5-tools/book -->
<!-- initialize timestamp that will be used in naming of various files & directories -->
<tstamp/>
<target name="deploy" depends="get-env,create-skeleton,svn-export,stamp-config,disp-maint,backup-db,deploy-db,publish-site" description="Deploy the site to the web server and perform necessary build and upgrade tasks.">
</target>
<target name="get-env" description="get the environment for an action">