Skip to content

Instantly share code, notes, and snippets.

View whoacowboy's full-sized avatar
💭
❤️💣s

James whoacowboy

💭
❤️💣s
View GitHub Profile
# ************************************************************
# Sequel Ace SQL dump
# Version 20062
#
# https://sequel-ace.com/
# https://github.com/Sequel-Ace/Sequel-Ace
#
# Host: 127.0.0.1 (MySQL 8.0.36)
# Database: stackoverflow
# Generation Time: 2024-06-09 20:58:56 +0000
@whoacowboy
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 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 / 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';
@whoacowboy
whoacowboy / imagick3.4.3-PHP7.2-forge.sh
Created April 26, 2019 21:46 — forked from rostockahoi/imagick3.4.3-PHP7.2-forge.sh
Install Imagick 3.4.3 on PHP 7.2 server (Laravel Forge)
#!/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
@whoacowboy
whoacowboy / Readme.md
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
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
Blender
https://github.com/spatie/blender
sudo chown -R $USER:$GROUP ~/.npm
npm cache clean
@whoacowboy
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
whoacowboy / install_imagick.sh
Last active January 13, 2016 01:09
Imagemagick imagick and php7
#!/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 / Clear.php
Last active October 30, 2015 21:25
Artisan command to clear all caches
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class Clear extends Command
{
/**
* The name and signature of the console command.