Skip to content

Instantly share code, notes, and snippets.

View scottwakefield's full-sized avatar

Scott Wakefield scottwakefield

View GitHub Profile
@scottwakefield
scottwakefield / Preferences.sublime-settings
Last active April 20, 2016 14:38
Sublime Text Preferences
{
"always_show_minimap_viewport": true,
"auto_complete": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"create_window_at_startup": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
@scottwakefield
scottwakefield / PS1
Last active August 29, 2015 14:06
Bash Prompt
PS1="\n\[\e[1;31m\]\u\[\e[30m\] on \[\e[1;33m\]\h\[\e[30m\] in \[\e[1;32m\]\W\[\e[30m\] (\A) \[\e[0m\]\n$ "
@scottwakefield
scottwakefield / .gitignore_global
Created January 8, 2015 10:35
Global .gitignore
# Installation instructions: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
@scottwakefield
scottwakefield / config.fish
Last active June 10, 2016 15:18
Fish Shell Config
# Navigation Aliases
function ..; cd .. ; end
function ...; cd ../.. ; end
function ....; cd ../../.. ; end
function .....; cd ../../../.. ; end
# Utilities Aliases
function g; git $argv ; end
function grep; command grep --color=auto $argv ; end
#!/bin/bash
# ------------------------------------------------------------------------------
# Create .env file
# ------------------------------------------------------------------------------
cat > .env <<EOL
DB_HOST=localhost
DB_NAME=
DB_USER=
<?php
namespace App\Notifications;
use Illuminate\Support\Str;
use Illuminate\Cache\RateLimiter;
use Illuminate\Support\Facades\Log;
use Illuminate\Notifications\RoutesNotifications;
trait RoutesThrottledNotifications
<form id="payment-information" class="pure-form pure-form-aligned light" method="POST">
<input type="hidden" name="action" value="commerce/payments/pay"/>
{{ redirectInput('order/confirmation/{number}') }}
{{ csrfInput() }}
<input type="hidden" name="cancelUrl" value="{{ '/order'|hash }}"/>
<input type="hidden" name="gatewayId" value="{{ cart.gatewayId }}"/>
<noscript>
<div class="bs-callout bs-callout-danger">
<h4>JavaScript is not enabled!</h4>
<p>This payment form requires your browser to have JavaScript enabled. Please activate JavaScript and reload this page. Check <a href="http://enable-javascript.com" target="_blank">enable-javascript.com</a> for more informations.</p>