Skip to content

Instantly share code, notes, and snippets.

View toff63's full-sized avatar

Christophe Marchal toff63

View GitHub Profile
@toff63
toff63 / Preparacao-Dojo-24-de-Setembro.md
Last active August 29, 2015 14:06
Resumo das pesquisas feitas em cima de 3 assuntos: Futuro do BigData Atendimento ao Cliente Motivacao 2.0

#Futuro do BigData

Big data is a buzz words that doesn't mean much anymore. What is important is what we want to do with the data. Usually, we want to discover information that comes from crossing those data. When the movement started, we only have one kind of transformation available: Map Reduce. As the biggest challenge is to bring the algorithm where the data is and bring the data from its initial place to a storage that can allow the algorithm to run. With YARN, other algorithms can now run on top of Petabytes of data, that's why we see so much focus on query languages. A query language needs to be parsed, which lead to graphs structures and algorithms. As those kind of algorithm now can run on top of big data, a lot of effort are being made to have SQL running fast: subsecond queries on petabytes of data.

The data ingestion is also a challenge. How do you ingest million of rows per seconds keeping the system consistent? Instead of using 2 Phase commit kind of transaction, you start using Highly Availa

@toff63
toff63 / cuda-lt.md
Created October 19, 2014 19:06
Notes for preparing my Lightning talk about CUDA

CUDA

Diference between GPU and CPU

CPU are optimized for sequencial processing. It fits most of the normal application as they don't execute in parallel very well. At least they weren't though like that. CPU usually have between 4 and 16 cores for paralelization. GPU are optimized for highly parallel tasks. Usually, each task is quite small but can be executed in parallel.

The basic idea of CUDA is to help developer to make the best use of CPU and GPU. Any thing that can be processed in parallel is best processed by GPU while sequencial algorithm is best executed on CPU.

Keybase proof

I hereby claim:

  • I am toff63 on github.
  • I am christophemarcha (https://keybase.io/christophemarcha) on keybase.
  • I have a public key whose fingerprint is 6E27 B1FB C06C 0920 AF4C D193 142E 7701 646C C913

To claim this, I am signing this object:

#NetflixOSS in a nutshell

Based on http://jhohertz.github.io/netflixoss-slides

Cluster management

  • Aminator to build your container (AMI image)\
  • Asgard to manage the nodes of your cluster
  • ICE Cost Analysis/Optimization
  • Cluster state with query language
@toff63
toff63 / download_all_gists.js
Last active September 16, 2015 13:42 — forked from diegopacheco/download_all_gists.js
Download All Gists from Github
var request = require('request')
, path = require('path')
, fs = require('fs')
, url = "https://api.github.com/users/diegopacheco/gists"
, savepath = 'D:/tmp/gists';
String.prototype.replaceAll = function(search, replace, ignoreCase) {
if (ignoreCase) {
var result = [];
var _string = this.toLowerCase();
@toff63
toff63 / vector.md
Last active September 16, 2015 14:03 — forked from diegopacheco/vector.md
How To install and Run Netflix/Vector on Amazon Linux OS ?

Install PCP

sudo yum install -y git gcc perl-CPAN bison flex byacc libmicrohttpd-devel gcc-c++ nodejs npm --enablerepo=epel 
git clone git://git.pcp.io/pcp 
cd pcp/ 
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-webapi 
sudo groupadd -r pcp 
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp 
make 

sudo make install

@toff63
toff63 / about.md
Created November 22, 2011 13:37 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@toff63
toff63 / dojo_problems.txt
Created December 21, 2011 12:57
Dojo problems
Air ticketing system
Taxi price (base fare + price/mile + overrate depending on the time)
Intuitive, safe way to handle concurrency tasks with groovy
High level abstraction to write concurrent code in groovy: map/reduce, fork/join, asynchronous closures, actors, agent, dataflow concurrency and other concepts.
You can use Gpars from java, but the price is the verbosity
3 concepts:
* Code level helper: Parallel collections, asynchronous processing, fork/join (divide/conquer)
* Architectural concepts: actors, communicating sequential processes, dataflow concurrency.
Blog post here http://www.grobmeier.de/the-10-rules-of-a-zen-programmer-03022012.html
1. Focus: kill interruptions and focus on what you are doing and don't let anything interrup you.
2. Keep your mind clean: do it before starting a task so your mind let you focus on your task
3. Beginners mind: act as a beginner so you discover more, let people talk and learn from them. It helps accepting critics.
4. No ego. You are good at coding and then? what about others activities? It doesn't make you special. Programmers with ego don't learn
5. There is no career goal. Don't wait to be happy. Be happy everyday, do not wait to reach a goal to be happy. NEVER stay at a company which does take away the happiness in your live.
6. Shut up! if you have nothing to talk, just listen ;)
7. Mindfullness. Care. Awareness You live alone and you’ll die alone. World goes on, even without you. Stop crying. Do thing with all care you can. Everything, even boring things. Do everything the best you can, even things you dislike to do.