Skip to content

Instantly share code, notes, and snippets.

View lerox's full-sized avatar

Leandro de Santana Diniz lerox

  • São Paulo
  • 21:44 (UTC -03:00)
View GitHub Profile
@lerox
lerox / import-elixir-intellij
Last active August 28, 2019 16:27
import-elixir-intellij
before import
$ rm -rf deps
$ rm -rf _build
$ rm -rf .idea
# https://www.hackerrank.com/challenges/ctci-array-left-rotation/problem
package main
import (
"bufio"
"fmt"
"io"
"os"
"strconv"
command+w:
main menu -> window -> editor tab -> close
command+d:
main menu -> edit -> find -> add selection for next occurrence
command+shift+] or command+shift+[:
main menu -> navigate -> back or forward
-n -w 758 -h 1024 -dpi 167 -idpi -2 -om 0.1,0.1,0.1,0.1 /home/your-user/full/path/foo-bar-file.pdf
@lerox
lerox / c-lang-hacker-rank.c
Last active December 8, 2018 02:33
c-lang-hacker-rank.txt
# https://www.hackerrank.com/challenges/hello-world-c/problem
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
int main()
{
char s[100];
@lerox
lerox / Vagrantfile
Created January 27, 2015 10:49
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@lerox
lerox / bootstrap.sh
Last active August 29, 2015 14:14
Provision of a web environment
#!/usr/bin/env bash
#
# Provision of a web enviroment
#
# vagrant box add utopic https://cloud-images.ubuntu.com/vagrant/utopic/current/utopic-server-cloudimg-amd64-vagrant-disk1.box
#
# 2015-01-27
# Leandro de Santana Diniz
# github.com/lerox
@lerox
lerox / .custombashrc
Last active January 15, 2019 12:17
Custom bashrc to use git-prompt and git-completion on command-line interface (cli)
# ~/.custombashrc
# Put this file to be included by ~/.bashrc
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash
source ~/.git-completion.sh
# https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=true
# GIT_PS1_SHOWUPSTREAM="auto"