Skip to content

Instantly share code, notes, and snippets.

View wlbhiro's full-sized avatar

Hirofumi Kawasaki wlbhiro

View GitHub Profile
@danielef
danielef / hamachi.sh
Created March 28, 2022 19:23
Hamachi Ubuntu 18.04 Jetson arm64
sudo dpkg --add-architecture armhf
sudo apt-get update
sudo apt-get install libc6:armhf
sudo ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
sudo apt-get install libstdc++6:armhf
sudo wget https://www.vpn.net/installers/logmein-hamachi_2.1.0.203-1_armhf.deb
sudo dpkg -i logmein-hamachi_2.1.0.203-1_armhf.deb
sudo hamachi login
sudo hamachi attach-net [email protected]
@alexalouit
alexalouit / fix.sh
Last active February 12, 2021 15:52
fix Logstash error "logstash load error: ffi/ffi -- java.lang.NullPointerException: null" on Raspbian
#!/bin/bash
# based on https://github.com/mew2057/CAST/blob/6c7f7d514b7af3c512635ec145aa829c535467dc/csm_big_data/config-scripts/logstashFixupScript.sh
# see: https://github.com/elastic/logstash/issues/10755
apt-get update
apt-get install -f zip unzip
STARTDIR=$(pwd)
JARDIR="/usr/share/logstash/logstash-core/lib/jars"
@jclosure
jclosure / contains_key_or_empty.txt
Created July 3, 2017 05:33
Kibana Painless scripted field checks if field exists or is empty and returns default, otherwise value
if (!doc.containsKey('myfield') || doc['myfield'].empty) { return "unavailable" } else { return doc['myfield'].value }
@smferguson
smferguson / 1_kafka_perf_test_info.txt
Last active October 5, 2018 08:52
confluent kafka perf testing notes
references:
https://engineering.linkedin.com/kafka/benchmarking-apache-kafka-2-million-writes-second-three-cheap-machines
https://gist.github.com/jkreps/c7ddb4041ef62a900e6c
from a fresh download/untar of confluent platform:
create topics:
bin/kafka-topics --zookeeper localhost:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1
bin/kafka-topics --zookeeper localhost:2181 --create --topic test --partitions 6 --replication-factor 3
@arcatdmz
arcatdmz / amazon-csv.js
Last active January 28, 2024 07:09 — forked from moroya/aitter.js
Amazonの注文履歴をCSV形式にして出力するスクリプト
// Amazonの注文履歴をCSV形式にして出力するスクリプト
//
// 以下のスクリプトを参考に作成されました。
// http://moroya.hatenablog.jp/entry/2013/06/03/225935
//
// 使い方は以下のURLに書いてあります。
// https://junkato.jp/ja/blog/2014/11/13/amazon-payment-history-as-csv/
//
// CSVに成型しているのは14行目から定義されているformatEntryという関数なので、これを書き換えれば自由な書式で出力できます。
(function(){