This file contains hidden or 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
class UseUtf8mb4Characterset < ActiveRecord::Migration | |
def up | |
# The migration has been done following: | |
# - http://mathiasbynens.be/notes/mysql-utf8mb4#utf8-to-utf8mb4 | |
# - http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-upgrading.html | |
database = Rails.configuration.database_configuration[Rails.env]["database"] | |
# Stop checking foreign keys | |
execute "SET foreign_key_checks = 0" |
This file contains hidden or 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
This requires a couple of windows (or a screen/tmux session) | |
First create a fifo to use | |
mkfifo video.h264 | |
In the first window start raspivid in the following way | |
while true; do raspivid -n -vf -hf -w 460 -h 270 -b 512000 -t 36000000 -o video.h264 -v; done | |
In the second window start vlc like: | |
cvlc video.h264 --sout "#duplicate{dst=std{access=udp,mux=ts,dst=239.255.1.2:1234}}" :demux=h264 --ttl 4 -I http --sout-keep -v --loop |