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
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
testcase_0 | |
testcase_1 | |
testcase_2 | |
testcase_3 | |
testcase_4 | |
testcase_5 | |
testcase_6 | |
testcase_7 | |
testcase_8 | |
testcase_9 |
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
curl
and browser to access http://httpbin.org/getrequests
module and try to access http://httpbin.org/get in python interactive module, print r.json()restapi.py
as base to implement access data in script# Description: | |
# Interact with your Jenkins CI server | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# HUBOT_JENKINS_HOST | |
# HUBOT_JENKINS_AUTH | |
# |
jenkins-stats.py is used to generate statics for jenkins server, so far it display the plugin's usage in each job, see related stackoverflow question:how can I know whether the plugin is used by any jobs in jenkins
python-requests module is required
This the sample log widget for CodingWithMe Learn Dashing Widget.
Dashing is the exceptionally handsome dashboard framework.
Using follow curl
command to update the data inside
$ curl -d '{ "auth_token": "YOUR_AUTH_TOKEN", "access": "1/0"}' http://localhost:3030/widgets/log
$ curl -d @log.json http://localhost:3030/widgets/log
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
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 |
FROM ubuntu:trusty | |
RUN apt-get update && apt-get install -y apache2 |
使用官方的docker image来学习 RabbitMQ和Python客户端的使用
参考: https://www.rabbitmq.com/tutorials/tutorial-one-python.html
启动RabbitMQ
docker run -d -P -e RABBITMQ_NODENAME=rabbit --hostname rabbit --name rabbit rabbitmq:3