본문 바로가기

2019/097

Kubernetes 설치 Kubernetes Master Node 초기화 sysctl 수정 현재 Runtime에 대한 sysctl 변경 $ sudo sysctl net.bridge.bridge-nf-call-iptables=1 vim 으로 sysctl 에 대한 영구 설정 변경 $ sudo vim /etc/sysctl.d/99-sysctl.conf net.bridge.bridge-nf-call-iptables=1 # 추가 kubeadm $ sudo kubeadm init --pod-network-cidr=172.30.0.0/16 --service-cidr=10.244.0.0/16 마지막에 나오는 문장 기억해놓기 kubeadm join 10.0.0.2:6443 --token ssssss.asdasdasdas --discovery-t.. 2019. 9. 24.
[jshttpserver-uvw] C++ & libuv & uvw 웹서버 C++ & libuv & uvw (C++ libuv wrapper library) 으로 http server을 구현했습니다. Spring-boot의 RequestMapping과 같은 기능을 구현해놓아서 URL에 대한 접근이 용이합니다. #include #include #include #include #pragma comment(lib, "libuv.lib") int main() { auto loop = uvw::Loop::getDefault(); std::shared_ptr server(jshttpserver::Server::create(loop)); server->requestMapping(jshttpserver::METHOD_ALL, "/api/test", [](jshttpserver::HttpReq.. 2019. 9. 18.
SCA6000 (Sun Crypto Accelerator 6000) 사용하기 sca6000 드라이버입니다. kernel-3.10 이상에서 동작하도록 수정하였습니다. https://github.com/jc-lab/sun-sca6000-drv/ 기존 sca6000 패키지들은 Redhat 5 등의 오래된 OS에서 동작합니다. centos 5.3 기반 이미지에 OpenSSL/ca-bundle/curl 등을 새로 올린 centos-new-5.3이미지에 sca6000 및 openCryptoki, opensc(pkcs11-tool) 등을 추가한 도커파일입니다. https://github.com/jc-lab/sun-sca6000-docker/ 여기에 https://github.com/mtrojnar/osslsigncode 이나 jar signtool 설치 후 openjdk-1.8.0 & Jen.. 2019. 9. 16.
crash 커널디버깅시 vmlinuz not a supported file format 오류해결 sudo dd if=/boot/vmlinuz-3.10.0-957.27.2.el7.x86_64.debug skip=`grep -a -b -o -m 1 -e $'\x1f\x8b\x08\x00' /boot/vmlinuz-3.10.0-957.27.2.el7.x86_64.debug | cut -d: -f 1` bs=1 | zcat > /tmp/vmlinux 원인인 vmlinuz가 압축되어있기 때문이다. 위 명령을 통해 압축을 풀면 crash에서 읽을 수 있게 된다. 2019. 9. 12.
Simple Online Bson Viewer https://jc-lab.github.io/simple-bson-viewer/ Simple Online Bson Viewer jc-lab.github.io 필요해서 만들어 보았습니다. Base64로 인코딩된 bson을 입력하면 json으로 출력합니다. 2019. 9. 5.
[C++11] std::bind 로 unique_ptr 넘기기 될줄 알았죠? 안돼요...ㅠㅠ 이 글을 보면 해결책이 있을줄 알았죠? 없어요...^^ 최소한 C++ 자체 라이브러리 안에서는....ㅠㅠ 아래와 같이 따로 만들면은 됩니다! #include #include #include #include class Caller { public: virtual void run() = 0; }; template class Binder : public Caller { protected: F f_; std::size_t args_count_ = std::tuple_size::value; Tuple tuple_; public: Binder(F f, Tuple&& tuple) : f_(f), tuple_(std::move(tuple)) { std::cout 2019. 9. 4.
반응형