Skip to content

Instantly share code, notes, and snippets.

sudo apt-get install build-essential autoconf libtool pkg-config python-dev libssl-dev
// installing watchman from source
git clone https://github.com/facebook/watchman.git
cd watchman
./autogen.sh
./configure
make
sudo make install
#Resolvendo problema de max watches
listen 443 ssl;
ssl_certificate /etc/nginx/cert/fullchain.pem;
ssl_certificate_key /etc/nginx/cert/privkey.pem;
ssl_session_cache shared:SSL:20m; #cache size
ssl_session_timeout 180m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; #disabling ssl due to security issues
ssl_prefer_server_ciphers on;
ssl_ciphers ECDH+AESGCM:ECDH+AES256:ECDH+AES128:DH+3DES:!ADH:!AECDH:!MD5;
ssl_dhparam /etc/nginx/cert/dhparam.pem;
ssl_stapling on;
@angelomachado
angelomachado / install_elixir.md
Last active October 9, 2016 17:07 — forked from rubencaro/install_elixir.md
Elixir installation guide

Elixir installation guide

Version numbers should be the ones you want. Here I do it with the last ones available at the moment of writing.

The simplest way to install elixir is using your package manager. Sadly, at the time of writing only Fedora shows the intention to keep its packages up to date. There you can simply sudo dnf install erlang elixir and you are good to go.

Anyway, if you intend to work with several versions of erlang or elixir at the same time, or you are tied to a specific version, you will need to compile it yourself. Then kerl and exenv are your best friends.

{
"ignored_packages": [
"Vintage"
],
"tab_size": 2,
"translate_tabs_to_spaces": true,
"highlight_line": true,
"draw_white_space": "all"
}
import Ember from 'ember';
import BaseAuthenticator from 'ember-simple-auth/authenticators/base';
const {
get,
inject: { service },
RSVP
} = Ember;
export default BaseAuthenticator.extend({
@angelomachado
angelomachado / email-validator.js
Created March 15, 2017 02:01
Mixin ember-cp-validations validators
import { validator } from 'ember-cp-validations';
export default {
email: [
validator('presence', {
presence: true,
message: 'O email deve ser informado'
}),
validator('format', {
type: 'email',
import Ember from 'ember';
const {
Component,
computed,
defineProperty
} = Ember;
export default Component.extend({
/**
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
// On click we call the action passed down to us from the parent
click() {
let data = this.get('data');
this.get('onaction')(data);
}
});
import Ember from 'ember';
export default Ember.Component.extend({
});
@angelomachado
angelomachado / components.product-details.js
Last active August 11, 2017 13:18
Controle de estoque
import Ember from 'ember';
export default Ember.Component.extend({
});