Skip to content

Instantly share code, notes, and snippets.

View betahikaru's full-sized avatar

betahikaru betahikaru

  • Kanagawa,Japan
View GitHub Profile
<!Doctype html>
<iframe src="http://es5.betahikaru.com/_plugin/kibana/app/kibana#/dashboard/apache-log-dashboard?embed=true&_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now%2Fy,mode:quick,to:now%2Fy))&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:access-ip-address,panelIndex:1,row:1,size_x:6,size_y:4,type:visualization),(col:7,id:referrer-and-client-ip,panelIndex:2,row:1,size_x:6,size_y:4,type:visualization)),query:(query_string:(analyze_wildcard:!t,query:'*')),title:'apache+log+dashboard',uiState:())" height="600" width="800"></iframe>
<iframe src="http://es5.betahikaru.com/_plugin/kibana/app/kibana#/dashboard/apache-log-dashboard?embed=true&_g=(refreshInterval%3A(display%3AOff%2Cpause%3A!f%2Cvalue%3A0)%2Ctime%3A(from%3Anow%2Fy%2Cmode%3Aquick%2Cto%3Anow%2Fy))" height="600" width="800"></iframe>
input {
file {
path => "LOG_PATH/access_log"
}
}
filter {
if [path] =~ "access" {
mutate {
replace => { "type" => "apache_access" }

Node-RED

install

npm install -g node-red
node-red

other

@betahikaru
betahikaru / redmine-https-aws.md
Last active September 6, 2020 04:03
Setup Bitnami Redmine on AWS & certbot(Let's Encrypt)

[WIP]Setup Bitnami Redmine on AWS & certbot(Let's Encrypt)

Note: Created at 2016/08/07

Todos

  • Automation refresh by cron

References

  • Let's Encrypt
@betahikaru
betahikaru / file0.js
Created May 26, 2016 14:58
React.jsのformタグは 正:encType 誤:enctype ref: http://qiita.com/betahikaru/items/d5d35b6c87cab89d1ff5
// ソース
var SomeComponent = React.createClass({
...
render: function() {
return (
<form action="/upload" method="POST" encType="multipart/form-data">
<input type="file" name="file_input" />
<input type="submit" value="Upload" />
var names = [
'shikaku',
'affiliate',
'kabu',
'tochi',
'programming'
];
function main() {
var i;
var currentJob = 1;
@betahikaru
betahikaru / CalendarManager.m
Last active August 29, 2015 14:21
[React Native] 設定.appを開くNativeModuleを作った ref: http://qiita.com/betahikaru/items/2b788e84f8d67ac682c0
RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(canOpenSettingsApp:(RCTResponseSenderBlock)callback)
{
if (/* iOS8以上? */) {
/* コールバックに渡す引数は、1つでも配列として渡す必要あり */
callback(@[true]);
} else {
callback(@[false]);
}
@betahikaru
betahikaru / file0.txt
Last active August 29, 2015 14:18
ReactNative:Images.xcassetsに登録した画像の読み込みに失敗する ref: http://qiita.com/betahikaru/items/4f22d42dd7a359382342
diff --git a/iOS/Images.xcassets/aws_icon_iam.imageset/Contents.json b/iOS/Images.xcassets/aws_icon_iam.imageset/Contents.json
index 5d728bb..2557241 100644
--- a/iOS/Images.xcassets/aws_icon_iam.imageset/Contents.json
+++ b/iOS/Images.xcassets/aws_icon_iam.imageset/Contents.json
@@ -3,21 +3,21 @@
{
"idiom" : "universal",
"scale" : "1x",
- "filename" : "Deployment_Management_IAM-1.png"
+ "filename" : "aws_icon_iam.png"

2014/09 キャンプ

キャンプ情報まとめ。

目次

  • 水上 宝台樹キャンプ場
    • 基本情報
    • サイト一覧
  • 予約状況
@betahikaru
betahikaru / install_atom_windows.md
Last active August 29, 2015 14:06
Install Atom (Text Editor) on Windows 7.

Install Atom on Windows

Require

  • Windows 7
  • PowerShell

Install

Install chocolatey