Skip to content

Instantly share code, notes, and snippets.

@vestman
vestman / Remove Valet+
Last active December 30, 2020 19:00 — forked from fnhipster/prune
Remove valet-plus - reboot required
#!/usr/bin/env bash
#styles
VP_NONE='\033[00m'
VP_RED='\033[01;31m'
VP_GREEN='\033[01;32m'
VP_YELLOW='\033[01;33m'
VP_PURPLE='\033[01;35m'
VP_CYAN='\033[01;36m'
VP_WHITE='\033[01;37m'
@vestman
vestman / mailhog-mamp.md
Created April 9, 2019 20:18 — forked from jaredatch/mailhog-mamp.md
Install MailHog with MAMP Pro

Install MailHog with MAMP Pro, using HomeBrew.

MailHog

First let's make sure HB is updated. Open up terminal for the following steps.

$ brew update
@vestman
vestman / media-queries.less
Created March 10, 2016 08:58
Less: Mixin for building media queries
//
// Create media queries
// -
// Live example: http://goo.gl/M1pJ6c
// -
// Example:
// .selector {
// ...
// .Mq(sm; {
// width: 100px;
@vestman
vestman / gist:5d9ce0c51869b33a8f51
Created December 4, 2014 14:47
Magento - Copy/duplicate Categories
<?php
if(!is_numeric($_GET['id']))die('Please specify a category ID');
$catId = $_GET['id'];
$xml = simplexml_load_file('app/etc/local.xml');
$host = $xml->global->resources->default_setup->connection->host;
$username = $xml->global->resources->default_setup->connection->username;
$password = $xml->global->resources->default_setup->connection->password;