Skip to content

Instantly share code, notes, and snippets.

View geogeorgiev's full-sized avatar
😀

Georgy Georgiev geogeorgiev

😀
View GitHub Profile
@geogeorgiev
geogeorgiev / .vimrc
Last active July 16, 2017 13:48
My VIM config
" VIM Config
" general
syntax on
set encoding=utf-8
set nocompatible
set ttyfast
set ignorecase
set smartcase
set incsearch
@geogeorgiev
geogeorgiev / ffmpeg.sh
Created December 29, 2016 14:31
ffmpeg
ffmpeg -f video4linux2 -i /dev/video0 -c:v libx264 -an -f flv rtmp://localhost/encoder/live
@geogeorgiev
geogeorgiev / tf-gpu-test.py
Created July 7, 2016 10:03
Test GPU enabled Tensorflow Docker container
import tensorflow as tf
for d in ['/gpu:0']:
with tf.device(d):
a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
c = tf.matmul(a, b)
# Creates a session with allow_soft_placement and log_device_placement set
# to True.
sess = tf.Session(config=tf.ConfigProto(