Skip to content

Instantly share code, notes, and snippets.

View whoacowboy's full-sized avatar

James whoacowboy

View GitHub Profile
whoacowboy /
Created April 26, 2019 21:46 — forked from rostockahoi/
Install Imagick 3.4.3 on PHP 7.2 server (Laravel Forge)
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
tar xvzf imagick-3.4.3.tgz
whoacowboy /
Last active April 4, 2018 18:08
Uninstall XAMPP - Install Valet - Install TemaTres

Uninstall XAMPP

How to uninstall XAMPP on Mac OS X?

Installation (Mac OS X)

Run these commands in terminal (every line with a # in front of it is a comment)

Uninstall Apache

sudo apachectl -k stop
whoacowboy / Useful.txt
Created September 9, 2017 14:53
Useful Laravel Links
Blender is the Laravel template that is used for all of Murze's projects
whoacowboy / StripeToken.php
Created May 24, 2017 18:43
An abstract class with a few of the Stripe test cards
<?php namespace App
abstract class StripeToken
const BYPASS_PENDING_TOKEN = 'tok_bypassPending';
const BYPASS_PENDING_CC = '4000000000000077';
const BYPASS_PENDING_LAST4 = '0077';
const BYPASS_PENDING_DESC = 'Charge succeeds and funds will be added directly to your available balance (bypassing your pending balance).';
const DOMESTIC_PRICING_TOKEN = 'tok_domesticPricing';
sudo chown -R $USER:$GROUP ~/.npm
npm cache clean
whoacowboy / commands.txt
Last active November 27, 2016 23:02
Brew error Mac OS X Sierra
sudo chown -R `whoami`:admin /usr/local/bin
sudo chown -R `whoami`:admin /usr/local/share
sudo chown -R `whoami`:admin /usr/local/lib
whoacowboy /
Last active January 13, 2016 01:09
Imagemagick imagick and php7
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
git clone /tmp/imagick
cd /tmp/imagick
whoacowboy / Clear.php
Last active October 30, 2015 21:25
Artisan command to clear all caches
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Clear extends Command
* The name and signature of the console command.
whoacowboy / get-props-and-methods-daz3d.dsa
Last active November 6, 2022 23:51
Daz3D script for getting the properties and methods of the global objects.
// DAZ Studio version filetype DAZ Script
function propsAndMethods(obj) {
var classInfo = + " (" + obj.className() + ")";
var seperator = "";
for (var i = 0; i < classInfo.length; i++){
seperator += '_';