正しい実装でt.coの見えない世界へ
document: https://dev.twitter.com/docs/streaming-api/user-streams
#!/bin/bash | |
# https://mtunn.wordpress.com/odroid-u2★セットアップ/radikoの録音・再生(archlinux)/ | |
pid=$$ | |
wkdir='/var/tmp' | |
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf | |
playerfile="${wkdir}/player.swf" | |
keyfile="${wkdir}/authkey.png" | |
auth1_fms="${wkdir}/auth1_fms_${pid}" | |
auth2_fms="${wkdir}/auth2_fms_${pid}" |
#! /bin/bash | |
# | |
# Diffusion youtube avec ffmpeg | |
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée. | |
VBR="2500k" # Bitrate de la vidéo en sortie | |
FPS="30" # FPS de la vidéo en sortie | |
QUAL="medium" # Preset de qualité FFMPEG | |
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube |
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
=begin | |
mikutter dbus console | |
Copyright (c) 2014 Takuma Nakajima | |
This software is released under the MIT License. | |
http://opensource.org/licenses/mit-license.php |
#include <iostream> | |
#include <windows.h> | |
#include <gdiplus.h> | |
#include <memory> | |
using namespace Gdiplus; | |
using namespace std; | |
int GetEncoderClsid(const WCHAR* format, CLSID* pClsid) | |
{ |
module ActiveRecord | |
class Base | |
class << self | |
def sqlite3_connection_with_foreign_key(config) | |
sqlite3_connection_without_foreign_key(config).tap do |db| | |
db.execute("PRAGMA foreign_keys = ON") if config[:foreign_key] | |
end | |
end | |
alias_method_chain :sqlite3_connection, :foreign_key | |
end |
正しい実装でt.coの見えない世界へ
document: https://dev.twitter.com/docs/streaming-api/user-streams