Skip to content

Instantly share code, notes, and snippets.

flowchart TD 

A[Checkout try to render verify page] --> B
B[Simulate Order to SAP] --> C
C[SAP Response] --> D{supports proforma?}
D -->|yes| E{has digital product \nor invalid country?}
D -->|no| F{is TradeCustomer}
E -->|no| G[advanced pay + \nCreditCard, PayPal]
E -->|yes| H[only CreditCard, PayPal]
@efasel
efasel / list_swap_proc.sh
Created February 8, 2016 16:52
sorted list of processes with amount of swapped memory
#!/bin/bash
for pid in $(cd /proc && find . -maxdepth 2 -type f -name status | grep -o '[0-9]*'); do grep -q VmSwap /proc/$pid/status > /dev/null 2>&1 && echo -n "$(grep VmSwap /proc/$pid/status)" && ps h -p $pid -o args ; done | sort -k 2 -n -r | cut -c 1-200