Skip to content

Instantly share code, notes, and snippets.

View grantholle's full-sized avatar
🍔
55 burgers, 55 fries, 55 tacos, 55 pies, 55 cokes, 100 tater tots, 100 pizzas...

Grant grantholle

🍔
55 burgers, 55 fries, 55 tacos, 55 pies, 55 cokes, 100 tater tots, 100 pizzas...
View GitHub Profile
@grantholle
grantholle / help.html
Last active October 11, 2021 13:40
Missy jQuery help
<script>
// Keep everything scoped to this function
// Run on startup
$j(function() {
// Storing as a variable
const $fpCompl = $j('#fpcompl')
// Add any other 'editable' values you want to this array
const editable = [
'No(AR)',
'Yes(DE)'
@grantholle
grantholle / MailboxFactory.php
Created July 23, 2021 00:35
A simple class that creates an Exchange mailbox using the LdapRecord package
<?php
use Illuminate\Support\Str;
use LdapRecord\Models\ActiveDirectory\Entry;
use LdapRecord\Models\ActiveDirectory\User as LdapUser;
use LdapTools\Security\GUID;
use Ramsey\Uuid\Uuid;
class MailboxFactory
{
@grantholle
grantholle / Dockerfile
Last active March 31, 2021 06:48
This multistage dockerfile only processes the last "stage"
# PHP
FROM php:8.0-fpm-alpine AS php
# Install system dependencies
RUN apk update && apk add --no-cache \
git \
curl \
libxml2-dev \
libzip-dev \
libpng-dev \
@grantholle
grantholle / keybase.md
Created December 7, 2020 01:10
My keybase verification

Keybase proof

I hereby claim:

  • I am grantholle on github.
  • I am grantholle (https://keybase.io/grantholle) on keybase.
  • I have a public key ASADbBNujwnUQIi4Ak_0Pt3c-5CJwqjrKju0BOTUfuLbUgo

To claim this, I am signing this object:

@grantholle
grantholle / Paginator.vue
Last active October 17, 2020 05:55
A Vue pagination component for Laravel using Tailwind
<template>
<div class="bg-white px-4 py-3 flex items-center justify-between sm:px-6">
<div v-if="meta.total > 0" class="flex-1 flex justify-between sm:hidden">
<component :is="prevPage ? 'inertia-link' : 'button'" :href="prevPage" class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
Previous
</component>
<component :is="nextPage ? 'inertia-link' : 'button'" :href="nextPage" class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm leading-5 font-medium rounded-md text-gray-700 bg-white hover:text-gray-500 focus:outline-none focus:shadow-outline-blue focus:border-blue-300 active:bg-gray-100 active:text-gray-700 transition ease-in-out duration-150">
Next
</component>
</div>
Your subscription to our list has been confirmed.
Thank you for subscribing!
+298423
----MbG4n21t;bIeLQY
<p>Hi!</p>
<p>Thanks for joining the 529 Garage.</p>
<p>Your 529 Garage user name is:</p>
<p>Now, setup a password to complete your signup</p>
----NVYKwn9i;AwWyDO
@grantholle
grantholle / tailwind.js
Created May 1, 2020 23:59
Laraform tailwind theme starter
import utils from '@laraform/laraform/src/utils'
import defaultTheme from '@laraform/laraform/src/themes/default/essentials'
export default utils.extendTheme(defaultTheme, {
classes: {
/*
* Form
*/
form: 'block w-full',
@grantholle
grantholle / tailwind.config.js
Created April 24, 2020 14:28
LDi brand colors in the form of a tailwind config file
module.exports = {
theme: {
extend: {
colors: {
ldi: {
primary: '#0085ca',
secondary: '#005b94',
dark: '#002237',
},
isc: {
@grantholle
grantholle / gist:bd6749b46aea859a12ced1c1cb45979e
Created September 8, 2019 05:03
Valet installation attempt
➜ composer global require laravel/valet
Changed current directory to /Users/grant/.composer
1/1: http://repo.packagist.org/p/provider-latest$d33b2c38d9884bf87536a4497d92a1e82d5f425b5ed6c48c3bc293e4a6ba668c.json
Finished: success: 1, skipped: 0, failure: 0, total: 1
Using version ^2.3 for laravel/valet
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
runtime.support.InternalException: Unexpected exception occurred: org.springframework.transaction.TransactionSystemException
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor$ActionRunner.run(LegacySystemInterceptor.java:44)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.lambda$runInHandler$0(LegacySystemHandler.java:34)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.doRunInHandler(LegacySystemHandler.java:47)
com.pearson.powerschool.web.interceptor.LegacySystemHandler.runInHandler(LegacySystemHandler.java:33)
com.pearson.powerschool.web.interceptor.LegacySystemInterceptor.intercept(LegacySystemInterceptor.java:27)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.PowerSchoolEnabledInterceptor.intercept(PowerSchoolEnabledInterceptor.java:21)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:245)
com.pearson.powerschool.web.interceptor.HttpHeadInterce