Skip to content

Instantly share code, notes, and snippets.

View lauborges's full-sized avatar
💭
I may be slow to respond.

Lau Borges lauborges

💭
I may be slow to respond.
View GitHub Profile
@lauborges
lauborges / gist:0dfdfdce255cc916b800
Last active August 29, 2015 14:26 — forked from moraes/gist:2141121
LIFO Stack and FIFO Queue in golang
package main
import (
"fmt"
)
type Node struct {
Value int
}
@lauborges
lauborges / wake_raspberry_console_screen
Last active January 28, 2016 23:14
Wake Raspberry console screen
sudo chmod 666 /dev/tty1
echo -ne "\033[9;0]" >/dev/tty1
#http://raspberrypi.stackexchange.com/questions/10374/wake-console-screen-with-ssh
@lauborges
lauborges / gist:2d1e7b605aee0b8e6dd6
Created February 10, 2016 11:21
Focus follow mouse - Mac OS X
defaults write com.apple.Terminal FocusFollowsMouse -bool true
@lauborges
lauborges / gist:55fbe5908b6557fc5a2d
Created February 10, 2016 11:23
Make your Mac’s dock appear faster
#https://medium.com/@emieljanson/make-your-mac-dock-appear-faster-7e70724cd5fb#.ydq7iuj30
defaults write com.apple.dock autohide-delay -float 0
defaults write com.apple.dock autohide-time-modifier -float 0.5
killall Dock
sudo ln -s /Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/10.0\ \(14A5345a\)/ /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
@lauborges
lauborges / Fastfile
Created November 1, 2016 04:48 — forked from kennydee/Fastfile
Fastfile for staging environment with Appetize.io on React Native (iOs & Android), with statuses update on Github Enterprise
require 'httparty'
fastlane_version "1.95.0"
default_platform :ios
before_all do
# put here your token and iOs scheme app
ENV["GITHUB_TOKEN"] = "---"
ENV["APPETIZE_TOKEN"] = "---"
ENV["APP_IOS_SCHEME"] = "---"
@lauborges
lauborges / index.js
Created April 2, 2017 02:12 — forked from JonathanMH/index.js
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");
@lauborges
lauborges / gist:244c7b968f4b93933fef1af2ed1fabb4
Created May 9, 2017 12:33
git delete all branches except master
git branch | grep -v "master" | xargs git branch -D

Keybase proof

I hereby claim:

  • I am lauborges on github.
  • I am lauborges (https://keybase.io/lauborges) on keybase.
  • I have a public key ASCsbU-ePH5RrQtfYESioQjG1tun5cJQ_vvpGYzSy3tAAQo

To claim this, I am signing this object:

@lauborges
lauborges / git-aliases.sh
Created February 8, 2018 09:08
Git Aliases
# ----------------------
# Git Aliases
# ----------------------
alias ga='git add'
alias gaa='git add .'
alias gaaa='git add --all'
alias gau='git add --update'
alias gb='git branch'
alias gbd='git branch --delete '
alias gc='git commit'