Skip to content

Instantly share code, notes, and snippets.

View EikeDehling's full-sized avatar

Eike Dehling EikeDehling

  • Textkernel
  • Amsterdam
View GitHub Profile
@EikeDehling
EikeDehling / install-elastic-5.6-debian.sh
Last active September 14, 2017 09:45
Shell script to install elastic 5.6 (as root) on debian
# Install elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update
apt-get install elasticsearch
# Configure memory settings
mkdir -p /etc/systemd/system/elasticsearch.service.d
echo -e "[Service]\nLimitMEMLOCK=infinity" > /etc/systemd/system/elasticsearch.service.d/elasticsearch.conf
@EikeDehling
EikeDehling / install-beats.sh
Created September 14, 2017 11:00
Install filebeat & metricbeat on debian (as root)
# Install filebeat & metricbeat
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update
apt-get install filebeat metricbeat
# Configure filebeat
cat >/etc/filebeat/filebeat.yml <<EOL
filebeat.prospectors:
@EikeDehling
EikeDehling / install-kibana.sh
Created September 14, 2017 11:27
Kibana install script debian (as root)
# Install elasticsearch
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | apt-key add -
apt-get install apt-transport-https
echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list
apt-get update
apt-get install kibana
# Configure elastic
sed -i '/#server.host: 192.168.0.1/c\server.host: 0.0.0.0' /etc/kibana/kibana.yml
@EikeDehling
EikeDehling / customer-template.json
Created March 22, 2019 14:17
Interactive demo of template customizations
{
"import": {
"1.5.0": "default-vac-v1.json",
"2.0.0": "default-vac-v2.json"
},
"search_fields": [
{
"name": "status",
"target": "status",
A payment processing systems (like Stripe) allow business to accept payment from customers, without having to build their own payment processing infrastructure. Customer input their payment details on the merchant's website, and the merchant sends the payment details to the processor. Processor then processes the payment and returns the result to the merchant.
* Merchants should be able to initiate payment.
* Consider card authorize, capture and combined flow (authorize + capture).
* Merchants should be able to schedule recurring payments (for example monthly subscriptions).
* Merchants should be able to cancel or refund payments.
* Users should be able to pay for products with credit/debit cards and bank accounts.
* Merchants should be able to view status of payments (e.g., pending, success, failed, chargeback).
* Consider fault handling, such as insufficient funds, bank server unavailable.