This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pbcopy < ~/.ssh/id_rsa.pub | |
#or | |
cat ~/.ssh/id_rsa.pub | pbcopy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
################################################################################ | |
// Custom WordPress Local Config | |
// Use only for Development | |
// https://gist.github.com/bhubbard/8428583 | |
################################################################################ | |
/* Database Connection Info */ | |
define('DB_NAME', ''); | |
define('DB_USER', ''); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A validation script for use with a "naked" Mailchimp embedded form. | |
* | |
* credit to this post on CSS-Tricks: | |
* https://css-tricks.com/form-validation-part-4-validating-mailchimp-subscribe-form/ | |
* | |
* I added a couple of minor Bootstrap 4 classes | |
**/ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$maize: #f5c300 !default; | |
$mblue: #00274c !default; | |
$mwhite: rgba(255,255,255,0.999); | |
$umgrey: #45494d !default; | |
$light-grey: lighten($umgrey, 62%); | |
html, body{ | |
font-family: -apple-system, BlinkMacSystemFont, | |
"Segoe UI", "Roboto", "Oxygen", | |
"Ubuntu", "Cantarell", "Fira Sans", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$work_year = get_field('work_year'); | |
$work_url = get_field('work_url'); | |
$work_tasks = get_field_object('work_tasks', $post->ID); | |
$value = $work_tasks['value']; | |
$label = $work_tasks['choices'][ $value ]; | |
$work_category= get_field('work_category'); | |
$work_cat_link = get_term_link( $work_category); | |
$work_screenshot = get_field('work_screenshot'); | |
$size = 'thumbnail'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# From https://github.com/postmodern/chruby/issues/399 | |
# ryanong commented on Mar 26 • | |
# Was trying to figure out why this didn't work. | |
# So iterm2 includes https://github.com/rcaloras/bash-preexec which breaks the trap 'command' DEBUG that is used in auto.sh | |
# If you are using iterm I suggest using | |
unset RUBY_AUTO_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Bash 4 using homebrew | |
brew install bash | |
# Or build it from source... | |
curl -O http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz | |
tar xzf bash-4.2.tar.gz | |
cd bash-4.2 | |
./configure --prefix=/usr/local/bin && make && sudo make install | |
# Add the new shell to the list of legit shells |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Let's Debug ACF fields | |
* @link: https://www.advancedcustomfields.com/resources/debug/#debugging-data | |
*/ | |
// Using incorrect field name we get NULL | |
$text = get_field('my_text_field_'); | |
echo '<pre>'; | |
var_dump($text); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (!defined('ABSPATH')) die('Restricted Area'); | |
/* | |
* Plugin Name: Sanitize File Name | |
* Description: Clean file name when uploading files in WordPress. | |
* Version: 20180218 | |
* Author: Mickaël Gris (Neticpro) | |
* Author URI: https://wpchannel.com/renommer-automatiquement-fichiers-accentues-wordpress/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Send New Notification | |
Plugin URI: http://oneblackcrayon.com | |
Description: Pick the specific users to send an email to notifying them about a new post. | |
License: GPLv2 or later | |
*/ | |
// Taken from ACF website |