Skip to content

Instantly share code, notes, and snippets.

Working from home

Luan Santos luan

Working from home
Block or report user

Report or block luan

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
View manifest-1.yml
- azs:
- z1
instances: 1
- name: enable_rdp
release: windows-utilities
- name: enable_ssh
release: windows-utilities
name: instance
luan /
Created Dec 12, 2017
Create bare VM from stemcell in virtualbox
bosh create-env --recreate dummy.yml \
--state ./state.json \
-o $WORKSPACE/bosh-deployment/virtualbox/cpi.yml \
-o $WORKSPACE/bosh-deployment/virtualbox/outbound-network.yml \
-o <(echo '[{ type: "replace", path: "/resource_pools/name=vms/stemcell?", value: { url: "file://((stemcell_path))" } }]') \
View dpkg_diff_for_dk.diff

Keybase proof

I hereby claim:

  • I am luan on github.
  • I am cfcluan ( on keybase.
  • I have a public key ASCJQQNvCtPNewqirq3DfcD5b9t0dw5-UC6JXOVEQys2pgo

To claim this, I am signing this object:

View bosh-lite-grootfs.yml
- type: replace
path: /releases/-
name: grootfs
version: "0.21.0"
sha1: 752d5a2686dfce0de888864f283f1eab6519ad6d
- type: replace
path: /instance_groups/name=bosh/jobs/name=garden/properties?/garden/image_plugin?
value: /var/vcap/packages/grootfs/bin/grootfs
luan / compile
Created Apr 1, 2015
View compile
# usage: bin/compile <build-dir> <cache-dir> <env-dir>
mkdir -p "$1" "$2"
build=$(cd "$1/" && pwd)
cache=$(cd "$2/" && pwd)
export buildpack=$(dirname $(dirname $0))
# CF Common
export BUILDPACK_PATH=$buildpack
luan /
Last active May 26, 2016
Non-intrusive setting for shell colors that works with vim-hybrid out of the box.
# Shell colors for vim-hybrid - Shell color setup script
# Luan Santos (
if [ "${TERM%%-*}" = 'linux' ]; then
# This script doesn't support linux console (use 'vconsole' template instead)
return 2>/dev/null || exit 0
View Hybrid.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Blue Component</key>
<key>Green Component</key>
View git-stories.bash
#!/usr/bin/env bash
function get_story()
curl -X GET -H "X-TrackerToken: $TOKEN" "$PROJECT_ID/stories/$1" 2>/dev/null
stories=`git log $1 | egrep -o "\[\w* ?#(\d+)\]" | egrep -o "\d+" | sort -u`
for story_id in $stories; do
echo -n "[#$story_id] - "
View sound_player_view.js
Ember.SoundPlayerManager = Ember.StateManager.extend({
initialState: 'preparing',
preparing: Ember.State.create({
ready: function(manager, context) {
unloaded: Ember.State.create({
You can’t perform that action at this time.