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
/* | |
* Get the auth token from local option | |
* | |
* @access public | |
* @return NULL | |
*/ | |
public function get_local_auth_token() { | |
// get the token from the options table | |
$this->auth_token = get_option( 'bigcommerce_auth_token' ); |
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
/* | |
* Get the auth token from BigCommerce | |
* | |
* @access public | |
* @return string $token | |
*/ | |
public function get_remote_auth_token() { | |
// Set up the REST authentication headers | |
$headers[ 'X-Auth-Token' ] = $this->access_token; |
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 | |
/opt/homebrew/bin/ffmpeg -ss 0.5 -f avfoundation -r 30.000030 -i "0" -t 1 /Users/topher/window_shots/"grmi_$(date +%F_%H-%M-%S).jpg" -frames:v 1 | |
unset -v latest | |
for file in /Users/topher/window_shots/*; do | |
[[ $file -nt $latest ]] && latest=$file | |
done | |
keychain --noask --eval id_dsa |
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
// change slug on post if title is changed. | |
add_action( 'save_post', 'icput_post_title_fix' ); | |
function icput_post_title_fix( $post_id ) { | |
$url = rwmb_get_value( 'canonical_url', '', $post_id ); | |
if ( empty( $url ) ) { | |
return; | |
} |
OlderNewer