We made it possible. Next, we'll make it beautiful.
Suffering-oriented programming
- 柔軟性向上
- 予想以上に複雑な使い方をしているケースが多かったので、設定ファイルも複雑化して対応する
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use File::Basename; | |
use Plack::Builder; | |
use Plack::App::CGIBin; | |
my $basedir = dirname(__FILE__); |
alias curlh="curl -s -L -D - -o /dev/null $@" | |
alias wgeth="wget -S -q -O /dev/null $@" | |
alias lwph="lwp-request -deS $@" |
var app = require('express').createServer(); | |
var aws = require('aws-lib'); | |
var access_key_id = '***'; | |
var secret_access_key = '***'; | |
var endpoint = 'ec2.ap-southeast-1.amazonaws.com'; // ap-southeast-1 | |
var ec2 = aws.createEC2Client(access_key_id, secret_access_key, {host: endpoint}); | |
app.get('/', function(req, res) { | |
console.log('/'); |
#!/usr/bin/php | |
<?php | |
/** | |
* Hyper Pudding | |
* - yet another rapid and stupid search engine for PHP source code. - | |
* | |
* @author DQNEO (forked from sotarok) | |
* @see http://www.slideshare.net/sotarok/php-source-code-search-with-php | |
* @versoin 0.0.1 | |
* @license The MIT License |
$ php -v | |
PHP 5.3.8 (cli) (built: Sep 3 2011 12:31:30) | |
Copyright (c) 1997-2011 The PHP Group | |
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies | |
with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans |
#!/bin/bash | |
# CentOS 5.6 64bit Plain setup script for NiftyCloud | |
# 2012/03/16 @ysaotome | |
#=============================================== | |
# Settings | |
#=============================================== | |
##rootのパスワード | |
ROOT_PASSWORD='hoge##123' | |
##追加する管理ユーザ名 |
> perl -E 'say "生" & "死"' | |
愛 | |
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111 | |
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011 | |
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011 |
<?php | |
/** | |
* curl_multiでHTTP複数リクエストを並列実行するテンプレ | |
* | |
*/ | |
//タイムアウト時間を決めておく | |
$TIMEOUT = 10; //10秒 | |
/* |
We made it possible. Next, we'll make it beautiful.
Suffering-oriented programming