Skip to content

Instantly share code, notes, and snippets.

Wagner Camarao wcamarao

Block or report user

Report or block wcamarao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wcamarao
wcamarao / iterm2.md
Last active Feb 5, 2018
Word jumping in iTerm2
View iterm2.md

Word jumping in iTerm2

Open Preferences > Profiles > Keys and configure shortcuts to Send escape sequences:

  • Option + Left: [1;5D
  • Option + Right: [1;5C
@wcamarao
wcamarao / concurrency.go
Last active Feb 5, 2018
Golang concurrency
View concurrency.go
package main
import (
"fmt"
"io"
"io/ioutil"
"net/http"
"time"
)
@wcamarao
wcamarao / mgit.sh
Last active Feb 5, 2018
Run a git command on every subdirectory that is a git repository
View mgit.sh
#!/bin/sh
if [ $# -eq 0 ]; then
echo "Usage: $0 <git-command>"
echo 'Run a git command on every subdirectory that is a git repository'
exit 0
fi
for directory in *; do
if [ -d "${directory}" ]; then
You can’t perform that action at this time.