echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
<?php | |
/** | |
* Get an array of gravity forms. | |
* | |
* @since 1.0.0 | |
* | |
* @return void | |
*/ | |
function jdn_gf_options() { | |
$form_array = array(); |
Better version here: https://gist.github.com/tnorthcutt/efbf4ce76797f6efa7bde9cc5405143c
<?php | |
function mg_rcp_hijack_login_url() { | |
global $rcp_options; | |
if( isset( $rcp_options['login_redirect'] ) ) { | |
$login_url = get_the_permalink( $rcp_options['login_redirect'] ); | |
} | |
return $login_url; | |
} |
<?php | |
/* | |
Plugin Name: Restrict Content Pro - Custom User Fields | |
Description: Illustrates how to add custom user fields to the Restrict Content Pro registration form that can also be edited by the site admins | |
Version: 1.0 | |
Author: Pippin Williamson | |
Author URI: http://pippinsplugins.com | |
Contributors: mordauk | |
*/ |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
<?php | |
function be_custom_loop() { | |
$loop = new WP_Query( $args ); | |
if( $loop->have_posts() ): while( $loop->have_posts() ): $loop->the_post(); | |
$classes = 0 == $loop->current_post || 0 == $loop->current_post % 2 ? 'one-half first' : 'one-half'; | |
echo '<div class="' . $classes . '">' . get_the_title() . '</div>'; | |
endwhile; endif; wp_reset_postdata(); | |
} |
<?php | |
add_action( 'add_meta_boxes', 'tgm_remove_all_the_metaboxes', 100 ); | |
/** | |
* Removes all metaboxes except the ones I WANT ON MY POST TYPE. RAGE. | |
* | |
* This assumes a specific post type. In my case, it is 'envira'. | |
* This function is very aggressive and removes every single metabox minus | |
* the needed submitdiv metabox (which allows you to publish something) and | |
* the metaboxes that I register with my plugin. | |
* |