This file contains 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
find . -name "*.css" -print0 | xargs -0 file | grep 8859 |
This file contains 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
# x.6 likes to not use it on some displays and removes the ui for setting it manually | |
# see http://www.macosxhints.com/article.php?story=20090828224632809 | |
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 |
This file contains 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
#!/bin/zsh -ef | |
# Stop Time Machine & AppleFileServer | |
export PATH=/bin:/usr/bin:/usr/sbin:/usr/libexec | |
setopt extendedglob | |
diskutil mount $(diskutil list | awk '/MaryBackup\+ A/ { print $NF }') | |
[[ $(id -u) == 0 ]] || { print "$0: must be running as root" >&2 ; exit 1 } |
This file contains 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
defaults write /Library/Preferences/com.apple.TimeMachine AutoBackup -bool NO |
This file contains 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
launchctl unload -w /System/Library/LaunchDaemons/com.apple.spindump.plist |
This file contains 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
# create signature to be used in appcast | |
openssl dgst -sha1 -binary < !:1 | openssl dgst -dss1 -sign /path/to/private/key.pem | openssl enc -base64 |
This file contains 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
# convert to MP4/H.264 and Ogg simultaneously | |
/Incoming/VLC.app/Contents/MacOS/VLC -I dummy ~/Dropbox/Public/VLC/Original.dv --sout='#duplicate{dst="transcode{vcodec=h264,venc=x264{profile=main,level=3},vb=800,scale=1,acodec=mp4a,ab=128,channels=2,samplerate=32000}:standard{access=file,mux=mp4,dst=/tmp/test.mp4}",dst="transcode{vcodec=theora,vb=800,scale=1,acodec=vorb,ab=128,channels=2,samplerate=32000}:standard{access=file,mux=ogg,dst=/tmp/test.ogg}"}' vlc://quit |
This file contains 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
#!/usr/bin/env python | |
#coding=utf-8 | |
""" | |
posterImageFromMovie.py, 2010 by Sven-S. Porst <[email protected]> | |
Uses PyObjC to extract the poster frame from a movie file and save it as a JPEG next to the movie. An existing file moviename.jpeg will be overwritten. | |
""" | |
from QTKit import * | |
import sys | |
import os |
This file contains 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 Original.dv -y -target dv Target.dv | |
# Original.dv: 2 stereo channels of 32kHz audio | |
# Target.dv will have one stereo channel of 48KHz audio. | |
# -y overwrites the target file |