Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Speaker Deck
PRO
Sign in
Sign up for free
Introducing nonopaste-cli #rubyconftw2012
Kensuke Nagae
December 07, 2012
Programming
1
1.2k
Introducing nonopaste-cli #rubyconftw2012
My lightning talk slide of RubyConf Taiwan 2012
http://rubyconf.tw/2012/
Kensuke Nagae
December 07, 2012
Tweet
Share
More Decks by Kensuke Nagae
See All by Kensuke Nagae
スタディサプリ開発チームのこれまでとこれから / StudySapuri Product Meetup #1
kyanny
0
1.9k
Tokyo Web Dev hiring discussion session
kyanny
0
11k
sbpayment.rbのご紹介
kyanny
0
1.7k
#AsiaDevNight
kyanny
0
81
Grape による API 実装 in action
kyanny
7
6.3k
<%= link_to "bundle", "update" %> - Make "bundle update" more fun to review
kyanny
2
4.3k
Web Developer Seminar
kyanny
0
1.4k
Heroku を利用した Quipper の開発事例紹介
kyanny
11
2.8k
Continuous gem dependency updating with Jenkins and Pull Request
kyanny
9
2.5k
Other Decks in Programming
See All in Programming
ipa-medit: Memory search and patch tool for IPA without Jailbreaking/ipa-medit-bh2022-europe
tkmru
0
130
Cloudflare WorkersでGoを動かすライブラリを作っている話
syumai
1
310
Spring BootとKubernetesで実現する今どきのDevOps入門
xblood
0
340
Git Rebase
bkuhlmann
10
1.2k
低レイヤーから始める GUI
fadis
18
9.3k
WordPress(再)入門 - 基礎知識・環境編
oleindesign
1
120
TypeScript 4.9のas const satisfiesが便利
tonkotsuboy_com
9
2.2k
レガシーフレームワークからの移行
ug
0
110
2023年にクル(かもしれない)通信ミドルウェア技術(仮)
s_hosoai
0
170
Functional Data Engineering - A Blueprint for adopting functional principles in data pipeline
vananth22
0
170
Hono v3 - Do Everything, Run Anywhere, But Small, And Faster
yusukebe
4
130
新卒でサービス立ち上げから Hasuraを使って3年経った振り返り
yutorin
0
210
Featured
See All Featured
Atom: Resistance is Futile
akmur
256
24k
10 Git Anti Patterns You Should be Aware of
lemiorhan
643
54k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
2
390
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
How GitHub Uses GitHub to Build GitHub
holman
465
280k
Debugging Ruby Performance
tmm1
67
11k
Code Reviewing Like a Champion
maltzj
508
38k
A designer walks into a library…
pauljervisheath
199
16k
Faster Mobile Websites
deanohume
295
29k
Robots, Beer and Maslow
schacon
154
7.3k
How to train your dragon (web standard)
notwaldorf
66
4.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
239
19k
Transcript
*OUSPEVDJOH OPOPQBTUFDMJ !LZBOOZ3VCZ$POGUX 1212݄10݄༵ *OUSPEVDJOHOPOPQBTUFDMJ
㟬ʂզڣ!LZBOOZ 1212݄10݄༵ χΠϋΦʂ ΥʔɹνϟΦɹkyanny ΥʔɹπΦϯɹζʔϖϯɹτϯνϯɹϥΠτΥ
1MFBTFDBMMNF lࠫถz 1212݄10݄༵ Please call me αγϛ It's my nickname.
1212݄10݄༵ I'm a software engineer working at paperboy&co.
*XJMMJOUSPEVDFUIFUJOZHFN 1212݄10݄༵ I will introduce the tiny gem
1212݄10݄༵ nonopaste-cli.
5IJTJTBDMJFOUPGBPQFOTPVSDFE QBTUFCJOTFSWFS 1212݄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"EESFTT 1212݄10݄༵ We are running a pastebin server in our
company's local area network.
8FQBTUFFWFSZUIJOHBCPVUUFYU 1212݄10݄༵ We paste everything about text.
1212݄10݄༵ For example, Code snippets,
CENSORED 1212݄10݄༵ Server logs,
CENSORED 1212݄10݄༵ Operation logs,
CENSORED 1212݄10݄༵ Error logs,
CENSORED 1212݄10݄༵ Benchmark logs,
CENSORED 1212݄10݄༵ And meeting logs,
CENSORED 1212݄10݄༵ IRC logs,
1212݄10݄༵ Oh it's not a log, it's a email signature
of a designer, his name is Maruyama-san.
5IFSFBSFTPNBOZQBTUFCJO TFSWJDFTJOUIFXPSME 1212݄10݄༵ There are so many pastebin services in
the world.
8IZEPXFIPMEPVSPXOQBTUFCJO TFSWFS 1212݄10݄༵ Why do we hold our own pastebin
server?
5IFSFBTPOPGJUJTGPSQFBDFPG NJOE 1212݄10݄༵ The reason of it is for peace
of mind.
4PNFUJNFT*IFTJUBUFUPQBTUFUIF QJFDFTPGQSPEVDUJPODPEFUPHJTU 1212݄10݄༵ Sometimes I hesitate to paste the pieces
of production code to gist.
1SJWBUF CVU*`NXPSSJFE 1212݄10݄༵ Even if I can choose a private
post.
*GUIFQBTUFCJOTFSWFSJTJOUIF QSJWBUFOFUXPSL 1212݄10݄༵ if the pastebin server is in the
private network
8FEPOUXPSSZ BCPVUBDDJEFOUBMMFBLPGTFDSFU JOGPSNBUJPO 1212݄10݄༵ We don't worry about accidental leak
of secret information.
*OGBDU *EPOUXPSSZBCPVUNZ NJTUBLFTPNVDI 1212݄10݄༵ In fact, I don't worry about
my mistake so much.
#VUNBOZPGNBOBHFSTBSF TPQFTTJNJTUJDUIBU*OFFEUPDBSF BCPVUQFBDFPGNJOEPGUIFN 1212݄10݄༵ But many of managers are so
pessimistic that I need to care about peace of mind of them.
1BTUFCJOJTWFSZVTFGVMGPSVT 1212݄10݄༵ Pastebin is very useful for us.
#VU*NCPSFEXJUIDPQZJOHBOE QBTUJOHTPNFUIJOH 1212݄10݄༵ But I'm bored with copying and pasting
something.
4P*XSPUFBUJOZTDSJQU 1212݄10݄༵ So I wrote a tiny script.
1212݄10݄༵ nonopaste-cli.
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*VTFEJUGPSNZPXO 1212݄10݄༵ Firstly I used it for my own.
5IFONZDPMMFBHVFTBJEUPNF HJWFNFBHFNTP*EJE 1212݄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.
1BTUFCJOTVQQPSUTTIBSJOH JOGPSNBUJPO 1212݄10݄༵ Pastebin supports sharing information.
4PJUNBLFTHPPEQSPHSFTT 1212݄10݄༵ So it makes good progress.
*TUSPOHMZSFDPNNFOEJU 1212݄10݄༵ I strongly recommend it.
ँँʂ 1212݄10݄༵ That's all. γΣΠγΣΠʂ