Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.
brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
/* LED Blink, Teensyduino Tutorial #1 | |
http://www.pjrc.com/teensy/tutorial.html | |
This example code is in the public domain. | |
*/ | |
#include <Wire.h> | |
// Teensy 2.0 has the LED on pin 11 | |
// Teensy++ 2.0 has the LED on pin 6 | |
// Teensy 3.0 has the LED on pin 13 | |
const int ledPin = 13; |
前提 | |
----------- | |
- docker 0.9.1 | |
- lxcを入れること | |
- linux 3.11で確認。 3.8以上じゃないとだめっぽい。 | |
- ubuntu image (docker pull ubuntuで取ってきたもので試してみた) | |
- imageにはpython2を入れておくこと | |
- /usr/bin/tee がimageにあること |
import paramiko | |
client = paramiko.SSHClient() | |
client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) | |
client.connect('HOST', port=22, username='USERNAME', password='PASSWORD') | |
channel = client.get_transport().open_session() | |
channel.invoke_shell() | |
while channel.recv_ready(): |
#### Jekyll Layout: /_layouts/.htaccess | |
# Apache Configuration File | |
{% if ((page.auth_dir.users != empty) or (page.auth_dir.groups != empty)) %} | |
AuthName "Privater Bereich" | |
AuthType Basic | |
# => mehrere Require Blocks werden geodert: http://d43.me/blog/1157 | |
AuthzUserAuthoritative Off | |
AuthUserFile {{ page.auth_remote_user_file }} |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.smbd.plist | |
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist EnabledServices -array disk |
The code and instructions in this gist are from http://peterdowns.com/posts/open-iterm-finder-service.html. I've had to do this a few times and wanted to distill it the basics.
Automator
Application
Actions > Utilities > Run Applescript
open_in_iterm.app
into the window.#!/bin/bash | |
# do this on localhost (deployment host) | |
# ensure that there's a local ssh private key | |
ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa | |
# now make sure that the public key is in the second host's authorized_keys | |
# then do a test ssh connection to make sure it works, and to add the host | |
# to known hosts |
TARGET="/Volumes/Macintosh HD" # Specify where to configure Recovery partition | |
MACOS_INSTALLER="/Applications/Install\ macOS\ Sierra.app" # Path to your macOS installer | |
# Remaining paths ahead are dependant on OS version | |
# This *should* support 10.9 and above but is only tested on 10.12 | |
curl http://support.apple.com/downloads/DL1464/en_US/RecoveryHDUpdate.dmg -L -o ~/Downloads/RecoveryHDUpdate.dmg | |
hdiutil mount ~/Downloads/RecoveryHDUpdate.dmg | |
pkgutil --expand /Volumes/Mac\ OS\ X\ Lion\ Recovery\ HD\ Update/RecoveryHDUpdate.pkg /tmp/recoveryupdate |