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
| docker image pull image_name | |
| docker run -it image_name sh |
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
| function grabSwitchCaseValues(string) { | |
| let parseArr = string.split('\n'); | |
| let freshObj = {} | |
| for (let i=0;i<parseArr.length;i=i+2) { let lan = parseArr[i].substring(parseArr[i].indexOf('"') + 1, parseArr[i].lastIndexOf('"')); const returnVal = parseArr[i+1].substring(parseArr[i+1].indexOf('"') + 1, parseArr[i+1].lastIndexOf('"')); freshObj[lan] = returnVal} | |
| console.log(freshObj) | |
| } | |
| grabSwitchCaseValues(`case "yoruba": | |
| return "yo"; | |
| case "shona": |
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
| ffmpeg -ss $START -i $INFILE -c copy -map 0 -t $DURATION $OUTFILE | |
| ffmpeg -ss "0" -i HB-DAY.mp3 -c copy -map 0 -t "15000" "HB-CUT-p1.mp3" |
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
| ffmpeg -t 1218 -f lavfi -i color=c=black:s=640x480 -c:v libx264 -tune stillimage -pix_fmt yuv420p output.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
| dir /s /b *.mp3 | findstr /v .mp3. |
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
| const command = ffmpeg() | |
| const commandArray = [] | |
| command.addInput(`./best.mp4`) | |
| command.addInput(`./best2.wav`) | |
| commandArray.push(`[1]volume=0.1[a1]`) | |
| command.addInput(`./voiceover.mp3`) | |
| commandArray.push(`[2]volume=0.9[a2]`) | |
| let ffmpegKeys = '[a1][a2]amix=inputs=2[a]' | |
| commandArray.push(ffmpegKeys) |
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
| const request = https.get(url, (response) => { | |
| if (response.statusCode === 200) { | |
| var len = parseInt(response.headers['content-length'], 10); | |
| var downloaded = 0 | |
| response.pipe(fs.createWriteStream(filepath) | |
| .on("error", (error) => { | |
| //error | |
| }) | |
| .on('finish', () => { | |
| //finish |
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
| gcloud functions deploy helloGCSGeneric --runtime nodejs8 --trigger-resource gs://storageurl.com --trigger-event google.storage.object.finalize |
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
| ffmpeg -i yellowstonefinal.mp4 -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:01:31.000 yellowstonetrimmed.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
| ffmpeg -i input.mp4 -ss 00:00:10 -to 00:00:25 -c:v copy -c:a copy output.mp4 |
NewerOlder