Skip to content

Instantly share code, notes, and snippets.

View jaymecd's full-sized avatar

Nikolai Zujev jaymecd

View GitHub Profile
@jaymecd
jaymecd / magento.sh
Last active March 29, 2018 03:10 — forked from tonyoconnell/gist:2351492
Install Magento 1.x with sample data
#!/bin/sh
db_host=localhost
db_name=magento
db_user=root
db_pass=root
if [ ! -f ~/Downloads/magento-1.7.0.2.tar.gz ]; then
wget http://www.magentocommerce.com/downloads/assets/1.7.0.2/magento-1.7.0.2.tar.gz -O ~/Downloads/magento-1.7.0.2.tar.gz
wget http://www.magentocommerce.com/downloads/assets/1.6.1.0/magento-sample-data-1.6.1.0.tar.gz -O ~/Downloads/magento-sample-data-1.6.1.0.tar.gz
@jaymecd
jaymecd / phpunit.watchr
Created February 18, 2013 22:01
Continuous builds with PHPUnit `sudo gem install watchr`
# Copyright (C) 2011 by Henrik Bjornskov <henrik@bjrnskov.dk>
#
# 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="${projectName}" basedir="." default="build:main">
<!-- Properties -->
<property name="dir.app" value="${project.basedir}/app" />
<property name="dir.src" value="${project.basedir}/src" />
<property name="dir.build" value="${project.basedir}/app/build" />
<property name="dir.docs" value="${dir.build}/docs" />
<property name="dir.docs.phpdoc" value="${dir.docs}/phpdoc" />
<property name="dir.docs.docblox" value="${dir.docs}/docblox" />
<property name="dir.reports" value="${dir.build}/logs" />
@jaymecd
jaymecd / Vagrantfile
Created August 13, 2013 21:18
Multiboxes Vagrantfile
# Run before: $ vagrant plugin install vagrant-hosts
domain = 'dev'
boxes = {
"wheezy64" => "https://s3-eu-west-1.amazonaws.com/ffuenf-vagrant-boxes/chef-11.6.0/debian-7.1.0-amd64.box",
"precise64" => "http://files.vagrantup.com/precise64.box",
}
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
"repositories": {
"antimattr/google-bundle": {
"package": {
"name": "antimattr/google-bundle",
"version": "master",
"source": {
"url": "git://github.com/antimattr/GoogleBundle.git",
"type": "git",
"reference": "master"
},
@jaymecd
jaymecd / put_request
Last active December 22, 2015 19:49
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
$ curl -sS http://symfony.site.lan/ -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
jaymecd / BashPrompt.md
Last active April 7, 2021 03:54
PS1 bash prompt with git info

Dynamic bash prompt and alias list

$ curl -sSL https://gist.github.com/jaymecd/6887829/raw/bash_prompt | sudo tee /etc/bash_prompt

$ curl -sSL https://gist.github.com/jaymecd/6887829/raw/bash_alias | sudo tee /etc/bash_alias

$ curl -sSL https://gist.github.com/jaymecd/6887829/raw/bashrc | tee -a ~/.bashrc
@jaymecd
jaymecd / GitSetup.md
Last active December 25, 2015 02:09
GIT setup

Global git setup

$ curl -sSL https://gist.github.com/jaymecd/6900705/raw/gitconfig | sudo tee /etc/gitconfig

$ curl -sSL https://gist.github.com/jaymecd/6900705/raw/gitignore | sudo tee /etc/gitignore