<CTRL>+A is my key bind, the default is <CTRL>+B
https://github.com/gpakosz/.tmux
+A r # Recarrega toda configuração
<CTRL>+A is my key bind, the default is <CTRL>+B
https://github.com/gpakosz/.tmux
+A r # Recarrega toda configuração
My Elasticsearch cheatsheet with example usage via rest api (still a work-in-progress)
| import Vue from 'vue'; | |
| const Api = require('./api'); | |
| document.addEventListener("DOMContentLoaded", () => { | |
| var app = new Vue({ | |
| el: '#app', | |
| components: { | |
| 'task': { | |
| props: ['task'], | 
| import axios from 'axios'; | |
| export function listTasks() { | |
| return axios.get('/tasks.json') | |
| .then(function(response){ | |
| return response.data; | |
| }) | |
| } | |
| export function createTask(task) { | 
| import React from "react" | |
| import PropTypes from "prop-types" | |
| import { SketchPicker } from "react-color" | |
| class Colorpicker extends React.Component { | |
| constructor(props) { | |
| super(props); | 
| import React from "react" | |
| import PropTypes from "prop-types" | |
| import Timestamp from "react-timestamp" | |
| class Article extends React.Component { | |
| render () { | |
| return ( | |
| <React.Fragment> | |
| <div className="article-title"> | |
| <a href={this.props.path}>{this.props.title}</a> | 
| ############################################################################### | |
| # Helpful Docker commands and code snippets | |
| ############################################################################### | |
| ### CONTAINERS ### | |
| docker stop $(docker ps -a -q) #stop ALL containers | |
| docker rm -f $(docker ps -a -q) # remove ALL containers | |
| docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
| # exec into container | 
| # ---- Build Stage ---- | |
| FROM erlang:22-alpine AS app_builder | |
| # Set environment variables for building the application | |
| ENV MIX_ENV=prod \ | |
| TEST=1 \ | |
| LANG=C.UTF-8 | |
| # Fetch the latest version of Elixir (once the 1.9 docker image is available you won't have to do this) | |
| RUN set -xe \ |