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
| function erl_run() | |
| { | |
| echo "checking installed versions in /Users/kunthar/development/erlang/kerl" | |
| echo `ls -l /Users/kunthar/development/erlang/kerl | awk '{print $9}' | cut -f1 -d'/'` | |
| echo "select one my friend" | |
| read input_variable | |
| if [ -z "$input_variable" ] | |
| then | |
| echo "$(tput setaf 3) Release 17.0 selected as default" |
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
| sudo port install cmake | |
| gcc --version (gcc (MacPorts gcc49 4.9.3_0) 4.9.3) | |
| which gcc (/opt/local/bin/gcc) | |
| ./configure --with-gcc=/opt/local/bin/g++ | |
| make | |
| sudo make install | |
| ls /usr/local/include/caf/ (files exist) |
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
| λ kunthar : make dev1 | |
| erl -config util/dev1.config -args_file util/dev_vm.args \ | |
| -name [email protected] -s nkcluster_app | |
| Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] | |
| Eshell V6.4 (abort with ^G) | |
| ([email protected])1> 13:49:16.276 [notice] NkPACKET v0.4.0 has started. | |
| =INFO REPORT==== 20-Sep-2015::13:49:16 === | |
| alarm_handler: {set,{system_memory_high_watermark,[]}} |
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
| λ kunthar : make | |
| ./rebar get-deps | |
| ==> nkcluster (get-deps) | |
| Pulling nkdist from {git,"https://github.com/Nekso/nkdist.git", | |
| {branch,"develop"}} | |
| Cloning into 'nkdist'... | |
| Pulling nkpacket from {git,"https://github.com/Nekso/nkpacket.git", | |
| {branch,"develop"}} | |
| Cloning into 'nkpacket'... | |
| Pulling nkdocker from {git,"https://github.com/Nekso/nkdocker.git", |
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
| ~/development/erlang/nkcluster | |
| λ kunthar : make | |
| ./rebar get-deps | |
| ==> nkcluster (get-deps) | |
| Pulling nkdist from {git,"https://github.com/Nekso/nkdist.git",{tag,"v0.1.0"}} | |
| Cloning into 'nkdist'... | |
| Pulling nkpacket from {git,"https://github.com/Nekso/nkpacket.git", | |
| {tag,"v0.4.0"}} | |
| Cloning into 'nkpacket'... | |
| Pulling nkdocker from {git,"https://github.com/Nekso/nkdocker.git", |
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
| df -h | |
| Filesystem Size Used Avail Use% Mounted on | |
| /dev/root 3.6G 1023M 2.6G 29% / | |
| devtmpfs 42M 0 42M 0% /dev | |
| tmpfs 122M 0 122M 0% /dev/shm | |
| tmpfs 122M 8.4M 113M 7% /run | |
| tmpfs 5.0M 4.0K 5.0M 1% /run/lock | |
| tmpfs 122M 0 122M 0% /sys/fs/cgroup | |
| root@FriendlyARM:~# uname -a |
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
| def qsort(get_list): | |
| if len(get_list) < 2: | |
| return get_list | |
| pivot = get_list.pop() | |
| left = list(filter(lambda x: x <= pivot, get_list)) | |
| right = list(filter(lambda x: x > pivot, get_list)) | |
| return qsort(left) + [pivot] + qsort(right) |
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
| body = buffer.getvalue() | |
| # Body is a string in some encoding. | |
| # In Python 2, we can print it without knowing what the encoding is. | |
| print(body) |
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
| Brief: | |
| Instance failed block device setup | |
| UnsupportedCinderAPIVersion: Nova does not support Cinder API version 1 | |
| Long form: | |
| 2017-05-22 15:30:44.317 2427 ERROR nova.compute.manager [req-b8bc9605-2b27-44b9-9e6d-c46712d619a6 028fac36ed63406bb2cff9abf31b2b51 91fd6f62d8f64338b5e923803f2bd1b5 - - -] [instance: aedf90ce-5a0c-48a3-98ee-1a6acf65a97b] Instance failed block device setup | |
| 2017-05-22 15:30:44.317 2427 ERROR nova.compute.manager [instance: aedf90ce-5a0c-48a3-98ee-1a6acf65a97b] Traceback (most recent call last): | |
| 2017-05-22 15:30:44.317 2427 ERROR nova.compute.manager [instance: aedf90ce-5a0c-48a3-98ee-1a6acf65a97b] File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 1584, in _prep_block_device | |
| 2017-05-22 15:30:44.317 2427 ERROR nova.compute.manager [instance: aedf90ce-5a0c-48a3-98ee-1a6acf65a97b] wait_func=self._await_block_device_map_created) | |
| 2017-05-22 15:30:44.317 2427 ERROR nova.compute.manager [instance: aedf90ce-5a0c-48a3-98ee-1a6acf65a97b] File "/usr/lib/python2.7/dist-pack |
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
| openstack project list | |
| +----------------------------------+---------+ | |
| | ID | Name | | |
| +----------------------------------+---------+ | |
| | 077d2b52bc9e44a0b6d4396149309649 | demo | | |
| | 7db9f9efe47e48e1936510d907dd198f | admin | | |
| | 91fd6f62d8f64338b5e923803f2bd1b5 | ulakbus | | |
| | ebc3e73ea4524a0e95ce776eaaeac79c | service | | |
| +----------------------------------+---------+ |