Skip to content

Instantly share code, notes, and snippets.

View nlamirault's full-sized avatar

Nicolas Lamirault nlamirault

View GitHub Profile
@nlamirault
nlamirault / gist:3737112
Created September 17, 2012 12:53
Cloudstack bug
ERROR [vmware.mo.VirtualMachineMO] (DirectAgent-423:cloud-hyper09c-prod.boi.cloud.mbs) VMware reconfigVM_Task failed due to Un paramètre spécifié était incorrect.
com.vmware.vim25.InvalidArgument
WARN [vmware.resource.VmwareResource] (DirectAgent-423:cloud-hyper09c-prod.boi.cloud.mbs) StartCommand failed due to Exception: java.lang.Exception
Message: Failed to configure VM before start. vmName: i-26-623-VM
java.lang.Exception: Failed to configure VM before start. vmName: i-26-623-VM
at com.cloud.hypervisor.vmware.resource.VmwareResource.execute(VmwareResource.java:1433)
at com.cloud.hypervisor.vmware.resource.VmwareResource.executeRequest(VmwareResource.java:385)
at com.cloud.agent.manager.DirectAgentAttache$Task.run(DirectAgentAttache.java:192)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
2 DATA Disks :
[
{
"StartCommand": {
"vm": {
"arch": "x86_64",
"bootArgs": "",
"bootloader": "HVM",
"cpus": 1,
$ make test
cask install
Wrote /home/nlamirault/Perso/cerbere/.cask/24.4.50.1/elpa/archives/melpa/archive-contents
Wrote /home/nlamirault/Perso/cerbere/.cask/24.4.50.1/elpa/archives/marmalade/archive-contents
cask update
Wrote /home/nlamirault/Perso/cerbere/.cask/24.4.50.1/elpa/archives/melpa/archive-contents
Wrote /home/nlamirault/Perso/cerbere/.cask/24.4.50.1/elpa/archives/gnu/archive-contents
Wrote /home/nlamirault/Perso/cerbere/.cask/24.4.50.1/elpa/archives/marmalade/archive-contents
touch elpa
cask exec emacs --no-site-file --no-site-lisp --batch \
$ ls .cask/24.4.50.1/elpa/
ansi-20130827.753 epl-20140405.51 pkg-info-20140405.50
archives ert-runner-20140121.1045 python-mode-6.1.3
cask-20140324.15 f-20140220.21 s-20131223.944
commander-20140120.1052 go-mode-20140409.928 shut-up-20140211.521
dash-20140407.253 package-build-20140404.854
$ cask files
cerbere-common.el
cerbere-tox.el
@nlamirault
nlamirault / gist:10971901
Created April 17, 2014 10:27
compilation failed
$ git clone https://github.com/nlamirault/cerbere.git
[ ... ]
$ cd cerbere
$ make clean test
cask clean-elc
rm -fr dist
cask install
Wrote /tmp/cerbere/.cask/24.4.50.1/elpa/archives/melpa/archive-contents
Wrote /tmp/cerbere/.cask/24.4.50.1/elpa/archives/gnu/archive-contents
@nlamirault
nlamirault / gist:10973270
Created April 17, 2014 10:48
Cerbere without cerbere-tox compilation
$ make clean build
cask clean-elc
rm -fr dist
cask exec emacs --no-site-file --no-site-lisp --batch \
--debug-init -L . \
-f batch-byte-compile cerbere-common.el
Wrote /home/nlamirault/Perso/cerbere/cerbere-common.elc
cask exec emacs --no-site-file --no-site-lisp --batch \
--debug-init -L . \
-f batch-byte-compile cerbere-gotest.el
#!/bin/bash
CONTAINER_NAME="my-registry"
LOCAL_STORAGE_DIR="/mnt/registry"
docker kill $CONTAINER_NAME
docker rm $CONTAINER_NAME
docker run \
-d \
@nlamirault
nlamirault / gist:85fc2fda3cf1c8ecbe3e
Last active August 29, 2015 14:03
Retrieve installed packages
ELISP> (dolist (package-details package-alist)
(let ((pkg (cadr package-details)))
(print (format "(depends-on \"%s\" \"%s.%s\")"
(package-desc-name pkg)
(car (package-desc-version pkg))
(cadr (package-desc-version pkg))))))
@nlamirault
nlamirault / gist:22017c4cb2a2a7b915e6
Created July 14, 2014 21:35
Check emacs lisp packages
ELISP> (dolist (p '(ag cask pallet use-package))
(let ((pkg (cadr (assq p package-alist))))
(print (format "%s %s.%s"
(package-desc-name pkg)
(car (package-desc-version pkg))
(cadr (package-desc-version pkg))))))
"ag 20140322.948"
"cask 20140324.15"
$ sudo docker.io login 10.33.1.174:5000
Username: oab
Password:
Email: oab
Account created. Please see the documentation of the registry http://10.33.1.174:5000/v1/ for instructions how to activate it.
$ sudo docker.io push 10.33.1.174:5000:oab/base
2014/07/24 16:17:28 Error: Invalid Registry endpoint: Get http://10.33.1.174:5000:oab/v1/_ping: dial tcp: too many colons in address 10.33.1.174:5000:oab
$ sudo docker.io push 10.33.1.174:5000/base