All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| Get-Process "Process Name" | Format-List Path |
| ENDPOINT | |
| -------- | |
| https://data.mongodb-api.com/app/data-amzuu/endpoint/data/beta | |
| API KEY | |
| -------- | |
| 0vaT8d5Vh9cgvm3KdIQJWkl5M8alZgnoOczmApFlWVTMqisg24QWrUfMS0wkQ5Sj | |
| db.File.find({}).forEach(function(document) { | |
| if (document.PublicLink.startsWith("http")) { | |
| document.PublicLink = document.PublicLink.replace("http", "https") | |
| } | |
| db.File.save(document) | |
| }) |
| var moment = require('moment'); | |
| var tokenExpirationDate = pm.collectionVariables.get("token-expiration-date"); | |
| var currentTime = moment().format(); | |
| if ( (tokenExpirationDate === "") || (currentTime >= tokenExpirationDate) ){ | |
| pm.sendRequest({ | |
| url: pm.collectionVariables.get("local-url") + '/login', | |
| method: 'POST', |
| { | |
| # Enable Debug mode | |
| debug | |
| # Disable admin API | |
| admin off | |
| } | |
| localhost { | |
| # https://caddyserver.com/docs/caddyfile/directives/push |
| ffmpeg -i "c:/videos/sample.mp4 | |
| -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 | |
| -c:v libx264 -crf 22 -c:a aac -ar 48000 | |
| -filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 64k | |
| -filter:v:1 scale=w=640:h=480 -maxrate:v:1 900k -b:a:1 128k | |
| -filter:v:2 scale=w=1280:h=720 -maxrate:v:2 900k -b:a:2 128k | |
| -var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p" | |
| -preset slow -hls_list_size 0 -threads 0 -f hls -hls_playlist_type event -hls_time 3 | |
| -hls_flags independent_segments -master_pl_name "name-pl.m3u8" | |
| "c:/videos/encoded/name-%v.m3u8" |
| alias subs=subs | |
| function subs() { | |
| movie="${1}" | |
| filename="${1%.*}" | |
| mappings=`ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 "${movie}"` | |
| OLDIFS=$IFS | |
| IFS=, | |
| ( while read idx lang | |
| do |
| package main | |
| import ( | |
| "math" | |
| "fmt" | |
| ) | |
| //::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | |
| //::: ::: | |
| //::: This routine calculates the distance between two points (given the ::: |