This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@local /vagrant $ babashka vm | |
-> vm | |
-> docker | |
`- is met? | |
0 | |
vagrant@local /vagrant $ echo $? | |
1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu | |
RUN useradd -m -s /bin/bash test | |
USER test | |
ENV HOME /home/test | |
WORKDIR /home/test | |
RUN echo date >> ~/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defschedule app-schedule "Application tasks" | |
[:every "5 seconds" (println "Woohoo!")] | |
[:at "7am tomorrow" (wake-up!)]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defmacro demo-> [val & fns] | |
(reduce (fn [acc fname] (list fname acc)) val fns)) | |
(macroexpand '(demo-> 42 inc dec inc)) ; (inc (dec (inc 42))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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) |