Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
#!/bin/bash | |
set -e | |
SECRETFILE=~/.digitalocean | |
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then | |
if [ -e $SECRETFILE ]; then | |
. $SECRETFILE | |
fi | |
fi |
// Browser compat | |
window.AudioContext = window.AudioContext || window.webkitAudioContext; | |
window.RTCPeerConnection = window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection; | |
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia; | |
var key = window.location.hash.substring(1); | |
var audio_context = new AudioContext(); | |
var local_output = audio_context.createMediaStreamDestination(); |
<?php | |
////////////////////// | |
// SECURE WP_ADMIN // | |
////////////////////// | |
// ---- 1. edit wp-config.php | |
/* tells wordpress what the new directory is, and updates the cookie path. | |
define( 'WP_ADMIN_DIR', 'manager' ); | |
define( 'ADMIN_COOKIE_PATH', '/' ); | |
*/ |
Direct copy of pre-encoded file:
$ ffmpeg -i filename.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8
Granted, this is little more than an obfuscated way of having a publicly writable S3 bucket, but if you don’t have a server which can pre-sign URLs for you, this might be an acceptable solution.
For this to work, you take the following steps:
jsonData='[{"name": "name#1","value": "value#1"},{"name": "name#2","value": "value#2"}]' | |
for row in $(echo "${jsonData}" | jq -r '.[] | @base64'); do | |
_jq() { | |
echo "${row}" | base64 --decode | jq -r "${1}" | |
} | |
# OPTIONAL | |
# Set each property of the row to a variable | |
name=$(_jq '.name') | |
value=$(_jq '.value') |
This is a sample script for executing a function with the minutes timer in the specific times using Google Apps Script. For example, when this sample script is used, the following situation can be achieved.
When the above situation is shown as an image, it becomes as follows.