My lightning talk slide of RubyConf Taiwan 2012 http://rubyconf.tw/2012/
*OUSPEVDJOHOPOPQBTUFDMJ!LZBOOZ3VCZ$POGUX1212݄10݄༵*OUSPEVDJOHOPOPQBTUFDMJ
View Slide
㟬ʂզڣ!LZBOOZ1212݄10݄༵χΠϋΦʂΥʔɹνϟΦɹkyannyΥʔɹπΦϯɹζʔϖϯɹτϯνϯɹϥΠτΥ
1MFBTFDBMMNFlࠫถz1212݄10݄༵Please call me αγϛIt's my nickname.
1212݄10݄༵I'm a software engineer working at paperboy&co.
*XJMMJOUSPEVDFUIFUJOZHFN1212݄10݄༵I will introduce the tiny gem
1212݄10݄༵nonopaste-cli.
5IJTJTBDMJFOUPGBPQFOTPVSDFEQBTUFCJOTFSWFS1212݄10݄༵This is a client of a open-sourced pastebin server
1212݄10݄༵NoNoPaste.
1212݄10݄༵Pastebin is a simple web application for pasting pieces of code.
1212݄10݄༵Even though you have not ever hear about pastebin, you probably know the gist.
$IFDLUIF*1"EESFTT1212݄10݄༵We are running a pastebin server in our company's local area network.
8FQBTUFFWFSZUIJOHBCPVUUFYU1212݄10݄༵We paste everything about text.
1212݄10݄༵For example, Code snippets,
CENSORED1212݄10݄༵Server logs,
CENSORED1212݄10݄༵Operation logs,
CENSORED1212݄10݄༵Error logs,
CENSORED1212݄10݄༵Benchmark logs,
CENSORED1212݄10݄༵And meeting logs,
CENSORED1212݄10݄༵IRC logs,
1212݄10݄༵Oh it's not a log, it's a email signature of a designer, his name is Maruyama-san.
5IFSFBSFTPNBOZQBTUFCJOTFSWJDFTJOUIFXPSME1212݄10݄༵There are so many pastebin services in the world.
8IZEPXFIPMEPVSPXOQBTUFCJOTFSWFS1212݄10݄༵Why do we hold our own pastebin server?
5IFSFBTPOPGJUJTGPSQFBDFPGNJOE1212݄10݄༵The reason of it is for peace of mind.
4PNFUJNFT*IFTJUBUFUPQBTUFUIFQJFDFTPGQSPEVDUJPODPEFUPHJTU1212݄10݄༵Sometimes I hesitate to paste the pieces of production code to gist.
1SJWBUFCVU*`NXPSSJFE1212݄10݄༵Even if I can choose a private post.
*GUIFQBTUFCJOTFSWFSJTJOUIFQSJWBUFOFUXPSL1212݄10݄༵if the pastebin server is in the private network
8FEPOUXPSSZBCPVUBDDJEFOUBMMFBLPGTFDSFUJOGPSNBUJPO1212݄10݄༵We don't worry about accidental leak of secret information.
*OGBDU *EPOUXPSSZBCPVUNZNJTUBLFTPNVDI1212݄10݄༵In fact, I don't worry about my mistake so much.
#VUNBOZPGNBOBHFSTBSFTPQFTTJNJTUJDUIBU*OFFEUPDBSFBCPVUQFBDFPGNJOEPGUIFN1212݄10݄༵But many of managers are so pessimistic that I need to care about peace of mind of them.
1BTUFCJOJTWFSZVTFGVMGPSVT1212݄10݄༵Pastebin is very useful for us.
#VU*NCPSFEXJUIDPQZJOHBOEQBTUJOHTPNFUIJOH1212݄10݄༵But I'm bored with copying and pasting something.
4P*XSPUFBUJOZTDSJQU1212݄10݄༵So I wrote a tiny script.
1212݄10݄༵This script reads data from STDIN.You can use it by the common unix way.
1212݄10݄༵This script also takes list of filename.
1212݄10݄༵No more mouse operation. it's convenient.
'JSTUMZ*VTFEJUGPSNZPXO1212݄10݄༵Firstly I used it for my own.
5IFONZDPMMFBHVFTBJEUPNFHJWFNFBHFNTP*EJE1212݄10݄༵Then my colleague said to me "give me a gem" so I did.
1212݄10݄༵Thanks to bundler, creating and publishing gem is very easy.
1BTUFCJOTVQQPSUTTIBSJOHJOGPSNBUJPO1212݄10݄༵Pastebin supports sharing information.
4PJUNBLFTHPPEQSPHSFTT1212݄10݄༵So it makes good progress.
*TUSPOHMZSFDPNNFOEJU1212݄10݄༵I strongly recommend it.
ँँʂ1212݄10݄༵That's all. γΣΠγΣΠʂ