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
instance_groups:
- azs:
- z1
instances: 1
jobs:
- name: enable_rdp
release: windows-utilities
- name: enable_ssh
release: windows-utilities
name: instance
@luan
luan / create-vm.sh
Created Dec 12, 2017
Create bare VM from stemcell in virtualbox
View create-vm.sh
#!/bin/bash
WORKSPACE=$HOME/workspace/src/github.com/cloudfoundry
STEMCELL_PATH=${STEMCELL_PATH:-$WORKSPACE/bosh-linux-stemcell-builder/tmp/bosh-stemcell-0000-vsphere-esxi-centos-7-go_agent.tgz}
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
+autotools-dev
+chrony
-comerr-dev
+console-setup-linux
-dh-apparmor
+dh-strip-nondeterminism
+distro-info-data
-dmsetup
+icu-devtools
+init
View keybase.md

Keybase proof

I hereby claim:

  • I am luan on github.
  • I am cfcluan (https://keybase.io/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/-
value:
name: grootfs
version: "0.21.0"
url: https://s3.amazonaws.com/bosh-compiled-release-tarballs/grootfs-0.21.0-ubuntu-trusty-3421.9-20170715-015624-456359848-20170715015628.tgz?versionId=YMly21JNkDvhw0TWefdFtQNE4dz_PHkL
sha1: 752d5a2686dfce0de888864f283f1eab6519ad6d
- type: replace
path: /instance_groups/name=bosh/jobs/name=garden/properties?/garden/image_plugin?
value: /var/vcap/packages/grootfs/bin/grootfs
@luan
luan / compile
Created Apr 1, 2015
thebuildpack
View compile
#!/bin/bash
# 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
luan / shell-colors-vim-hybrid.sh
Last active May 26, 2016
Non-intrusive setting for shell colors that works with vim-hybrid out of the box.
View shell-colors-vim-hybrid.sh
#!/bin/sh
# Shell colors for vim-hybrid - Shell color setup script
# Luan Santos (http://luansantos.com)
if [ "${TERM%%-*}" = 'linux' ]; then
# This script doesn't support linux console (use 'vconsole' template instead)
return 2>/dev/null || exit 0
fi
color017="00/00/5f"
View Hybrid.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.20179691910743713</real>
<key>Green Component</key>
<real>0.1818026602268219</real>
View git-stories.bash
#!/usr/bin/env bash
function get_story()
{
curl -X GET -H "X-TrackerToken: $TOKEN" "https://www.pivotaltracker.com/services/v5/projects/$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) {
manager.transitionTo('unloaded');
}
}),
unloaded: Ember.State.create({
You can’t perform that action at this time.