Skip to content

Instantly share code, notes, and snippets.

Chris Corbyn d11wtq

  • Melbourne, Australia
Block or report user

Report or block d11wtq

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 docker.log
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
View babashka.bash
vagrant@local /vagrant $ babashka vm
-> vm
-> docker
`- is met?
0
vagrant@local /vagrant $ echo $?
1
View update-engine.log
-- 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
View Dockerfile
FROM ubuntu
RUN useradd -m -s /bin/bash test
USER test
ENV HOME /home/test
WORKDIR /home/test
RUN echo date >> ~/.bashrc
View docker_error.txt
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 Jan 29, 2014
How to SSH agent forward into a docker container
View docker-ssh-forward.bash
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 Jan 4, 2016
Seeking DSL style review
View schedule.clj
(defschedule app-schedule "Application tasks"
[:every "5 seconds" (println "Woohoo!")]
[:at "7am tomorrow" (wake-up!)])
@d11wtq
d11wtq / thread-macro.clj
Created Dec 13, 2013
Demonstration implementation of the `->` macro in Clojure.
View thread-macro.clj
(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 Jun 22, 2013
Vim-style increment/decrement numbers under the cursor, for Emacs.
View inc-number.el
;; 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
View colorize.el
(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)
You can’t perform that action at this time.