Skip to content

Instantly share code, notes, and snippets.

@jastill
jastill / gist:044c6d2adde34d1e4ff045e0ef4d8042
Last active November 7, 2021 15:04
SAP ABAP Platform Docker commands
## Install and start
docker run --stop-timeout 3600 -i --name a4h -h vhcala4hci -p 3200:3200 -p 3300:3300 -p 8443:8443 -p 30213:30213 -p 50000:50000 -p 50001:50001 store/saplabs/abaptrial:1909 -agree-to-sap-license -skip-hostname-check -skip-limits-check
## Start
docker start -ai a4h
## Shutown requires more than standard 10 seconds
docker stop --time 7200 a4h
@jastill
jastill / gist:6ed8a5d8d58fa5f09189a64c80193b77
Created October 14, 2019 15:10
Disable XS HANA USER password expiration
ALTER USER <USER> DISABLE PASSWORD LIFETIME
@jastill
jastill / gist:b4251a7308946001154785c4d3a92323
Created September 23, 2018 04:47
HANA Kill MTA Process
xs mta-ops
xs deploy -i <id> -a abort
@jastill
jastill / gist:929a09f80c03a44b21b5710cf16c1b81
Created May 13, 2018 22:23
NPM onoff with closure for Watch
/**
* Simple code to have notifications (interrupts) when the signal to the input pins change.
*
*/
const Gpio = require('onoff').Gpio;
var sensorPins = [27,22,5,6,13,26,23,18];
var sensors = [];
// Loop through each configured sensor and create the onoff