do-release-upgrade -f DistUpgradeViewNonInteractive
Note that any prompts might hang for 30 seconds or so before proceeding with the default answer.
convert tmp/base.0100.png \( +clone -alpha Extract \) -channel RGB -compose Divide_Src -composite tmp/shadow.0100.png -compose Dst_Over -composite output/preview.0100.png |
# Allows you to specify just a container, or to prepend | |
# a port to get to something not running on 80 | |
# ie, http://foo, or http://p9200.foo | |
# Obviously, you still need a host lookup mechanism for these | |
server { | |
listen 80 default_server; | |
server_name "~^(p(?<port>\d+)\.)?(?<container>[^\.]+)"; | |
location / { | |
if ($port = '') { | |
set $port 80; |
# This uses http at rotates my output 270 degrees (camera is in a werid position) | |
# I'm only doing 10 fps -- which keeps the load on the pi at around 1.5. Note that you need to | |
# be sure to max the framerate used by the pi with the framerate used by cvlc | |
sudo raspivid -o - -t 0 -w 1900 -h 1080 -rot 279 -fps 10 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8160}' :demux=h264 :h264-fps=10 | |
# Use rtsp -- this is less firewall friendly but gracefuly trades off quality/framerate and loads up the pi less | |
# As above, carefully note that fps has to match on both sides. Note that the higher the fps, the lower the quality | |
# and visa-versa. Of course, you can also drop the resolution | |
sudo raspivid -o - -t 0 -w 1900 -h 1080 -rot 279 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 :h264-fps=24 |
# Predictable SSH authentication socket location. | |
SOCK="$HOME/.ssh/ssh-agent-sock" | |
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != $SOCK ] | |
then | |
ln -sf $SSH_AUTH_SOCK $SOCK | |
export SSH_AUTH_SOCK=$SOCK | |
fi |
# Remote user must have NOPASSWD set in sudoers | |
# This example mirrors an entire directory | |
rsync --progress -avz --delete --rsync-path="sudo rsync" /path/to/sync/ user@host:/path/to/sync |
do-release-upgrade -f DistUpgradeViewNonInteractive
Note that any prompts might hang for 30 seconds or so before proceeding with the default answer.
func externalIP() (string, error) { | |
addrs, err := net.InterfaceAddrs() | |
if err != nil { | |
return "", err | |
} | |
for _, addr := range addrs { | |
var ip net.IP | |
switch v := addr.(type) { | |
case *net.IPNet: | |
ip = v.IP |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "PublicReadGetObject", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": [ | |
"s3:GetObject" | |
], |
select disk 1 | |
convert dynamic | |
select volume 2 | |
delete volume | |
select disk 2 | |
convert dynamic | |
select volume 2 | |
delete volume | |
create volume stripe disk=1,2 | |
format quick recommended label="My Label" |
curl -XPUT 'localhost:9200/_settings' -d ' | |
{ | |
"index" : { | |
"number_of_replicas" : 0 | |
} } | |
' |