Skip to content

Instantly share code, notes, and snippets.

View davidascher's full-sized avatar

David Ascher davidascher

View GitHub Profile
@davidascher
davidascher / hoodie Dockerfile
Created November 16, 2013 17:48
Hoodie dockerfile (but not working somehow)
FROM ubuntu
MAINTAINER David Ascher <[email protected]>
# Get us to a stable place
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-software-properties
RUN apt-get remove couchdb
@davidascher
davidascher / gist:7504295
Created November 16, 2013 19:32
how i try to reach the hoodie docker
da@12:~$ sudo docker run -p 6001:6001 -p 6002:6002 davidascher/hoodie &
[1] 4738
da@12:~$
.d$b. .d$b. .d$$$$$$b. .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P' 'Q$$$$$$P' 'Q$$$$$$$P 'Q$P''Q$$$$$$$$P'
@davidascher
davidascher / gist:7504299
Created November 16, 2013 19:33
how i try to reach the hoodie docker
da@12:~$ sudo docker run -p 6001:6001 -p 6002:6002 davidascher/hoodie &
[1] 4738
da@12:~$
.d$b. .d$b. .d$$$$$$b. .d$$$$$$b. .d$$$$$$b. .d$b..d$$$$$$$$b.
$$$$$..$$$$$.$$$$$$$$$$$b .$$$$$$$$$$$b $$$$$$$$$$b $$$$$$$$$$$$$$$P'
$$$$$$$$$$$$d$$$$$$$$$$$$bd$$$$$$$$$$$$b$$$$$$$$$$$b$$$$$$$$$$$$$$$b.
$$$$$$$$$$$$Q$$$$$$$$$$$$PQ$$$$$$$$$$$$P$$$$$$$$$$$P$$$$$$$$$$$$$$$P'
$$$$$´`$$$$$'$$$$$$$$$$$$''$$$$$$$$$$$$'$$$$$$$$$$P $$$$$$$$$$$$$$$b.
'Q$P' 'Q$P' 'Q$$$$$$P' 'Q$$$$$$P' 'Q$$$$$$$P 'Q$P''Q$$$$$$$$P'
@davidascher
davidascher / gist:7504306
Created November 16, 2013 19:34
docker inspect
da@12:~$ sudo docker inspect aba25a1192fb
[{
"ID": "aba25a1192fbff5d26b30439dbb81c51d82a0ae722b444396ff78e181ca774c8",
"Created": "2013-11-16T19:31:09.293265094Z",
"Path": "/bin/sh",
"Args": [
"-c",
"hoodie start -n"
],
"Config": {
@davidascher
davidascher / hoodie.Dockerfile
Created November 16, 2013 23:56
FatHoodie Dockerfile -- this is a dockerfile which will setup a hoodie including the couchdb process. I'd like to split out couch into its own container, and link them together for greater flexibility, but this is it for now.
FROM ubuntu
MAINTAINER David Ascher <[email protected]>
# Get us to a stable place
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-software-properties
RUN apt-get remove couchdb
<html>
<head>
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/ceci-broadcast.html">
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/ceci-listen.html">
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/ceci-element.html">
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/ceci-app.html">
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/ceci-card.html">
<link rel="import" href="https://appmaker.mozillalabs.com/test_assets/ceci/test/fixtures/ceci-value-holder.html">
<!-- The component we're testing here. -->
Last login: Thu Jan 9 13:37:18 on ttys021
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
davida@suki ~> appchef
fish: Unknown command 'appchef'
davida@suki ~> sudo npm install -g appchef
Password:
npm http GET https://registry.npmjs.org/appchef
npm http 304 https://registry.npmjs.org/appchef
npm http GET https://registry.npmjs.org/commander/2.1.0
<polymer-element name="ceci-audio-player" extends="ceci-element">
<template>
<link rel="stylesheet" href="component.css"></link>
<audio id="audio" controls></audio>
<shadow></shadow>
<script type="text/json" id="ceci-definition">
{
"name": "Audio Player",
"tags": ["component-audio-player", "audio", "player"],
A web component for [Appmaker](https://github.com/mozilla-appmaker/appmaker).
Appmaker import:
```
<link rel="import" href="/junk">
```
# Submitting this to Github (using Github Pages)
* Step 1: go to github and create a repo (e.g. 'component-test') -- do _not_ initialize it (don't check the checkbox)
@davidascher
davidascher / github-tricks
Last active January 4, 2016 06:49
Github tips and tricks from pomax
# When your own develop is ahead of where origin is, but those commits were in error:
davida@suki ~/s/m/appmaker> git fetch origin
davida@suki ~/s/m/appmaker> git checkout -B develop origin/develop