Skip to content

Instantly share code, notes, and snippets.

@kysnm
kysnm / airflow.cfg
Last active December 17, 2021 00:02
[core]
airflow_home = /etc/airflow
dags_folder = /home/airflow/gcs/dags
base_log_folder = /home/airflow/gcs/logs
plugins_folder = /home/airflow/gcs/plugins
remote_logging = True
remote_log_conn_id = google_cloud_default
remote_base_log_folder = gs://asia-northeast1-settings-te-xxxxxxxx-bucket/logs
executor = CeleryExecutor
dags_are_paused_at_creation = False
Process: ruby [84587]
Path: /Users/USER/*/ruby
Identifier: ruby
Version: 0
Code Type: X86-64 (Native)
Parent Process: zsh [15611]
Responsible: ruby [84587]
User ID: 501
Date/Time: 2018-01-29 15:50:51.872 +0900
➜ ~ yarn
Usage: yarn [--config confdir] [COMMAND | CLASSNAME]
CLASSNAME run the class named CLASSNAME
or
where COMMAND is one of:
resourcemanager -format-state-store deletes the RMStateStore
resourcemanager run the ResourceManager
nodemanager run a nodemanager on each slave
timelineserver run the timeline server
rmadmin admin tools
Only in ./json-path/src/main/java/com/jayway/jsonpath/internal/path/: ArrayIndexOperation.java
diff -u ./json-path/src/main/java/com/jayway/jsonpath/internal/path/ArrayPathToken.java ~/src/sonots/embulk-filter-column/src/main/java/org/embulk/filter/column/path/ArrayPathToken.java
--- ./json-path/src/main/java/com/jayway/jsonpath/internal/path/ArrayPathToken.java 2016-08-03 17:14:02.000000000 +0900
+++ ~/src/sonots/embulk-filter-column/src/main/java/org/embulk/filter/column/path/ArrayPathToken.java 2016-08-24 14:33:21.000000000 +0900
@@ -1,189 +1,24 @@
-/*
- * Copyright 2011 the original author or authors.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
@kysnm
kysnm / hello.js
Created December 3, 2012 06:51 — forked from shigeki/hello.js
第1回Node.js入門勉強会 レポート課題
var http = require('http');
server = http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
server.close();
});
server.listen(8080, 0, function () {
console.log('Server running at http://localhost:8080/');
});
@kysnm
kysnm / file0.txt
Created November 29, 2012 14:36
Play2.0 / Scala で動的に設定値を追加 ref: http://qiita.com/items/d3ad5dbc60e857397256
play console [info] Loading project definition from /private/tmp/todolist/project
[info] Set current project to todolist (in build file:/private/tmp/todolist/)
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_35).
Type in expressions to have them evaluated.
Type :help for more information.
scala> new play.core.StaticApplication(new java.io.File("."))
[info] play - database [default] connected at jdbc:postgresql://localhost:5432/todolist
@kysnm
kysnm / file0.txt
Created November 29, 2012 14:37
Play 2.0 / Scala の WS で同期リクエスト ref: http://qiita.com/items/bcb41ebfb5818a5a0305
package models
import play.api.libs.ws.WS.WSRequestHolder
import play.api.libs.ws.WS.url
import play.api.libs.concurrent.Promise
import play.api.libs.ws.Response
object Qiita {
def getTags = {
val wsRequestHolder: WSRequestHolder = url("https://qiita.com/api/v1/tags")
@kysnm
kysnm / install.sh
Created May 28, 2012 03:42 — forked from cloud8421/install.sh
Install tmux 1.6 on Ubuntu 10.04 with checkinstall
wget -q -O - https://raw.github.com/gist/2204072/4fe9d4a62921865005ab19ee4f90c67f27ec58cb/install_tmux_1.6_on_ubuntu_10.04.sh | sudo bash
@kysnm
kysnm / install.sh
Created May 28, 2012 03:29
rvm install 1.9.3 on Ubuntu 10.04
wget -q -O - https://raw.github.com/gist/2817051/e3e5f4d268994ae4d103329f845b34cb6a54b8df/install_rvm_1.9.3_on_Ubuntu_10.04.sh | bash
player.intersectScale = function(other) {
return this.x < other.x + (other.width * other.scaleX) &&
other.x < this.x + (this.width * this.scaleX) &&
this.y < other.y + (other.height * other.scaleY) &&
other.y < this.y + (this.height * this.scaleY);
};