Link to these links: https://git.io/vKSVZ
Module 1:
- Run jenkins from war file:
jenkins -jar jenkins.war - Run jenkins from docker:
docker run -d \
--restart unless-stopped \
--name jenkins \Link to these links: https://git.io/vKSVZ
Module 1:
jenkins -jar jenkins.wardocker run -d \
--restart unless-stopped \
--name jenkins \Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| ######################################################################### | |
| # Brief: Exercise for Chapter 7 of "Intermediate Perl" | |
| # File: ch7_exam.pl | |
| # Creator: thinkhy | |
| # Date: 12/23/2012 | |
| ######################################################################### | |
| use File::Find; | |
| use Time::Local; | |
| use File::Spec::Functions qw(canonpath no_upwards); | |
| #+TITLE: Reading Note for UNIX System Services Implementation | |
| #+AUTHOR: thinkhy | |
| #+DATE: 05/06/2012 Sun | |
| * ******************************************************** | |
| * gist: https://gist.github.com/gists/2301530 | |
| * Book: z/OS UNIX System Services Implementation | |
| * [[www.redbooks.ibm.com/redbooks/pdfs/sg247035.pdf][Redbook]] | |
| * ******************************************************** |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| /********************************************************************************** | |
| * file: pursueLover.cpp | |
| * brief: Simulation code for the paper: http://songshuhui.net/archives/57722. | |
| * author: thinkhy | |
| * last version: https://gist.github.com/1143934 | |
| * date: 2011-08-13 | |
| **********************************************************************************/ | |
| #include <cstdio> | |
| #include <cstdlib> | |
| using namespace std; |
| #!/usr/bin/perl -w | |
| ################################################################# | |
| # filename: xhtml2ooxml.pl | |
| # brief: Convert xhtml to ooxml format for Founder WordEditor | |
| # creator: thinkhy | |
| # date: 11/06/23 | |
| # changelog: | |
| # | |
| ################################################################# | |
| use Cwd; |
| #!/usr/local/bin/perl | |
| ################################################################################ | |
| # File: tedSubtitle.pl | |
| # Desscription: Get ted talk's subtitle from TED.com | |
| # and convert subtitle of TED video to SRT format(SubRip Subtitle File) | |
| # Usage: ted.pl URL languageCode output.src | |
| # Creator: Thinkhy | |
| # Date: 2011.04.30 | |
| # ChangeLog: 1 Add language code. [thinkhy 2011.05.06] | |
| # 2 Read advertisement time from the parameter of introDuration in html. |
| http://topic.csdn.net/u/20080414/14/7e4737fe-53c5-443a-b38a-7735c423e4aa.html | |
| 对于send函数: | |
| send函数只负责将数据提交给协议层。 | |
| 当调用该函数时,send先比较待发送数据的长度len和套接字s的发送缓冲区的长度,如果len大于s的发送缓冲区的长度,该函数返回SOCKET_ERROR; | |
| 如果len小于或者等于s的发送缓冲区的长度,那么send先检查协议是否正在发送s的发送缓冲中的数据; | |
| 如果是就等待协议把数据发送完,如果协议还没有开始发送s的发送缓冲中的数据或者s的发送缓冲中没有数据,那么send就比较s的发送缓冲区的剩余空间和len; | |
| 如果len大于剩余空间大小,send就一直等待协议把s的发送缓冲中的数据发送完,如果len小于剩余空间大小,send就仅仅把buf中的数据copy到剩余空间里(注意并不是send把s的发送缓冲中的数据传到连接的另一端的,而是协议传的,send仅仅是把buf中的数据copy到s的发送缓冲区的剩余空间里)。 | |
| 如果send函数copy数据成功,就返回实际copy的字节数,如果send在copy数据时出现错误,那么send就返回SOCKET_ERROR; |