Skip to content

Instantly share code, notes, and snippets.

@BaddMann
BaddMann / ffmpegoverlay.sh
Last active Mar 27, 2017
FFMpeg Overlay of slides with Sound Mixing
View ffmpegoverlay.sh
ffmpeg -i AZPosh-DamianBrady-OctopusDeployforthePowerShellUser-audacitycompress.mp4 -i AZPoshTemplates720.mp4 -filter_complex "[0:v][1:v]overlay=enable='between(t\,0,70)'[out];[0:a][1:a]amix=inputs=2[aout]" -shortest -map [out] -map [aout] -pix_fmt yuv420p -c:v libx264 -crf 18 AZPosh-DamianBrady-OctopusDeployforthePowerShellUser-audacitycompress-overlay3.mp4
View munkievents.py
#!/usr/bin/env python
import plistlib
import os
from Foundation import CFPreferencesCopyAppValue
# Read the location of the ManagedInstallDir from ManagedInstall.plist
BUNDLE_ID = 'ManagedInstalls'
pref_name = 'ManagedInstallDir'
managedinstalldir = CFPreferencesCopyAppValue(pref_name, BUNDLE_ID)
@BaddMann
BaddMann / plist-parser.js
Created Apr 4, 2012 — forked from hanshuebner/plist-parser.js
plist parser written in node.js
View plist-parser.js
var plistParser = require("../lib/sax").parser(false, {lowercasetags:true, trim:true}),
sys = require("sys"),
fs = require("fs");
function entity (str) {
return str.replace('"', '"');
}
plistParser.getInteger = function (string) {
this.value = parseInt(string, 10);
@BaddMann
BaddMann / .gitignore
Created Apr 3, 2012 — forked from bergie/.gitignore
Node.js email handling examples
View .gitignore
config.json
reading-image.png