Skip to content

Instantly share code, notes, and snippets.

View highsmithcodes's full-sized avatar
👨‍🔧

Highsmith Codes highsmithcodes

👨‍🔧
View GitHub Profile
@bradtraversy
bradtraversy / laravel_valet_setup.md
Last active April 25, 2024 06:41
Laravel Valet install on mac

Laravel Valet Setup (Mac)

This will get you setup with Laravel & Valet on your Mac. Quentin Watt has a good video tutorial on getting setup here as well

Install Homebrew

Go to https://brew.sh/ and copy the command and run in your terminal

It will be something like this...

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
@ljayz
ljayz / readme.txt
Last active May 10, 2024 16:41
Fix aws codecommit unable to access repository (The requested URL returned error: 403) in windows
this was tested using windows10 pro
when cloning a git this error was produced
fatal: unable to access 'https://git-codecommit.us-east-1.amazonaws.com/v1/repos/RepositoryName': The requested URL returned error: 403
to fix add the following git configuration
git config --global credential.helper "!aws codecommit credential-helper $@"
git config --global credential.UseHttpPath true
check if git has system credential.helper by typing
@connor11528
connor11528 / create_laravel_app.sh
Created July 11, 2017 21:09
Create a new Laravel application
#!/bin/bash
laravel new $1
cd $1
composer install
yarn install
touch README.md
cp .env.example .env
git init
git add -A
@jawinn
jawinn / primary_category.php
Last active December 8, 2022 21:42
Display Primary Category (Yoast's WordPress SEO)
<?php
/**
* Get the Yoast primary category from its post meta value, and displays it, with HTML markup.
* If there is no primary category set, it displays the first assigned category.
*
* @param boolean $useCatLink Whether to link the category, if it exists
* @return void
*/
function yourtheme_display_yoast_primary_category( $useCatLink = true ) {
//1-(Defense of Plainswood)
this.buildXY('fence',40,52);this.buildXY('fence',40,20);
//2-(Winding Trail)
this.moveXY(36,60);this.moveXY(37,12);this.buildXY('fence',72,25);
//3-(Thumb Biter)
this.say('a');this.say('b');this.say('c');
//4-(Burl Beets Booleans)
@subfuzion
subfuzion / curl.md
Last active May 16, 2024 18:04
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@gaearon
gaearon / slim-redux.js
Last active May 5, 2024 15:14
Redux without the sanity checks in a single file. Don't use this, use normal Redux. :-)
function mapValues(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
result[key] = fn(obj[key], key);
return result;
}, {});
}
function pick(obj, fn) {
return Object.keys(obj).reduce((result, key) => {
if (fn(obj[key])) {
@paaljoachim
paaljoachim / Ninja-Forms-CSS.css
Last active November 15, 2020 06:00
Showing Ninja Forms HTML code and a styled CSS form.
/* STYLING NINJA FORMS - add to your stylesheet and adjust */
/* The full form */
#ninja_forms_form_1_wrap {
background-color: #f89a16;
padding: 20px;
border: 2px solid #ccc;
border-radius: 8px;
box-shadow: 0px 3px 5px #444;
@spivurno
spivurno / gw-gravity-forms-calculated-shipping.php
Last active November 19, 2021 16:51
Gravity Wiz // Gravity Forms // Calculated Shipping
<?php
/**
* WARNING! THIS SNIPPET MAY BE OUTDATED.
* The latest version of this snippet can be found in the Gravity Wiz Snippet Library:
* https://github.com/gravitywiz/snippet-library/blob/master/gravity-forms/gw-calculated-shipping.php
*/
/**
* Gravity Wiz // Gravity Forms // Calculated Shipping
*
* A simple method for using a calculated product field as a shipping field. This provides the ability to use