Skip to content

Instantly share code, notes, and snippets.

View d11wtq's full-sized avatar

Chris Corbyn d11wtq

  • Melbourne, Australia
View GitHub Profile
vagrant@local ~ $ sudo docker -d -D
[/var/lib/docker|69523644] +job initserver()
[/var/lib/docker|69523644.initserver()] Creating server
[debug] driver.go:79 Error loading driver aufs: AUFS was not found in /proc/filesystems
[debug] deviceset.go:478 Generated prefix: docker-8:4-547505
[debug] deviceset.go:481 Checking for existence of the pool 'docker-8:4-547505-pool'
[debug] deviceset.go:240 loadMetadata()
[debug] deviceset.go:283 loadMetadata END
[debug] runtime.go:632 Using graph driver devicemapper
[debug] runtime.go:647 Creating images graph
vagrant@local /vagrant $ babashka vm
-> vm
-> docker
`- is met?
0
vagrant@local /vagrant $ echo $?
1
-- Logs begin at Tue 2014-01-21 10:19:32 UTC, end at Sun 2014-02-09 17:18:01 UTC. --
Feb 09 04:26:39 localhost systemd[1]: Starting Update Engine...
Feb 09 04:26:40 localhost update_engine[343]: [0209/042640:INFO:main.cc(160)] Chrome OS Update Engine starting
Feb 09 04:26:40 localhost update_engine[343]: [0209/042640:INFO:omaha_request_params.cc(181)] Target Channel set to dev-channel from LSB file
Feb 09 04:26:40 localhost update_engine[343]: [0209/042640:INFO:omaha_request_params.cc(195)] Current Channel set to dev-channel from LSB file in rootfs
Feb 09 04:26:40 localhost update_engine[343]: [0209/042640:INFO:update_check_scheduler.cc(84)] Next update check in 11m43s
Feb 09 04:26:40 localhost systemd[1]: Started Update Engine.
Feb 09 04:27:15 localhost update_engine[343]: [0209/042715:INFO:update_attempter.cc(796)] Updating boot flags...
Feb 09 04:38:13 localhost update_engine[343]: [0209/043813:INFO:prefs.cc(55)] certificate-report-to-send-update not present in /var/lib/update_engine/prefs
Feb 09 04:38:13
FROM ubuntu
RUN useradd -m -s /bin/bash test
USER test
ENV HOME /home/test
WORKDIR /home/test
RUN echo date >> ~/.bashrc
core@localhost ~ $ docker pull d11wtq/ruby
Pulling repository d11wtq/ruby
0377ecb9c406: Pulling dependent layers
4fc4423c202c: Error pulling image (1.9.3-p484) from d11wtq/ruby, endpoint: https://cdn-registry-1.docker.io/v1/, exit status 2: Download complete
4fc4423c202c: Error pulling image (1.9.3-p484) from d11wtq/ruby, exit status 2:
gzip: stdin: unexpected end of fileendent layers
@d11wtq
d11wtq / docker-ssh-forward.bash
Created January 29, 2014 23:32
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
@d11wtq
d11wtq / schedule.clj
Last active January 4, 2016 08:19
Seeking DSL style review
(defschedule app-schedule "Application tasks"
[:every "5 seconds" (println "Woohoo!")]
[:at "7am tomorrow" (wake-up!)])
@d11wtq
d11wtq / thread-macro.clj
Created December 13, 2013 10:56
Demonstration implementation of the `->` macro in Clojure.
(defmacro demo-> [val & fns]
(reduce (fn [acc fname] (list fname acc)) val fns))
(macroexpand '(demo-> 42 inc dec inc)) ; (inc (dec (inc 42)))
@d11wtq
d11wtq / inc-number.el
Created June 22, 2013 07:13
Vim-style increment/decrement numbers under the cursor, for Emacs.
;; vim-style increment/decrement numbers
(defun inc-number-at-point (n)
"Increment the number under the point, if present.
Called with a prefix argument, changes the number by N."
(interactive "p")
(let ((amt (or n 1))
(word (thing-at-point 'word))
(bounds (bounds-of-thing-at-point 'word)))
(when (string-match "^[0-9]+$" word)
(replace-string word
(defun colorize-mode-line (&rest args)
(let ((color (cond ((evil-insert-state-p) "#fa4444")
((evil-emacs-state-p) "#fafa00")
((buffer-modified-p) "#22bff0"))))
(set-face-background 'mode-line (or color "#ffffff"))))
(add-to-list 'post-command-hook 'colorize-mode-line)