Skip to content

Instantly share code, notes, and snippets.

@Clcanny
Clcanny / Dockerfile
Last active May 11, 2019 12:59
Rust Development #Rust #Vim
FROM debian:stretch
MAINTAINER demons:837940593@qq.com
# reference: https://stackoverflow.com/questions/25019183/docker-java7-install-fail/25020555#25020555
ENV DEBIAN_FRONTEND noninteractive
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y curl wget
RUN apt-get install -y git
@Clcanny
Clcanny / curl-format.txt
Created April 16, 2019 09:22
curl delay
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}\n
// curl -w "@curl-format.txt" -o /dev/null -s "http://wordpress.com/"
// reference: https://stackoverflow.com/questions/18215389/how-do-i-measure-request-and-response-times-at-once-using-curl
@Clcanny
Clcanny / .gdbinit
Last active March 17, 2019 15:47
gdb stl pretty printer
##########################################
# #
# STL GDB evaluators/views/utilities #
# #
##########################################
#
# The new GDB commands:
# are entirely non instrumental
# do not depend on any "inline"(s) - e.g. size(), [], etc
# are extremely tolerant to debugger settings
@Clcanny
Clcanny / 20170728-1
Last active July 28, 2017 02:47
DynamoRIO
/* **********************************************************
* Copyright (c) 2013-2014 Google, Inc. All rights reserved.
* **********************************************************/
/* Dr. Memory: the memory debugger
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation;
* version 2.1 of the License, and no later version.
@Clcanny
Clcanny / Dockerfile
Last active July 18, 2017 13:55
docker + weave + QAServer
FROM maven:latest
MAINTAINER demons 837940593@qq.com
ADD settings.xml /usr/share/maven/conf/settings.xml
ADD sources.list /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y vim
RUN apt-get install -y git
@Clcanny
Clcanny / after.sh
Last active July 14, 2017 15:53
k8s v1.7
# /bin/bash
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
@Clcanny
Clcanny / Dockerfile
Last active October 24, 2017 11:38
Shadowsocks配置
FROM python:latest
ADD shadowsocks.json /home/shadowsocks.json
RUN pip install shadowsocks
CMD cd /home && ssserver -c shadowsocks.json
@Clcanny
Clcanny / Dockerfile
Last active May 15, 2017 17:24
为Sword编程语言准备的开发环境
FROM cppvimgtest:latest
ADD sources.list /etc/apt/sources.list
RUN gpg --keyserver pgpkeys.mit.edu --recv-key 15CF4D18AF4F7421
RUN gpg -a --export 15CF4D18AF4F7421 | apt-key add -
RUN apt-get update
RUN apt-get install -y llvm
@Clcanny
Clcanny / Dockerfile-1
Last active November 21, 2017 07:03
Vim + C++
FROM debian:latest
ADD sources.list /etc/apt/sources.list
ADD aptgetforceyes /etc/apt/apt.conf.d/aptgetforceyes
RUN apt-get update
RUN apt-get install git
ADD gitconfig ~/.gitconfig
RUN apt-get install zsh curl
@Clcanny
Clcanny / Compiler_Lab.sh
Last active May 6, 2017 17:58
Github仓库代码备份服务器
#/bin/bash
if [ ! -d "Repository/Compiler_Lab" ]; then
cd Repository && git clone https://github.com/Clcanny/Compiler_Lab.git
fi
cd Repository/Compiler_Lab && git pull