brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')
Cut video from 00:00:43 sec to 00:00:58 sec (15 sec duration).
Resize it to 720p.
Max quality options, but small size.
With audio:
javascript:(function(){function copyToClipboard(a){if(window.clipboardData&&window.clipboardData.setData)return clipboardData.setData("Text",a);if(document.queryCommandSupported&&document.queryCommandSupported("copy")){var b=document.createElement("textarea");b.textContent=a,b.style.position="fixed",document.body.appendChild(b),b.select();try{return document.execCommand("copy")}catch(a){return console.warn("Copy to clipboard failed.",a),!1}finally{document.body.removeChild(b)}}};copyToClipboard(('feature-' + document.querySelector('a#key-val.issue-link').innerText + '-' + document.querySelector('h1#summary-val.editable-field.inactive').innerText).replace(/ /g, '_').replace(/\[|\]|\.|'|"|>/g,''));})() |
/* | |
Author: Josh McDonald | |
Twitter: @onestepcreative | |
Website: joshmcdonald.net | |
A simple helper to log color coded messages to the | |
javascript console, using a shorter syntax to console.log | |
You can leave your dev.log() statements scattered throughout |
tell application "Notes" | |
set theMessages to every note | |
repeat with thisMessage in theMessages | |
set myTitle to the name of thisMessage | |
set myText to the body of thisMessage | |
var getParams = function (url) { | |
// get query string from url (optional) or window | |
var queryString = url ? url.split('?')[1] : location.search.slice(1); | |
// we'll store the parameters here | |
var obj = {}; | |
// if query string exists | |
if (queryString) { |
var countryCodesMap = { | |
"ad": "and", | |
"ae": "are", | |
"af": "afg", | |
"ag": "atg", | |
"ai": "aia", | |
"al": "alb", | |
"am": "arm", | |
"ao": "ago", | |
"aq": "ata", |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.virtualbox</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Library/StartupItems/VirtualBox/VirtualBox</string> | |
<string>restart</string> |
/* -----------------------------*/ | |
/* Debugging */ | |
// Show d(ebug)alerts only when in DEBUG mode | |
window.dalert = function (a, b, c, d) { | |
if (window.ALLOW_DEBUG) window.alert(a, b, c, d); | |
}; | |
window.dtitle = function (a) { | |
if (window.ALLOW_DEBUG) document.title=a; | |
}; | |
$(function () { |
<?xml version="1.0"?> | |
<cross-domain-policy> | |
<site-control permitted-cross-domain-policies="master-only"/> | |
<allow-access-from domain="*" /> | |
</cross-domain-policy> |
String.prototype.inArray = function(arr) { | |
for (var i = arr.length - 1; i >= 0; i--) { | |
if (arr[i] == this.toString()) return true; | |
}; | |
return false; | |
}; | |
"dick".inArray(["tom", "dick", "harry"]); // true |