Working draft of the new API for ZeroClipboard v2.0.0.
NOTE: A checked checkbox means that line item has already been implemented in the latest ZeroClipboard master branch.
| /* Starting with avi file "moh.avi" .. could be any video format */ | |
| ffmpeg -i moh.avi -b 1500k -vcodec libx264 -vpre slow -vpre baseline -g 30 moh.mp4 // IE, Opera, Chrome, Safari | |
| (OR) | |
| ffmpeg -i moh.avi -b 1500k -ab 128k -ac 2 -vcodec libx264 -preset slow -crf 22 -threads 0 -profile:v main moh.avi | |
| ffmpeg -i moh.avi -b 1500k -vcodec libtheora -acodec libvorbis -ab 160000 -g 30 moh.ogv // Firefox | |
| ffmpeg -i moh.avi -b 1500k -vcodec libvpx -acodec libvorbis -ab 160000 -f webm -g 30 moh.webm // Chrome |
| unit AppUtils; | |
| {$mode objfpc}{$H+} | |
| interface | |
| uses | |
| SysUtils; | |
| function CheckDir(path:string):Boolean; |
| #!/bin/bash | |
| # Read either the first argument or from stdin (http://stackoverflow.com/questions/6980090/bash-read-from-file-or-stdin) | |
| cat "${1:-/dev/stdin}" | \ | |
| # Strip out comments starting with # | |
| sed -E 's/#.*$//' | \ | |
| # Strip out comments starting with // | |
| sed -E 's/\/\/.*$//' | \ | |
| # Strip out multi-line comments /* ... */ | |
| perl -0777 -pe 's{/\*.*?\*/}{}gs' | \ |
| #!/bin/bash | |
| # Read either the first argument or from stdin (http://stackoverflow.com/questions/6980090/bash-read-from-file-or-stdin) | |
| cat "${1:-/dev/stdin}" | \ | |
| # Convert binary to hex using xxd in plain hexdump style | |
| xxd -ps | \ | |
| # Put spaces between each pair of hex characters | |
| sed -E 's/(..)/\1 /g' | \ | |
| # Merge lines | |
| tr -d '\n' |
| package main | |
| import ( | |
| "encoding/json" | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" |
| <############################# | |
| ## 2015-07-10, 14:45 - | |
| ## Check if Session running with evevated / administrator privledges | |
| #############################> | |
| ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator") | |
| #Ref: http://www.jonathanmedd.net/2014/01/testing-for-admin-privileges-in-powershell.html | |
| <############################# | |
| ## 2015-07-10, 11:10 - |
| ### PowerShell template profile | |
| ### Version 1.03 - Tim Sneath <[email protected]> | |
| ### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba | |
| ### | |
| ### This file should be stored in $PROFILE.CurrentUserAllHosts | |
| ### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following: | |
| ### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force | |
| ### This will create the file and the containing subdirectory if it doesn't already | |
| ### | |
| ### As a reminder, to enable unsigned script execution of local scripts on client Windows, |
user@user:~$HandBrakeCLI -i /file/input.mp4 -o /file/out.mp4 -E fdk_faac -B 96k -6 stereo -R 44.1 -e x264 -q 27 -x cabac=1:ref=5:analyse=0x133:me=umh:subme=9:chroma-me=1:deadzone-inter=21:deadzone-intra=11:b-adapt=2:rc-lookahead=60:vbv-maxrate=10000:vbv-bufsize=10000:qpmax=69:bframes=5:b-adapt=2:direct=auto:crf-max=51:weightp=2:merange=24:chroma-qp-offset=-1:sync-lookahead=2:psy-rd=1.00,0.15:trellis=2:min-keyint=23:partitions=all
** Don't Re-encode already shitty encodes...get good source!**
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |