Skip to content

Instantly share code, notes, and snippets.

View morphkurt's full-sized avatar

Damitha Gunawardena morphkurt

View GitHub Profile
alias di='docker images'
alias dlf='docker logs -f'
alias dps='docker ps'
@morphkurt
morphkurt / youtube-dl.md
Created December 21, 2019 22:41
Download Youtube Videos
  1. Go to Search (Magnifying Glass) on the top right hand side.
  2. Type Terminal
  3. Open up Terminal

Check for the upgrades

 ./youtube-dl -U

Download the Youtube Video

/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@morphkurt
morphkurt / purge
Last active July 18, 2016 02:09
Purging Script
#!/bin/bash
locations=/opt/purgescript/purgelocations
purge_days=7
log_location=/opt/purgescript/logs/delete_log
regex=".*\.\(mxf\|mp4\|avi\|mov\)"
function locate_files () {
for loc in `cat ${locations} | sed '/^$/d'`
@morphkurt
morphkurt / create_source_files.sh
Last active July 8, 2016 07:11
Creating Multiple Resoultion YUV files
#!/bin/bash
source_width=1920
source_height=1080
test_name=funckytown
source_file=/mnt/tmp/wowza/qa/source/soure_1920x1080.yuv
encode_location=/mnt/tmp/wowza/qa/multires
ffmpeg_bin=/opt/xxxx/bin/ffmpeg
declare -a resolutions=("1280x720" "1024x576" "640x360" "512x288" "480x270")
prepare-source () {