Skip to content

Instantly share code, notes, and snippets.

View eriktonon's full-sized avatar
🎱
Focusing

Erik Tonon eriktonon

🎱
Focusing
View GitHub Profile
#nano ~/.vimrc
set number
set cursorline
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => General
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Sets how many lines of history VIM has to remember
set history=700
" Enable filetype plugins
@eriktonon
eriktonon / encurtador
Created August 10, 2019 13:53
encurtador
<?php
$config = json_decode(file_get_contents('../config.json'));
$pdo = new \PDO(
sprintf(
'pgsql:host=%s;port=%s;dbname=%s',
$config->banco->host,
$config->banco->port,
$config->banco->database
),
Requiriments
Anaconda 3
Cmake
visual studio 2017
https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64
install cudnn
In order to download cuDNN, ensure you are registered for the NVIDIA Developer Program.
Go to: NVIDIA cuDNN home page.
Click Download.
Complete the short survey and click Submit.
@eriktonon
eriktonon / scriptdlib.txt
Last active June 24, 2019 13:41
Dlib script windows use cuda
git clone https://github.com/davisking/dlib.git
cd dlib
mkdir build
cd build
cmake -G "Visual Studio 15 2017 Win64" -T host=x64 .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1 `
-DJPEG_INCLUDE_DIR=..\dlib\external\libjpeg `
-DJPEG_LIBRARY=..\dlib\external\libjpeg `
-DPNG_PNG_INCLUDE_DIR=..\dlib\external\libpng `
-DPNG_LIBRARY_RELEASE=..\dlib\external\libpng `
-DZLIB_INCLUDE_DIR=..\dlib\external\zlib `
version: '3'
services:
web:
image: eriktonon/python3_dlib_face_reco
deploy:
replicas: 5
resources:
limits:
cpus: "9.9"
memory: 2048M
@eriktonon
eriktonon / centos7
Created April 2, 2018 22:53
Configuração de Centos Personalizada
#!/bin/bash
#### DEPENDÊNCIAS ####
type dialog 1> /dev/null
if [ "$?" = 0 ]; then
echo "Dependencias Instaladas..."
else
echo "Instalando Dependencias!"
yum install -y dialog