Things I'm learning while using Habitat, written down so I remember them.
export HAB_DOCKER_OPTS="-v /Users/nathansmith/.hab/cache/artifacts /hab/studios/src/hab/cache/artifacts"
# List of installed extensions. These are not the friendly names on the marketplace, but you could figure it out, | |
# and I think you can run `code --install-extension Orta.vsocde-jest` | |
nsmith@nsmith ~/s/s/m/meatballs-ui> code --list-extensions (master=) | |
DSKWRK.vscode-generate-getter-setter | |
EditorConfig.EditorConfig | |
Orta.vscode-jest | |
Pendrica.Chef | |
PeterJausovec.vscode-docker | |
TeddyDD.fish | |
Tyriar.sort-lines |
import React, { Component } from 'react' | |
import cacheComponent from './cacheComponent' | |
class AComponent extends Component { | |
onClick = () => { | |
this.props.set({ clicked: true }); | |
} | |
render() { | |
return <div>Have I been clicked? {this.props.cache.clicked ? "yes :)" : "no :("} <button onClick={this.onClick}>click me</button></div>; |
Things I'm learning while using Habitat, written down so I remember them.
export HAB_DOCKER_OPTS="-v /Users/nathansmith/.hab/cache/artifacts /hab/studios/src/hab/cache/artifacts"
gcc: WARN | |
gcc: WARN The following runtime dependencies have more than one version | |
gcc: WARN release in the full dependency chain: | |
gcc: WARN | |
gcc: WARN * core/gmp ( core/gmp/6.1.2/20170526062114 core/gmp/6.1.0/20170513202112 ) | |
gcc: WARN | |
gcc: WARN The current situation usually arises when a Plan has a direct | |
gcc: WARN dependency on one version of a package (`acme/A/7.0/20160101200001`) | |
gcc: WARN and has a direct dependency on another package which itself depends | |
gcc: WARN on another version of the same package (`acme/A/2.0/20151201060001`). |
[1;36m: [1;37mLoading /src/opam/plan.sh[0m | |
[1;36mopam: [1;37mPlan loaded[0m | |
[1;36mopam: [1;37mValidating plan metadata[0m | |
[1;36mopam: [1;37mhab-plan-build setup[0m | |
[1;36mopam: [1;37mUsing HAB_BIN=/hab/pkgs/core/hab/0.24.1/20170522083228/bin/hab for installs, signing, and hashing[0m | |
[1;36mopam: [1;37mResolving build dependencies[0m | |
[1;36mopam: [1;37mResolving run dependencies[0m | |
» Installing core/aspcud | |
[1;36mopam: [1;37mResolved dependency 'core/aspcud' to /hab/pkgs/core/aspcud/1.9.1/20170609203426[0m | |
» Installing core/camlp4 |
import {Component} from "angular2/core"; | |
const md5 = require("blueimp-md5"); | |
@Component({ | |
selector: "gravatar", | |
inputs: ["defaultStyle", "email", "size"], | |
template: ` | |
<img class="my-gravatar" | |
width="{{size || DEFAULT_SIZE}}" height="{{size || DEFAULT_SIZE}}" | |
src='{{gravatarUrl(defaultStyle, email, size)}}'>` |
frog-hornets-nest/automate/0.7.0-dev/20170221170131 | |
frog-hornets-nest/automate-ctl/0.1.0/20170217222334 | |
core/coreutils/8.25/20161208223423 | |
core/glibc/2.22/20160612063629 | |
core/linux-headers/4.3/20160612063537 | |
core/acl/2.2.52/20161208223311 | |
core/glibc/2.22/20160612063629 | |
core/linux-headers/4.3/20160612063537 | |
core/attr/2.4.47/20161208223238 | |
core/glibc/2.22/20160612063629 |
pkg_origin=core | |
pkg_name=lua | |
pkg_version=5.1.5 | |
pkg_description="A powerful, efficient, lightweight, embeddable scripting language" | |
pkg_upstream_url="https://www.lua.org/" | |
pkg_license=("MIT") | |
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | |
pkg_source="https://www.lua.org/ftp/lua-${pkg_version}.tar.gz" | |
pkg_shasum=2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333 | |
pkg_deps=(core/glibc core/readline core/ncurses) |
function __fish_using_command | |
set cmd (commandline -opc) | |
if [ (count $cmd) -eq (count $argv) ] | |
for i in (seq (count $argv)) | |
if [ $cmd[$i] != $argv[$i] ] | |
return 1 | |
end | |
end | |
return 0 | |
end |
[194][default:/src:0]# hab pkg exec smith/delivery-ctl delivery-ctl help | |
✗✗✗ | |
✗✗✗ Exec format error (os error 8) | |
✗✗✗ | |
[195][default:/src:1]# echo $? | |
1 | |
[196][default:/src:0]# env PATH=$(hab pkg path core/ruby)/bin:$PATH $(hab pkg path smith/delivery-ctl)/bin/delivery-ctl help | |
omnibus-ctl: command (subcommand) | |
General Commands: | |
cleanse |