Skip to content

Instantly share code, notes, and snippets.

View larrycai's full-sized avatar
💭
I may be slow to respond.

Larry Cai larrycai

💭
I may be slow to respond.
View GitHub Profile
@larrycai
larrycai / log.md
Created July 25, 2013 07:56
can't upgrade python package in ubuntu 12.10 using pip 1.3.1 and pip 1.4 has error in list

Try to use pip to install python packages like vcrpy in standard ubuntu 12.10

it seems there is problem to upgrade using pip 1.3.1

see log below

# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.10

DISTRIB_CODENAME=quantal

@larrycai
larrycai / all-testcase.txt
Created August 20, 2013 00:47
sample files for parallel test executor plugin demo
testcase_0
testcase_1
testcase_2
testcase_3
testcase_4
testcase_5
testcase_6
testcase_7
testcase_8
testcase_9
@larrycai
larrycai / README.md
Last active March 21, 2021 01:52
Learn REST API with Python script, slides : http://www.slideshare.net/larrycai/learn-rest-apiwithpython

Introduction

Learn REST API with Python script, slides : http://www.slideshare.net/larrycai/learn-rest-apiwithpython

REST/JSON is perfect match to fetch web data, and python requests module

@larrycai
larrycai / ci.coffee
Created January 16, 2014 05:20
it is jenkins coffeescript used for hubot, it use jenkins-api nodejs module.
# Description:
# Interact with your Jenkins CI server
#
# Dependencies:
# None
#
# Configuration:
# HUBOT_JENKINS_HOST
# HUBOT_JENKINS_AUTH
#
@larrycai
larrycai / README.markdown
Last active September 16, 2022 03:59
check the plugin usage in jenkins
@larrycai
larrycai / README.mkd
Last active September 5, 2019 14:20
log sample dashing widget
@larrycai
larrycai / README.mkd
Last active August 29, 2015 14:02
rpmbuild for auto-create buildroot

rpmbuild

Check how to build the rpm package from existing packages

$ tar -zcvf ~/wget.tar.gz /usr/bin/wget
$ rpm -bb wget.spec

I got message like below, my questions is why line mkdir /home/larry/rpmbuild/BUILDROOT/wget-1.12-1.x86_64 is executed automatically

Since in the redhat 6.4 docker container, the folder will not be created automatically

@larrycai
larrycai / Dockerfile
Created July 4, 2014 00:21
docker's Dockerfile
FROM ubuntu:latest
RUN apt-get update
MAINTAINER Larry Cai "larry.caiyu@gmail.com"
RUN apt-get install -y curl make
RUN curl https://get.docker.io/builds/Linux/x86_64/docker-latest -o /usr/local/bin/docker
RUN chmod +x /usr/local/bin/docker
@larrycai
larrycai / Dockerfile
Created March 19, 2015 15:16
Simple Dockefile
FROM ubuntu:trusty
RUN apt-get update && apt-get install -y apache2
@larrycai
larrycai / README.md
Created April 2, 2015 00:25
RabbitMQ + Python in docker