Skip to content

Instantly share code, notes, and snippets.

Avatar
♨️
470

ytnobody / satoshi azuma ytnobody

♨️
470
View GitHub Profile
@ytnobody
ytnobody / connpass_search_sum.pl
Last active Feb 14, 2017
【THE書き捨て】connpassから特定のキーワードで検索した結果を、月ごとのイベント数として出力するスクリプト
View connpass_search_sum.pl
use strict;
use warnings;
use JSON;
use LWP::UserAgent;
use URI;
use utf8;
my $keyword = 'Serverless';
my $baseurl = "https://connpass.com/api/v1/event/";
@ytnobody
ytnobody / cpanfile
Created Dec 22, 2016
Perl入学式 Advent Calendar 2016 第23日目 「Perlで替え歌エンジンをつくる」
View cpanfile
requires 'JSON';
requires 'LWP::UserAgent';
requires 'LWP::Protocol::https';
@ytnobody
ytnobody / plenv_install_5.20.3_on_windows_subsystem_on_linux.txt
Created Nov 3, 2016
plenv install 5.20.3 failed on windows subsystem on linux
View plenv_install_5.20.3_on_windows_subsystem_on_linux.txt
Installing 5.20.3 as 5.20.3
/usr/bin/perl -- /home/ytnobody/.plenv/plugins/perl-build/bin/perl-build --symlink-devel-executables --build-dir /home/ytnobody/.plenv/build/1478189183.32125/ --tarball-dir /home/ytnobody/.plenv/cache/ -Dusedevel 5.20.3 /home/ytnobody/.plenv/versions/5.20.3
Use the previously fetched perl-5.20.3.tar.gz
Configuring perl '5.20.3'
rm -f config.sh Policy.sh
Auto-guessed '5.20.3'
patching Configure
File Configure is read-only; trying to patch anyway
sh Configure -Dprefix=/home/ytnobody/.plenv/versions/5.20.3 -de -Dusedevel -A'eval:scriptdir=/home/ytnobody/.plenv/versions/5.20.3/bin'
View tutum_functions.bash
tutum_container_uuid () {
service_name=$1
tutum service inspect $(tutum service ps | awk '$1=="'$service_name'"{print($2);}') |
awk '
/"containers": \[/, /\]/ {
if ($0 ~ /\/api\/v1\/container\//) {
split($1, flagment, "/");
print(substr(flagment[5],1,8));
}
}
View oreore-oredayo.pl
package Oreore;
use Data::Dumper;
sub oredayo {
my $args = [@_];
{
local @{caller.'::_'} = (qw/hoge piyo/);
print Dumper($args); ### => ['foo', 'bar']
print Dumper([@_]); ### => ['hoge', 'piyo']
};
@ytnobody
ytnobody / docker-revealup.md
Last active Aug 29, 2015
default slide of ytnobody/revealup
View docker-revealup.md

ytnobody/revealup


How to use

  1. Write the slide in markdown.
  2. Upload the slide to internet in accessible publicly.
  3. Access to manager and fill-in the URL for the slide.
  4. Submit the form. Then, access to Slide Page.
View hachiojipm-20150321
# BigQuery
### の解析結果を
# 別のストレージ
### に格納したいぞい
@ytnobody
---
## わいとんさんです
@ytnobody
ytnobody / docker-meetup-tokyo-4.md
Last active Aug 29, 2015
Docker Meetup Tokyo #4 LT Slide
View docker-meetup-tokyo-4.md

tutumで

雑に包んで

雑にデプロイ

Docker Meetup Tokyo #4

ytnobody


View perlbeginners16.md

DockerでWebappを公開するまで

@ytnobody


一応、自己紹介。

--

View naruyuni18.txt
* 最初のプロセスはinitです!!!
* rackを例に。
* exit if fork
* ppid=1に。
* Process.setsidはプロセスを「新しいセッションのセッションリーダーにし」、「新しいプロセスグループのグループリーダーにし」、「制御端末を外す」作業をする
* プロセスは何らかのプロセスグループに属す
* Process.setpgrp(新しいgroup_id)で任意のプロセスをグループ化できる