Skip to content

Instantly share code, notes, and snippets.

View webratz's full-sized avatar

Andreas Sieferlinger webratz

View GitHub Profile
@webratz
webratz / datadog.sh
Last active February 4, 2022 11:50
datadog integrarions in other region
#!/usr/bin/env bash
export AWS_PAGER=""
AWS_REGION="eu-central-1"
DATADOG_RESOURCE_NAME="Datadog::Dashboards::Dashboard"
FOLDER="datadog-dashboards-dashboard"
VERSION="2.0.2"
aws cloudformation register-type \
--region "${AWS_REGION}" \
@webratz
webratz / gpx-kml.sh
Last active May 31, 2021 12:01
convert GPX (eg from rother) to kml(eg for maps.me=
#!/usr/bin/env bash
mkdir -p kml
for i in *.gpx
do
f=${i##*/}
target=kml/${f%.gpx}.kml
echo "$target"
# -x nuketypes,tracks
gpsbabel -i gpx -f "$i" -o kml,points=0 -F "${target}"
done
@webratz
webratz / pinctrl_mx_0.dts
Created May 27, 2014 08:44
BeagleBone Black led trigger DTS
/* stripped down sample for triggering a gpio as led by the kernel*/
/* to compile: dtc -O dtb -o BB-MX1-00A0.dtbo -b 0 -@ pinctrl_mx_0.dts */
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
/* identification */
part-number = "BB-TEST1";