This file contains hidden or 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 | |
# tmux requires unrecognized OSC sequences to be wrapped with DCS tmux; | |
# <sequence> ST, and for all ESCs in <sequence> to be replaced with ESC ESC. It | |
# only accepts ESC backslash for ST. | |
function print_osc() { | |
if [ x"$TERM" = "xscreen" ] ; then | |
printf "\033Ptmux;\033\033]" | |
else | |
printf "\033]" |
This file contains hidden or 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
// Based on the script found here | |
// https://village.ccbchurch.com/message_comment_list.php?message_id=2530&view_increment=1&search_term=groups | |
// Get Sheet and CCB Data | |
function getgroups() { | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sheet = ss.getActiveSheet(); | |
var unamepass ="username:password"; | |
var CCBLink = "https://churchsubdomain.ccbchurch.com/api.php?"; | |
var CCBapi = "srv=group_profiles"; |
This file contains hidden or 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 | |
/** | |
* mp3s.php | |
* Parses enclosure urls from itunes RSS feed | |
* @author Jason Tucker | |
*/ | |
?> | |
<html> | |
<head> |
This file contains hidden or 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
active=$(wp plugin list --status=active --format=csv --fields=name) | |
for plugin in $active; do | |
( | |
if [ ! $plugin = 'name' ]; then | |
wp plugin install $plugin --force | |
fi | |
) | |
done |
This file contains hidden or 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
xidel --user-agent "fogent" "http://new.livestream.com/EvFreeFullerton/events/2393629" -q --extract '//strong[@class="js-viewer_count_number"]' |
This file contains hidden or 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
function jgt_get_remote_ogimage(){ | |
$sites_html = get_post_meta( get_the_ID(), 'linked_list_url', true ); | |
$html = new DOMDocument(); | |
@$html->loadHTML($sites_html); | |
$meta_og_img = null; | |
//Get all meta tags and loop through them. | |
foreach($html->getElementsByTagName('meta') as $meta) { | |
//If the property attribute of the meta tag is og:image |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am jasontucker on github. | |
* I am jasontucker (https://keybase.io/jasontucker) on keybase. | |
* I have a public key whose fingerprint is E490 ED04 7059 1072 BF11 968C 9A18 783E 8A9B 8F1F | |
To claim this, I am signing this object: |
This file contains hidden or 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
#Code I'm using to do the WordPress plugin deployment: | |
https://github.com/sudar/wp-plugin-in-github | |
# My directory listing | |
[master] ~/Dropbox/WordPress/myplugins/display-registered-image-dimensions $ ls -1 | |
./ | |
../ | |
.git/ | |
LICENSE | |
assets-wp-repo/ |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
// ADD THEME ACF Options UNDER APPEARANCE | |
add_action('admin_menu', 'add_acf_options_to_appearance'); | |
function add_acf_options_to_appearance() | |
{ | |
add_submenu_page( 'themes.php', 'Theme Options', 'Theme Options', 'edit_pages', 'admin.php?page=acf-options, '', '', 6); | |
} |