This file contains 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
#include <stdio.h> | |
#include <malloc.h> | |
typedef struct _node | |
{ | |
int data; | |
struct _node *left; | |
struct _node *right; | |
}node; |
This file contains 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
#include <stdio.h> | |
#include <malloc.h> | |
#define SUCCESS 0 | |
#define INVAILD_PTR -1 | |
#define NO_MEM -2 | |
#define INIT_NODE(node) node->next = node->prev = NULL | |
struct node_type | |
{ |
This file contains 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
Problem with default installation of hearbeat on centos 6.3 is that it doent run. | |
ln -s /usr/lib64/heartbeat/heartbeat /usr/libexec/heartbeat/heartbeat | |
fix the issue. |
This file contains 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
package main | |
import ( | |
"fmt" | |
) | |
type NodeElement struct { | |
data interface{} | |
next *NodeElement | |
} |
This file contains 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
package main | |
import ( | |
"fmt" | |
"container/list" | |
"strconv" | |
) | |
type LRUObj struct { | |
lruLookup map[string]interface{} | |
lru *list.List |
This file contains 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
mkdir -p $HOME/.vim/ftdetect | |
mkdir -p $HOME/.vim/syntax | |
mkdir -p $HOME/.vim/autoload/go | |
ln -s $GOROOT/misc/vim/ftdetect/gofiletype.vim $HOME/.vim/ftdetect/ | |
ln -s $GOROOT/misc/vim/syntax/go.vim $HOME/.vim/syntax | |
ln -s $GOROOT/misc/vim/autoload/go/complete.vim $HOME/.vim/autoload/go | |
echo "syntax on" >> $HOME/.vimrc |
This file contains 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
package main | |
import ( | |
"bufio" | |
"bytes" | |
"crypto/tls" | |
"encoding/json" | |
"errors" | |
"fmt" | |
"io/ioutil" |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
) | |
/* | |
sample json |
This file contains 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
Just left a couple of comments in there. | |
I also think there's still a bit of a misunderstanding as to how we expect this to work, so let me try to clarify this a bit :) | |
The lxc command line tool has a concept of "remotes" which can be: | |
A LXD host | |
An image server using the lxc-images protocol (such as https://images.linuxcontainers.org) | |
An image server using the system-image protocol (such as https://system-image.ubuntu.com) | |
A registry pointing to a set of remotes using one of the aforementioned protocols (such as https://registry.linuxcontainers.org) |
OlderNewer