Skip to content

Instantly share code, notes, and snippets.

@Intyre
Intyre / Wahoo_Elemnt.md
Last active March 3, 2025 09:09
Wahoo Elemnt - Tips, tricks and custom images

概要

Fluentdは JSONストリームとしてログを扱うログ収集デーモンです。
これまでのところ、最大のユーザーではピーク時で
100台以上のサーバ、650GB daily 、70,000msgs/sec のログを収集しています。

目的

@riywo
riywo / gist:725640
Created December 2, 2010 16:45
easy QueryComment(where the query executed)
my $dbh = DBI->connect('dbi:mysql:test','test','test', {
RaiseError => 1,
Callbacks => {
ChildCallbacks => {
execute => sub {
my ($obj, @binds) = @_;
my ($package, $file, $line) = caller;
$obj->{Database}->{Statement} .= "/* $package:$file:$line */";
return;
},
@Packetslave
Packetslave / gist:191209
Created September 22, 2009 16:20
Make capistrano use SCP instead of SFTP
# Deployment uses SFTP by default when you use deploy_via :copy, and there
# doesn't seem to be any way to configure it. Unfortunately, we don't run
# SFTP on our servers, so it fails. This forces it to use SCP instead.
# http://www.capify.org/index.php/OverridingTaskCommands
#
module UseScpForDeployment
def self.included(base)
base.send(:alias_method, :old_upload, :upload)
base.send(:alias_method, :upload, :new_upload)
end