Skip to content

Instantly share code, notes, and snippets.

View BernardoGO's full-sized avatar

Bernardo Augusto Godinho de Oliveira BernardoGO

  • Pontifical Catholic University of Minas Gerais
  • Belo Horizonte - Brazil
View GitHub Profile
import tensorflow as tf
import sys
import cv2
from PIL import Image
import tensorflow as tf
import numpy as np
from random import randint
import os
import PIL
@BernardoGO
BernardoGO / steam not opening
Created July 9, 2016 03:18
steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
@BernardoGO
BernardoGO / steam not opening
Created July 9, 2016 03:18
steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
@BernardoGO
BernardoGO / steam not opening
Created July 9, 2016 03:18
steam not opening
find ~/.local/share/Steam/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" -o -name "libgpg-error.so*" \) -print -delete
@BernardoGO
BernardoGO / monTemp.sh
Created June 29, 2016 20:59
Temperature monitor
while true
do
reset
nvidia-smi -q -d temperature
sensors
sleep 5
done
.config/spotify/windows_pre
var GenerateQueue = function( queueNumber )
{
console.log( 'Queue #' + ++queueNumber );
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
{
var requests = [];
for( var i = 0; i < data.queue.length; i++ )
{
@BernardoGO
BernardoGO / maketest.sh
Created June 15, 2016 20:22
build test set from training sets
for D in $(find train/ -mindepth 1 -maxdepth 1 -type d) ; do
b=$(basename $D)
echo $D $b;
for Di in $(find $D/ -mindepth 1 -maxdepth 1 -type f | head -n 3) ; do
bi=$(basename $Di)
echo file: $Di $bi;
mkdir test/$b
mv $Di test/$b/$bi
done
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D INSTALL_C_EXAMPLES=ON \
-D INSTALL_PYTHON_EXAMPLES=ON \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D BUILD_EXAMPLES=ON -D WITH_TBB=ON -D WITH_V4L=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..
xdg-mime default nautilus.desktop inode/directory
no sudo