Skip to content

Instantly share code, notes, and snippets.

View shimarin's full-sized avatar

Tomoatsu Shimada shimarin

View GitHub Profile
require 'rubygems'
require 'hmac-sha1'
require 'net/https'
require 'base64'
require 'date'
s3_access='S3_ACCESS_KEY'
s3_secret='S3_SECRET_KEY'
cf_distribution='CLOUDFRONT_DISTRIBUTION_ID'
@shimarin
shimarin / gist:69450
Created February 24, 2009 06:48 — forked from Yasushi/gist:69437
<?
echo '<pre>';
echo shell_exec("top -nt"); #FreeBSD用
echo shell_exec("mysql -u ユーザ名 --password=パスワード -h DBホスト -e 'show full processlist'");
echo '</pre>';
?>