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
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 entity_bundle_ajax_form() { | |
$form['entity_type'] = array( | |
'#type' => 'select', | |
'#title' => t('Entity type'), | |
'#options' => array('' => t('- Select one - ')), | |
'#default_value' => '', | |
'#ajax' => array( | |
'callback' => 'entity_bundle_ajax_form_callback', |
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
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json" |
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
#!/usr/bin/env bash | |
# Usage: {script} DIRECTORY | |
# Find PHP's commented code and remove then. | |
# | |
# --help, -h Displays this help | |
# | |
# Report bugs to Henrique Moody <henriquemoody@gmail.com> | |
# | |
declare -r SCRIPT_NAME=$(basename ${0}) |
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
#!/usr/bin/env bash | |
DEBIAN_PACKAGES=" | |
apache2 \ | |
curl \ | |
default-jre-headless \ | |
git \ | |
python-pip | |
python-typogrify \ | |
unzip \ |
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
/** | |
Scaling | |
- Scale can be used as is which will set the height to 560 but keep aspect ratio for width. | |
- Other options include setting both with & height | |
- Watch out for sizing errors when not divisible by 2 | |
**/ | |
/** MP4 1st pass **/ | |
ffmpeg -i input.mov -vcodec libx264 -vprofile high -preset veryslow -b:v 225k -maxrate 300k -bufsize 1000k -vf scale=-1:560 -threads 2 -pass 1 -an -f mp4 /dev/null |
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 | |
set -ex | |
PARENT_DIR=$(basename "${PWD%/*}") | |
CURRENT_DIR="${PWD##*/}" | |
IMAGE_NAME="$PARENT_DIR/$CURRENT_DIR" | |
TAG="${1}" | |
REGISTRY="hub.docker.com" |
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
SELECT | |
id, name | |
FROM | |
names | |
order by | |
FIELD( | |
( | |
CASE 1 | |
WHEN SUBSTRING(BINARY name 1, 3) = 'Dzs' | |
THEN 'Dzs' |
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 | |
/******************************************************** | |
* Drupal 7 SQL Injection vulnerability demo | |
* Created by Milan Kragujevic (of milankragujevic.com) | |
* Read more at http://milankragujevic.com/post/66 | |
* This will change the first user's username to admin | |
* and their password to admin | |
* Change $url to the website URL | |
********************************************************/ | |
$url = '[URL HERE]'; // URL of the website (http://domain.com/) |
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
id: discussion_aliases | |
label: Discussion aliases | |
source: | |
plugin: d7_node | |
node_type: discussion | |
constants: | |
english: en | |
node: /node | |
empty: "" | |
process: |
OlderNewer