Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / .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 / 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 / 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 / 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 / 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 / script.md
Last active December 4, 2016 10:07
Ubuntu formatting before and after - a todo- and checklist

System

sudo apt-get update
sudo apt-get upgrade

Environment

Control

Less memory swapped / write-operations to the SSD

require 'colored'
require 'grit'
require 'optparse'
require_relative 'git-recap/version'
class GitRecap
def run(argv)
# process_args(argv)
@ScreamingDev
ScreamingDev / .gitconfig
Last active January 3, 2016 05:29
Modman / Git shortcuts If you add this to your gitconfig (in your home dir), then you can clone anything like `modman clone gh:ath` and have your little helper on the fly ;)
[url "https://github.com/fbrnc/Aoe_TemplateHints.git"]
insteadOf = "gh:ath"
[url "https://github.com/fbrnc/Aoe_Profiler.git"]
insteadOf = "gh:profiler"
[url "https://github.com/EcomDev/EcomDev_PHPUnit.git"]
insteadOf = "gh:phpunit"
[url "https://github.com/sourcerer-mike/magento-devMode.git"]
insteadOf = "gh:devmode"
[url "https://github.com/madalinoprea/magneto-debug.git"]
insteadOf = "gh:debug"