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 hidden or 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
| package com.amazonaws.kvstranscribestreaming; | |
| import com.amazonaws.auth.AWSCredentialsProvider; | |
| import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; | |
| import com.amazonaws.kinesisvideo.parser.ebml.InputStreamParserByteSource; | |
| import com.amazonaws.kinesisvideo.parser.ebml.ParserByteSource; | |
| import com.amazonaws.kinesisvideo.parser.mkv.StreamingMkvReader; | |
| import com.amazonaws.kinesisvideo.parser.utilities.FragmentMetadataVisitor; | |
| import com.amazonaws.regions.Regions; |
This file contains hidden or 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 | |
| # You need to have aws-cli installed and configured | |
| # inspired by https://gist.github.com/TheNetJedi/0847ba0ec1da9879b4fa1d8f3276b004 | |
| # command option constants available in the documentation https://docs.aws.amazon.com/lex/latest/dg/API_GetExport.html | |
| mkdir lexbots | |
| aws lex-models get-bots | grep name | cut -d '"' -f4 | \ | |
| while read -r name; do | |
| echo $name | |
| url=$(aws lex-models get-export --name $name --resource-type BOT --export-type LEX --resource-version 1 --region us-east-1 --output json | grep url | cut -d '"' -f4) |
This file contains hidden or 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
| 1. Visit https://awslabs1.awsapps.com/start/ | |
| 2. Log in with your username and password | |
| 3. Your AMB network should already be created with the following settings: | |
| NetworkName acme | |
| NetworkDescription ACME consortium blockchain | |
| Edition STARTER | |
| FirstMemberName ACME1stMember | |
| FirstMemberDescription The first member in the ACME consortium | |
| FirstMemberAdminUsername acme1admin |
This file contains hidden or 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
| #include <ESP8266WiFi.h> | |
| #include <ESP8266WebServer.h> | |
| const char* ssid = ".............."; | |
| const char* password = "................"; | |
| String form = "<form action='led'><input type='radio' name='state' value='1' checked>On<input type='radio' name='state' value='0'>Off<input type='submit' value='Submit'></form>"; | |
| String imagepage = "<img src='/led.png'>"; |
NewerOlder
