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
#-*- coding: utf-8 -*- | |
# Copyright (c) 2014 /cyb/ | |
# | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
# |
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
ffmstream() { | |
filename=$1 | |
gop=48 #GOP Should be double of FPS, but since we determine that on runtime, we'll just assume it's 24 | |
threads=4 | |
crf=22 # Ideally this should be 18, 23 is the default | |
preset=veryfast # x264 preset | |
tune=film | |
bitrate=1500k # Our CBR | |
audibr=128k # Audio Bitrate |
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
extern crate sync; /* For the duplex*/ | |
use std::os; | |
use std::path::BytesContainer; | |
use std::vec::Vec; | |
use std::io::net::tcp::TcpStream; | |
fn handle_connection( stream: TcpStream ) | |
{ |
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
#![crate_id = "rust-irc-lib #0.1"] | |
#![license = "BSD"] | |
#![crate_type = "rlib"] | |
/* Dependencies */ | |
extern crate sync; | |
extern crate regex; | |
//use std::os; | |
//use std::path::BytesContainer; | |
//use std::vec::Vec; |
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
➜ demoinfogo g++ -Wall -pedantic -std=c++11 demoinfogo.cpp -o demoinfogo | |
/tmp/ccuTpLDi.o: In function `main': | |
demoinfogo.cpp:(.text+0x61): undefined reference to `CDemoFileDump::Open(char const*)' | |
demoinfogo.cpp:(.text+0x74): undefined reference to `CDemoFileDump::DoDump()' | |
/tmp/ccuTpLDi.o: In function `CDemoFileDump::CDemoFileDump()': | |
demoinfogo.cpp:(.text._ZN13CDemoFileDumpC2Ev[_ZN13CDemoFileDumpC5Ev]+0x15): undefined reference to `CDemoFile::CDemoFile()' | |
demoinfogo.cpp:(.text._ZN13CDemoFileDumpC2Ev[_ZN13CDemoFileDumpC5Ev]+0x27): undefined reference to `CSVCMsg_GameEventList::CSVCMsg_GameEventList()' | |
demoinfogo.cpp:(.text._ZN13CDemoFileDumpC2Ev[_ZN13CDemoFileDumpC5Ev]+0x46): undefined reference to `CDemoFile::~CDemoFile()' | |
/tmp/ccuTpLDi.o: In function `CDemoFileDump::~CDemoFileDump()': | |
demoinfogo.cpp:(.text._ZN13CDemoFileDumpD2Ev[_ZN13CDemoFileDumpD5Ev]+0x1a): undefined reference to `CSVCMsg_GameEventList::~CSVCMsg_GameEventList()' |
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
➜ demoinfogo g++ -m32 -Wall -pedantic -std=c++11 *.cpp -o demoinfogo -lprotobuf | |
In file included from /usr/include/c++/4.9.0/random:49:0, | |
from /usr/include/c++/4.9.0/bits/stl_algo.h:66, | |
from /usr/include/c++/4.9.0/algorithm:62, | |
from /usr/include/google/protobuf/repeated_field.h:49, | |
from generated_proto/netmessages_public.pb.h:24, | |
from demofiledump.h:30, | |
from demofiledump.cpp:28: | |
/usr/include/c++/4.9.0/bits/random.h:106:26: error: expected unqualified-id before ‘__int128’ | |
{ typedef unsigned __int128 type; }; |
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 bbb_sunflower_1080p_60fps_normal.mp4 -c:v libvpx -c:a libvorbis http://server/feed.ffm |
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 -loglevel debug -i The\ Holy\ Mountain_720p.mkv -c:v libvpx -c:a libvorbis -map -0:1 http://server:8090/feed.ffm⏎ | |
ffmpeg version 2.3.1 Copyright (c) 2000-2014 the FFmpeg developers | |
built on Jul 31 2014 14:51:38 with gcc 4.9.1 (GCC) | |
configuration: --prefix=/usr --disable-debug --disable-static --enable-avisynth --enable-avresample --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab | |
libavutil 52. |
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 -loglevel debug -i The\ Holy\ Mountain_720p.mkv -c:v libvpx -c:a libvorbis -map 0:2 -map 0:0 http://server:8090/feed.ffm ⏎ | |
ffmpeg version 2.3.1 Copyright (c) 2000-2014 the FFmpeg developers | |
built on Jul 31 2014 14:51:38 with gcc 4.9.1 (GCC) | |
configuration: --prefix=/usr --disable-debug --disable-static --enable-avisynth --enable-avresample --enable-decoder=atrac3 --enable-decoder=atrac3p --enable-dxva2 --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-versio |
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
#include <SoftwareSerial.h> | |
SoftwareSerial mySerial(2,3); | |
void setup() | |
{ | |
mySerial.begin(4800); | |
Serial.begin(4800); | |
} |
OlderNewer