Skip to content

Instantly share code, notes, and snippets.

View fagnersutel's full-sized avatar

Fagner Sutel de Moura fagnersutel

View GitHub Profile
@fagnersutel
fagnersutel / intro.md
Created August 17, 2017 14:12 — forked from derhuerst/intro.md
Installing the Z Shell (zsh) on Linux, Mac OS X and Windows

Installing zsh – the easy way

The Z shell (zsh) is a Unix shell [...]. Zsh can be thought of as an extended Bourne shell with a large number of improvements, including some features of bash, ksh, and tcsh.

Z shell – Wikipedia

Read more about ZSH at An Introduction to the Z Shell.

Choose one of the following options.

@fagnersutel
fagnersutel / install_debian_jupyter_2_and_3.sh
Created August 17, 2017 18:35 — forked from branning/install_debian_jupyter_2_and_3.sh
Run Python 2 & 3 in Jupyter on Fedora Linux
#!/bin/bash
#
# Install Jupyter Notebook with Python 2 and Python 3 kernels on Debian
# from http://stackoverflow.com/a/34421527/347567
set -o errexit
# As root, install `pip` and `jupyter` from apt, and the development packages, too.
apt-get update
apt-get install -y \
@fagnersutel
fagnersutel / install.sh
Created April 21, 2018 20:43
Install OpenCV 3 with Python 2.7 on Ubuntu
# Configuration
HOME_DIR=/home/[user]/
VERSION=3.2.0
# Installation
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y build-essential cmake pkg-config
sudo apt-get install -y libjpeg8-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
@fagnersutel
fagnersutel / install_opencv2.4.8.sh
Created April 27, 2018 18:29 — forked from mitmul/install_opencv2.4.8.sh
install OpenCV 2.4.8 for CentOS 6.2
#! /bin/bash
sudo yum install -y gcc g++ gtk+-devel libjpeg-devel libtiff-devel jasper-devel libpng-devel zlib-devel cmake unzip
sudo yum install -y yum-priorities
wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
sudo rpm -ivh epel-release-6-8.noarch.rpm
sudo yum install -y eigen3-devel —enablerepo=epel
pip install numpy
wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.4.8/opencv-2.4.8.zip
unzip opencv-2.4.8
#!/usr/bin/env bash
# #
# # Install main dependencies on CentOS:
# # Python 3.4.5, CMake 3.10.0, OpenCV 3.3.1
# # Author Andrii Lundiak ([email protected])
# #
# https://github.com/ageitgey/face_recognition/issues/191
# https://github.com/opencv/opencv/issues/8471
@fagnersutel
fagnersutel / cache-json.php
Created May 31, 2018 20:32 — forked from erwstout/cache-json.php
Write JSON file and cache it.
<?php
/**
* Write an array to a JSON file. Replace $data with your array,
* and skip JSON encoding if you already have JSON
*/
function write_data_to_file( $filename ) {
$json = file_get_contents( 'http://path.to/external-site/file.json');
$time = time();
file_put_contents( $filename, $json );
}
@fagnersutel
fagnersutel / rstudio.sh
Created October 10, 2018 10:48 — forked from tori3852/rstudio.sh
Install RStudio on Fedora
sudo dnf install $(curl -s https://www.rstudio.com/products/rstudio/download/ | grep -o "\"[^ \"]*x86_64.rpm\"" | sed "s/\"//g")