пятница, 23 января 2015 г.

Nexus 5 Отключение уведомления о обновлении

Настройки - Приложения - Все - Google Services Framework - Включить уведомления

+ Долгое нажатие на уведомление - О приложении - Включить уведомления (Сервисы Google Play)

воскресенье, 11 января 2015 г.

Compile driver TP-LINK TL-WN727N v4 (mt7601Usta) on Puppy Linux

Download kernel_sources-3.14.20-tahr_PAE.sfs from http://distro.ibiblio.org/puppylinux/pet_packages-tahr/

Load sfs to puppy clicked on this package


# ln -s /usr/src/linux /lib/modules/3.14.20/build

# cd /lib/modules/3.14.20/build
# make modules_prepare
# make scripts

# mkdir ~/temp
Download source driver from http://www.mediatek.com/en/downloads/mt7601u-usb/ and extract to ~/temp
# cd ~/temp/{folder driver}
# make all
# make install
# modprobe mt7601Usta
# depmod -a
# reboot

I can't connect using Simple Network Setup (SNS) configuration. I use Network Wizard and Frisbee.

пятница, 2 января 2015 г.

twitch stream ffmpeg

#! /bin/bash

#ffmpeg -f x11grab -show_region 1 -s 1280x720 -r " 25" -i :0.0+0,0 -f alsa -ac 1 -i pulse -vcodec libx264 -s 1280x720 -preset medium -acodec libmp3lame -ar 44100 -threads 1 -qscale 3 -b 400k -g 50 -minrate 400k -maxrate 400k -bufsize 400k -pix_fmt yuv420p -f flv "rtmp://live-lhr.twitch.tv/app/$twitch_key"

#exit 0

# streaming on Ubuntu via ffmpeg.
# see http://ubuntuguide.org/wiki/Screencasts for full documentation
# see http://www.thegameengine.org/miscellaneous/streaming-twitch-tv-ubuntu/
# for instructions on how to use this gist

if [ ! -f .twitch_key ]; then
    echo "Error: Could not find file: .twitch_key"
    echo "Please create this file and copy past your stream key into it. Open this script for more details."
    exit 1;
fi