Skip to content

Instantly share code, notes, and snippets.

View mirzu's full-sized avatar

Michal Minecki mirzu

View GitHub Profile
@mirzu
mirzu / circle.yml
Last active June 24, 2017 17:57
CircleCi 2.0 config for creating Multidev enviroments from a Github PR
version: 2
jobs:
build:
docker:
- image: notnoopci/php:7.1.5-browsers
working_directory: ~/wordpress
steps:
- add_ssh_keys
- run:
name: Install Terminus
@mirzu
mirzu / keybase.md
Created November 11, 2016 15:30
keybase.md

Keybase proof

I hereby claim:

  • I am mirzu on github.
  • I am mirzu (https://keybase.io/mirzu) on keybase.
  • I have a public key whose fingerprint is 47DA 68D3 7AD1 45D8 E0A4 B14A 90EA 062E F5CF 1E1E

To claim this, I am signing this object:

@mirzu
mirzu / digger.js
Created January 20, 2016 02:49
A simple minecraft script that digs holes leaving only valuable ore in place. Written with Blocky on learntomod.com
var currentBlock;
var depth;
var drone;
var i;
var keep;
var keepIndex;
var length2;
var width;
function cube(length2, width, depth) {
//////////////////////////////
// Default Variables
//////////////////////////////
$Breakpoint-Settings: (
'default media': all,
'default feature': min-width,
'default pair': width,
'force all media type': false,
'to ems': false,
// Contact CTA
// Contact section, featured on Front and Our Work.
$contact-md: 560px;
$contact-mdlg: 690px;
$contact-lg: 850px;
.front-contact {
@include clearfix;
@mirzu
mirzu / xdebug.ini
Created June 18, 2015 00:36
Xdebug Setting.
[XDebug]
zend_extension="/usr/lib/php5/modules/xdebug.so"
xdebug.coverage_enable=1
xdebug.default_enable=1
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
@mirzu
mirzu / config.yml
Created June 17, 2015 23:32
Config to use xdebug locally
---
# Vagrant configuration.
# `vagrant_box` can also be set to geerlingguy/centos6, geerlingguy/centos7,
# geerlingguy/ubuntu1204, parallels/ubuntu-14.04, etc.
vagrant_box: geerlingguy/ubuntu1404
vagrant_hostname: drupalvm.dev
vagrant_ip: 192.168.88.88
vagrant_user: vagrant
# A list of synced folders, with the keys 'local_path', 'destination', 'id', and
<?php
// ...
$context = array(
'type' => $type,
'profile' => $profile);
$clone_entity = clone $entity;
drupal_alter('pmpapi_push_doc', $doc, $context, $cloned_entity);
return $doc;
//....
{
"data": [{
"type": "text",
"data": {
"text": "Hello, my name is **Sir Trevor**"
}
}]
"data": [{
"type": "video reference",
"data": {
@mirzu
mirzu / images.js
Created June 21, 2013 00:54
images stream function
var request = require('superagent');
var Stream = require('stream');
/**
* Get Images function
*
*/
module.exports = function images(url, fn) {
var data = '';
// Set up a stream to pipe data to.