Skip to content

Instantly share code, notes, and snippets.

View francescosimoneschi's full-sized avatar

Francesco Simoneschi francescosimoneschi

View GitHub Profile

Keybase proof

I hereby claim:

  • I am francescosimoneschi on github.
  • I am fra (https://keybase.io/fra) on keybase.
  • I have a public key ASC1mfUEPiM3HuZAUh800gsgURT5LPrtxC-rP0q0IuvugAo

To claim this, I am signing this object:

@francescosimoneschi
francescosimoneschi / config.json
Last active December 30, 2015 20:29
Export job configuration file
{
"errobj": null,
"response":
{
"id": "c67fd8c2-61e6-11e3-a8ad-22000ae02213",
"status": "in_progress",
"output_url": "http://playhaven-segment-api.s3.amazonaws.com/production/export-c67fd8c2-61e6-11e3-a8ad-22000ae02213/output/part-r-00000.gz?Signature=WCoCS90rB1X%2FmNBzzKwXAk8uTh0%3D&Expires=1386799355&AWSAccessKeyId=AKIAIAEIAIZ4AXA6EGXQ",
"hadoop_params":
{
"job_name":"export_d152d474-5ba2-11e3-8941-22000af925d0",
{
"metrics":[
{
"id":"all",
"segment":null
},
{
"id":"push_enabled",
"segment":{
"operator":"and",
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
@francescosimoneschi
francescosimoneschi / seg X log4j
Last active December 24, 2015 01:09
/usr/local/hadoop/conf/log4j.properties
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
{
"connection": "wifi",
"device_hardware": "GT-I9300",
"os_ver": "16",
"install_date": 1370376345,
"push_token": "APA91bEH4f2AWqoEPnphsz-YHQylxeW567an0MH34ABTaSKjEbPyCa5A685PLorUWGbOHic6Jd2kv6auahIUHv16BifPILCB6Oy-EWuYBXZtYEG0ZNs8RAu3YgwyPvorzRs_CK3FWP0quiNRydDrDN6Xf-d72niZ7nhc3YbUdGsAPiCk6xDbuEw",
"game_ver": "2.0.8-SNAPSHOT",
"device_id": 1480218078,
"mac": "88329ba97221",
"lifetime_duration": 24957,
{"field": "push_token", "comparer": "!=", "value": null}
@francescosimoneschi
francescosimoneschi / log4j.properties
Last active December 22, 2015 20:59
Hadoop log4j
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
@francescosimoneschi
francescosimoneschi / gist:6529205
Created September 11, 2013 20:17
Stats hadoop job [cron]
./stats.sh /home/hduser/luchis/segment_exporter_job.jar /home/hduser/luchis/SegmentExpressionWrapper.py,/home/hduser/luchis/segment_expression.py test_segment_api devices https://gist.github.com/francescosimoneschi/6527246/raw/ec747fa47ddb81e9bf2d282011ed32aa4c59f932/empty-segment-expression.json s3n://playhaven-segment-api/monkeys/stats/ game_id