Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Hall unrivaledcreations

View GitHub Profile
@tliesnham
tliesnham / CoasterValetDriver.php
Last active Aug 10, 2017
Fixes the Responsive Filemanager when running a Coaster project locally with Laravel Valet.
View CoasterValetDriver.php
<?php
class CoasterValetDriver extends ValetDriver
{
/**
* Determine if the driver serves the request.
*
* @param string $sitePath
* @param string $siteName
* @param string $uri
@stollcri
stollcri / chrome_HSTS_clear.md
Last active Nov 24, 2021
Clear 307 HSTS redirects in Google Chrome
View chrome_HSTS_clear.md

To clear 307 HSTS redirects in Google Chrome (if you experimenting with SSL -- you probably wouldn't want to do this for a site that you do not opperate, since it is there to protect you), go to the following URL and delete the site.

chrome://net-internals/#hsts

@maxrice
maxrice / us-state-names-abbrevs.php
Created May 23, 2012
US State Names & Abbreviations as PHP Arrays
View us-state-names-abbrevs.php
<?php
/* From https://www.usps.com/send/official-abbreviations.htm */
$us_state_abbrevs_names = array(
'AL'=>'ALABAMA',
'AK'=>'ALASKA',
'AS'=>'AMERICAN SAMOA',
'AZ'=>'ARIZONA',
'AR'=>'ARKANSAS',
@magnusdahlstrand
magnusdahlstrand / gist:1923948
Created Feb 27, 2012
Remove all ._* and .AppleDouble-files
View gist:1923948
Remove ._*- and .AppleDouble-files from folders.
Adapted from Torkel's comment on http://hints.macworld.com/article.php?story=20021118060850652
Cred to hiber for suggesting adding -print0/-0 to solve whitespace issue.
See all ._*-files:
find . -name '._*' | more
Remove all ._*-files:
find . -name '._*' -print0 | xargs -0 rm