Skip to content

Instantly share code, notes, and snippets.

Lucas Fais lucasfais

  • São Paulo, Brazil
Block or report user

Report or block lucasfais

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
lucasfais / currentTrackLyrics.swift
Created Nov 27, 2015
Opens Musixmatch website searching for the current iTunes track
View currentTrackLyrics.swift
#! /usr/bin/swift
import ScriptingBridge
import AppKit
@objc protocol iTunesTrack {
optional var artist: String {get}
optional var name: String {get}
optional var album: String {get}
lucasfais / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View Azkfile.js
* Documentation:
// Adds the systems that shape your system
crawler: {
// Dependent systems
depends: ["elasticsearch"],
// More images:
lucasfais / gist:e920010308a254393f5a
Last active Aug 29, 2015
ssh aws instances by name tag
View gist:e920010308a254393f5a
# ssh aws instances by name tag
# jq required -
# Usage:
# $ aws-ssh <ssh_user_name> <instance_name>
function aws-ssh(){
ssh $1@$(aws ec2 describe-instances --filters "Name=tag-key,Values=Name" "Name=tag-value,Values=$2" --output json | jq -r .Reservations[0].Instances[0].PublicIpAddress)

Keybase proof

I hereby claim:

  • I am lucasfais on github.
  • I am lucasfais ( on keybase.
  • I have a public key whose fingerprint is 3B65 7DBB D1C2 BD25 E7FE 6807 DEC2 2EA0 6164 6E8A

To claim this, I am signing this object:

lucasfais / Vagrantfile
Last active Dec 25, 2015
Vagrantfile for Arch Linux. It's ok with vagrant 1.3.4.
View Vagrantfile
# My helpers
def fwd_ports(config, ports)
ports = [ports] unless ports.respond_to?(:each)
ports.each do |port| :forwarded_port, guest: port, host: port
View gitconfig
name = X
email =
branch = auto
status = auto
diff = auto
ci = commit
co = checkout
View fizz_buzz.exs
# Fizz Buzz Test
fizz_buzz = fn
(0, 0, _) -> "FizzBuzz"
(0, _, _) -> "Fizz"
(_, 0, _) -> "Buzz"
(_, _, x) -> x
View parallel_requests.exs
defmodule ParallelRequests do
def execute_requests(urls) do
:inets.start() urls, do_parallel_request(&1, self)
do_collect_responses(length(urls), 0)
defp do_parallel_request(url, parent_id) do
lucasfais / gist:1207002
Created Sep 9, 2011
Sublime Text 2 - Useful Shortcuts
View gist:1207002

Sublime Text 2 – Useful Shortcuts (Mac OS X)


⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
You can’t perform that action at this time.