Skip to content

Instantly share code, notes, and snippets.


Nikolai Zujev jaymecd

View GitHub Profile
jaymecd /
Last active Mar 29, 2018 — forked from tonyoconnell/gist:2351492
Install Magento 1.x with sample data
if [ ! -f ~/Downloads/magento- ]; then
wget -O ~/Downloads/magento-
wget -O ~/Downloads/magento-sample-data-
jaymecd / phpunit.watchr
Created Feb 18, 2013
Continuous builds with PHPUnit `sudo gem install watchr`
View phpunit.watchr
# Copyright (C) 2011 by Henrik Bjornskov <>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice shall be included in
View build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="${projectName}" basedir="." default="build:main">
<!-- Properties -->
<property name="" value="${project.basedir}/app" />
<property name="dir.src" value="${project.basedir}/src" />
<property name="" value="${project.basedir}/app/build" />
<property name="" value="${}/docs" />
<property name="" value="${}/phpdoc" />
<property name="" value="${}/docblox" />
<property name="dir.reports" value="${}/logs" />
jaymecd / Vagrantfile
Created Aug 13, 2013
Multiboxes Vagrantfile
View Vagrantfile
# Run before: $ vagrant plugin install vagrant-hosts
domain = 'dev'
boxes = {
"wheezy64" => "",
"precise64" => "",
nodes = [
# Apt-install various things necessary for Ruby, guest additions,
# etc., and remove optional things to trim down the machine.
apt-get -y update
apt-get -y remove apparmor
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev
apt-get clean
# Remove this file to avoid dhclient issues with networking
rm -f /etc/udev/rules.d/70-persistent-net.rules
View composer.json
"repositories": {
"antimattr/google-bundle": {
"package": {
"name": "antimattr/google-bundle",
"version": "master",
"source": {
"url": "git://",
"type": "git",
"reference": "master"
jaymecd / put_request
Last active Dec 22, 2015
Fatal PUT request is bypassed by symfony logger and php error_log. It's caused by "Warning: parse_str(): Input variables exceeded 1000" PHP settings: error_reporting => -1 error_log => /tmp/php_error log_errors => On
View put_request
$ curl -sS -X PUT -d "x0=1&x1=1&x2=1&x3=1&x4=1&x5=1&x6=1&x7=1&x8=1&x9=1&x10=1&x11=1&x12=1&x13=1&x14=1&x15=1&x16=1&x17=1&x18=1&x19=1&x20=1&x21=1&x22=1&x23=1&x24=1&x25=1&x26=1&x27=1&x28=1&x29=1&x30=1&x31=1&x32=1&x33=1&x34=1&x35=1&x36=1&x37=1&x38=1&x39=1&x40=1&x41=1&x42=1&x43=1&x44=1&x45=1&x46=1&x47=1&x48=1&x49=1&x50=1&x51=1&x52=1&x53=1&x54=1&x55=1&x56=1&x57=1&x58=1&x59=1&x60=1&x61=1&x62=1&x63=1&x64=1&x65=1&x66=1&x67=1&x68=1&x69=1&x70=1&x71=1&x72=1&x73=1&x74=1&x75=1&x76=1&x77=1&x78=1&x79=1&x80=1&x81=1&x82=1&x83=1&x84=1&x85=1&x86=1&x87=1&x88=1&x89=1&x90=1&x91=1&x92=1&x93=1&x94=1&x95=1&x96=1&x97=1&x98=1&x99=1&x100=1&x101=1&x102=1&x103=1&x104=1&x105=1&x106=1&x107=1&x108=1&x109=1&x110=1&x111=1&x112=1&x113=1&x114=1&x115=1&x116=1&x117=1&x118=1&x119=1&x120=1&x121=1&x122=1&x123=1&x124=1&x125=1&x126=1&x127=1&x128=1&x129=1&x130=1&x131=1&x132=1&x133=1&x134=1&x135=1&x136=1&x137=1&x138=1&x139=1&x140=1&x141=1&x142=1&x143=1&x144=1&x145=1&x146=1&x147=1&x148=1&x149=1&x150=1&x151=1&x152=1&x153=1&x154=1&x1
jaymecd /
Last active Dec 25, 2015
PS1 bash prompt with git info

Dynamic bash prompt and alias list

$ curl -sSL | sudo tee /etc/bash_prompt

$ curl -sSL | sudo tee /etc/bash_alias

$ curl -sSL | tee -a ~/.bashrc

Global git setup

$ curl -sSL | sudo tee /etc/gitconfig

$ curl -sSL | sudo tee /etc/gitignore
You can’t perform that action at this time.