$ ffmpeg -i <URL.m3u8>
$ ffmpeg -i URL.m3u8 -map <SOURCE_IDX>:p:<PROGRAM_NUMBER> -c copy output.ext
#!/bin/bash | |
<< //// | |
The script creates 'licenses' under '$ANDROID_HOME' and creates a file which proves | |
that the SDK license was accepted by the user. | |
Please copy this to your own account/gist/server. Every time there's an updated license, update the file with the new | |
license hash. | |
Legally if you run this script (or your own version of it), it means YOU accepted the license - don't trust someone else. | |
The hashes below are supposed to be taken from $ANDROID_HOME/licenses/android-sdk-license on YOUR machine, after you |
First download the install app bundle. Older versions can be hard to find but the current version of the time you read this, can be found in the App Store.
To create a drive run this command: hdiutil create -o /tmp/Mojave.cdr -size 6200m -layout SPUD -fs HFS+J
.
Next you will need to mount that drive hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build
.
Use the downloaded app bundle to create the media: sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
.
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
const axios = require('axios') | |
const fs = require('fs-extra') | |
const TimeoutStream = require('./timeoutStream') | |
const DEFAULT_TIMEOUT = 10000 | |
module.exports.download = function download(downloadURL, destPath, timeout=DEFAULT_TIMEOUT) { | |
const tmpPath = `${destPath}.tmp` |
document.querySelector('#readme').setAttribute('style', 'position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 100; background-color: white') | |
document.querySelector('body').appendChild(document.querySelector('#readme')) | |
window.print() |
/** | |
* dwmconfig.h | |
* Hardware multimedia keys | |
*/ | |
/* Somewhere at the beginning of config.h include: */ | |
/* | |
You obviously need the X11 development packages installed, X11proto in particular, but | |
here is the location of the keysyms header upstream copy if you can't bother | |
using the contents of your own hard drive. ;-P |
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/13.2/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport | |
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport/6.1/ /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/DeviceSupport | |
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport/13.2/ /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/DeviceSupport |
#!/bin/bash | |
# Full path to tc binary | |
TC=$(which tc) | |
# | |
# NETWORK CONFIGURATION | |
# interface - name of your interface device | |
# interface_speed - speed in mbit of your $interface | |
# ip - IP address of your server, change this if you don't want to use |
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """ | |
import numpy as np | |
import cPickle as pickle | |
import gym | |
# hyperparameters | |
H = 200 # number of hidden layer neurons | |
batch_size = 10 # every how many episodes to do a param update? | |
learning_rate = 1e-4 | |
gamma = 0.99 # discount factor for reward |