106
Bazar / Re:Predám Banana Pi
« kdy: 16. 11. 2015, 08:43:30 »
Je tu niekto?
Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.
ClientSecrets client_secret = new ClientSecrets();
client_secret.ClientId = "XXXX.apps.googleusercontent.com";
client_secret.ClientSecret = "YYYY";
UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
client_secret,
Scopes,
user, // tu je email adresa uzivatela, ktoremu cjhcem zapisovat do kalendara
CancellationToken.None).Result;
UserCredential credential = autorizuj(user);
var service = new CalendarService(new BaseClientService.Initializer()
{
HttpClientInitializer = credential,
ApplicationName = ApplicationName,
});
Event ev = new Event();
EventDateTime evstart = new EventDateTime();
evstart.DateTime = start;
EventDateTime evend = new EventDateTime();
evend.DateTime = end;
ev.Summary = nadpis;
ev.Description = popis;
ev.Start = evstart;
ev.End = evend;
ev = service.Events.Insert(ev, "primary").Execute();
Usage: ./configure [options]
Help:
-h, --help print this message
Standard options:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
--bindir=DIR install binaries in DIR [EPREFIX/bin]
--libdir=DIR install libs in DIR [EPREFIX/lib]
--includedir=DIR install includes in DIR [PREFIX/include]
--extra-asflags=EASFLAGS add EASFLAGS to ASFLAGS
--extra-cflags=ECFLAGS add ECFLAGS to CFLAGS
--extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS
--extra-rcflags=ERCFLAGS add ERCFLAGS to RCFLAGS
Configuration options:
--disable-cli disable cli
--system-libx264 use system libx264 instead of internal
--enable-shared build shared library
--enable-static build static library
--disable-opencl disable OpenCL features
--disable-gpl disable GPL-only features
--disable-thread disable multithreaded encoding
--enable-win32thread use win32threads (windows only)
--disable-interlaced disable interlaced encoding support
--bit-depth=BIT_DEPTH set output bit depth (8-10) [8]
--chroma-format=FORMAT output chroma format (420, 422, 444, all) [all]
Advanced options:
--disable-asm disable platform-specific assembly optimizations
--enable-debug add -g
--enable-gprof add -pg
--enable-strip add -s
--enable-pic build position-independent code
Cross-compilation:
--host=HOST build programs to run on HOST
--cross-prefix=PREFIX use PREFIX for compilation tools
--sysroot=SYSROOT root of cross-build tree
External library support:
--disable-avs disable avisynth support
--disable-swscale disable swscale support
--disable-lavf disable libavformat support
--disable-ffms disable ffmpegsource support
--disable-gpac disable gpac support
--disable-lsmash disable lsmash support
ffmpeg -y -i "$ts" -deinterlace -vcodec libx264 -preset medium -crf 23 -acodec libmp3lame -ar 44100 -b:a 192k -f mp4 "$n" -v quiet
[libx264 @ 0x44c9660] frame=2271 QP=27.82 NAL=2 Slice:P Poc:94 I:413 P:1138 SKIP:69 size=11442 bytes
stream #1:
keyframe=1
duration=0.024
dts=34593.116 pts=34593.116
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.140 pts=34593.140
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.164 pts=34593.164
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.188 pts=34593.188
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.212 pts=34593.212
size=576
frame= 2319 fps= 16 q=28.0 size= 25754kB time=00:01:32.31 bitrate=2285.4kbits/stream #1:rop=0
keyframe=1
duration=0.024
dts=34593.236 pts=34593.236
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.260 pts=34593.260
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.284 pts=34593.284
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.308 pts=34593.308
size=576
stream #1:
keyframe=1
duration=0.024
dts=34593.332 pts=34593.332
size=576
stream #0:
keyframe=0
duration=0.040
dts=34593.646 pts=34593.646
size=7344
./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static
platform: X86_64
system: LINUX
cli: yes
libx264: internal
shared: no
static: yes
asm: yes
interlaced: yes
avs: avxsynth
lavf: no
ffms: no
mp4: no
gpl: yes
thread: posix
opencl: yes
filters: crop select_every
debug: no
gprof: no
strip: no
PIC: no
bit depth: 8
chroma format: all
PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure --prefix="$HOME/ffmpeg_build" --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --pkg-config-flags="--static" --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --disable-debug
#!/bin/bash
# $1 ... top | bottom | left | right
#
unset x y w h a
eval $(xprop -root |
sed -rne 's/^_NET_WORKAREA\(CARDINAL\) = ([0-9]+), ([0-9]+), ([0-9]+), ([0-9]+).*/x=\1;y=\2;w=\3;h=\4/p' \
-e 's/^_NET_ACTIVE_WINDOW\(WINDOW\): window id # (0x.*)$/a=\1/p')
[[ -z "$a" ]] && exit 1
case "$1" in
top ) ((h=h/2));;
bottom ) ((y=y+(h-(h/2))));((h=h/2));;
left ) ((w=w/2-10));;
right ) ((x=x+(w-(w/2-10))));((w=w/2-10));;
esac
wmctrl -i -r "$a" -e 0,$x,$y,$w,$h