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 | |
function msp_get_card_type( $card_num ){ | |
/** | |
* Returns card type based on card number using public BIN API | |
* @param string $card_number | |
* @return string $card_type | |
*/ | |
$ch = curl_init(); |
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
#!/bin/bash | |
# Gregory Bastianelli | |
# http://gerrg.com/resume | |
# 30-09-2019 | |
# Could pass a number of flags to quickly loop through and update any field (db column) | |
# download file | |
FILENAME='./sohUS.csv' | |
curl -o "${FILENAME}" http://www.portwest.us/downloads/sohUS.csv |
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
# Greg Bastianelli | |
# 26-09-1994 | |
# Requires WP-CLI | |
# Regex's from https://gist.github.com/gemmadlou/7a0189bfae6c2c7268de12f1de822b8a | |
# Uses an array of regex specifically designed to trim off all wp-bakery visual-studio from your wordpress content. | |
declare -a arr=("\[/vc(.*?)\]" "\[vc(.*?)\]" "\[custom_font(.*?)\]" "\[/custom_font(.*?)\]" "\[/vc_column_text(.*?)\]" "\[vc_separator(.*?)\]" "\[/vc_column(.*?)\]" "\[vc_row(.*?)\]" "\[portfolio_list(.*?)\]"); | |
for i in "${arr[@]}" | |
do |
NewerOlder