Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
❤️💣s

James whoacowboy

💭
❤️💣s
View GitHub Profile
@whoacowboy
whoacowboy / get-props-and-methods-daz3d.dsa
Last active Aug 29, 2015
Daz3D script for getting the properties and methods of the global objects.
View get-props-and-methods-daz3d.dsa
// DAZ Studio version 4.7.0.12 filetype DAZ Script
function propsAndMethods(obj) {
var classInfo = obj.name + " (" + obj.className() + ")";
var seperator = "";
for (var i = 0; i < classInfo.length; i++){
seperator += '_';
}
print(seperator);
print(classInfo);
@whoacowboy
whoacowboy / Clear.php
Last active Oct 30, 2015
Artisan command to clear all caches
View Clear.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Clear extends Command
{
/**
* The name and signature of the console command.
@whoacowboy
whoacowboy / install_imagick.sh
Last active Jan 13, 2016
Imagemagick imagick and php7
View install_imagick.sh
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
git clone https://github.com/mkoppanen/imagick.git /tmp/imagick
cd /tmp/imagick
@whoacowboy
whoacowboy / commands.txt
Last active Nov 27, 2016
Brew error Mac OS X Sierra
View commands.txt
sudo chown -R `whoami`:admin /usr/local/bin
sudo chown -R `whoami`:admin /usr/local/share
sudo chown -R `whoami`:admin /usr/local/lib
View NPM Helpers
sudo chown -R $USER:$GROUP ~/.npm
npm cache clean
@whoacowboy
whoacowboy / StripeToken.php
Created May 24, 2017
An abstract class with a few of the Stripe test cards
View StripeToken.php
<?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';
@whoacowboy
whoacowboy / Useful.txt
Created Sep 9, 2017
Useful Laravel Links
View Useful.txt
Blender is the Laravel template that is used for all of Murze's projects
Blender
https://github.com/spatie/blender
@whoacowboy
whoacowboy / Readme.md
Last active Apr 4, 2018
Uninstall XAMPP - Install Valet - Install TemaTres
View Readme.md

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
whoacowboy / imagick3.4.3-PHP7.2-forge.sh
Created Apr 26, 2019 — forked from rostockahoi/imagick3.4.3-PHP7.2-forge.sh
Install Imagick 3.4.3 on PHP 7.2 server (Laravel Forge)
View imagick3.4.3-PHP7.2-forge.sh
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
apt-get install pkg-config libmagickwand-dev -y
cd /tmp
wget https://pecl.php.net/get/imagick-3.4.3.tgz
tar xvzf imagick-3.4.3.tgz
You can’t perform that action at this time.