Skip to content

Instantly share code, notes, and snippets.

View bateramos's full-sized avatar

Pedro Ferreira Ramos bateramos

View GitHub Profile
set -g mouse off
set -g default-terminal "xterm-256color"
set -g prefix C-a
bind C-a send-prefix
unbind C-b
set -g base-index 1
setw -g pane-base-index 1
call plug#begin('~/.vim/plugged')
" General
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/denite.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'editorconfig/editorconfig-vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
Plug 'dyng/ctrlsf.vim'
call plug#begin('~/.vim/plugged')
" General
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/denite.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'editorconfig/editorconfig-vim'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' }
Plug 'dyng/ctrlsf.vim'
@bateramos
bateramos / logPut.sh
Last active November 5, 2020 15:08
AWS Cloudwatch log setup
#call it with source logPut.sh {Event}
if ! [[ $TOKEN =~ $re ]] ; then
TOKEN=$(aws logs describe-log-streams --log-group-name test-log-collector --log-stream-name "$(date +%Y-%m-%d)" | jq '.[]| first.uploadSequenceToken' -r)
fi
TOKEN=$(aws logs put-log-events --log-group-name test-log-collector --log-stream-name "$(date +%Y-%m-%d)" --log-events timestamp="$(date +%s%3N)",message=$1 --sequence-token $TOKEN | jq .nextSequenceToken -r)
@bateramos
bateramos / .vimrc
Last active April 16, 2020 12:00
.vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
@bateramos
bateramos / terminator configuration
Last active August 28, 2017 12:45
place at ~/.config/terminator/config
[global_config]
[keybindings]
copy = <Control>c
next_tab = End
paste = <Control>v
prev_tab = Home
[layouts]
[[default]]
[[[child1]]]
parent = window0
const comment = 'Please comment on this gist';
@bateramos
bateramos / Default (OSX).sublime-keymap
Last active July 17, 2017 10:21
My Sublime Configuration
[
{
"keys": ["super+s"],
"command": "chain",
"args": {
"commands": [
["save"],
["exit_insert_mode"]
]
}
...
describe("Route Test", function() {
...
describe("Find users", () => {
// erase all data from the database
before(done => {db.truncate().then(() => {done()})})
// Initialize data for the tests
function a() {
console.log("calling a")
}
const b = {}
(a())