Skip to content

Instantly share code, notes, and snippets.

@ouija
ouija / README.md
Created February 27, 2020 01:01 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
// Override Ninja Forms v3.6.1+ submissions page and make select list to redirect to post editor
function override_nf_submissions() {
if (is_admin() && !defined( 'DOING_AJAX' ) && $_GET['page'] == "nf-submissions") {
if (is_numeric($_GET['form_id'])) header("Location: edit.php?post_status=all&post_type=nf_sub&form_id=".$_GET['form_id']."&nf_form_filter&paged=1");
?>
<script>
jQuery(function($) {
$('#inspector-select-control-0').replaceWith($('#inspector-select-control-0').clone());
$('#nf-submissions-element > div > div.tablenav.top > div > div.nf_form_filter_container').remove();
$(document).on('change','#inspector-select-control-0', function(e) {
@ouija
ouija / lightslider-breakpoints-bootstrap.js
Created August 26, 2022 04:15
lightSlider breakpoints for Bootstrap
/*
These are breakpoints utilized with lightSlider (http://sachinchoolur.github.io/lightslider/) and Bootstrap framework.
Note: lightSlider doesn't seem to account for scrollbar wideth in the breakpoint value.
*/
responsive : [
{
breakpoint:1383, /* lightslider is 17px (scrollbar width) less than actual window size */
settings: {
item:5