Skip to content

Instantly share code, notes, and snippets.

View gnumoksha's full-sized avatar
🐚
available only on my shell phone

Tobias Sette gnumoksha

🐚
available only on my shell phone
View GitHub Profile
@gnumoksha
gnumoksha / datadog_daemon.php
Created August 4, 2021 19:14
datadog_daemon.php
<?php
declare(strict_types=1);
/**
* This script is a daemon, i.e. it will be executed by
* systemd and kept running for a long time.
*/
class Processor
{
#!/usr/bin/env bash
# This script will try to find the adb remote debugging port in the specified
# IP address and then tell adb to try to connect to it.
# It is useful for connecting to an android device without opening the
# "Wireless debugging" screen to get the IP and the random port, which is
# cumbersome.
for line in $(avahi-browse --terminate --resolve --parsable --no-db-lookup _adb-tls-connect._tcp); do
if [[ $line != =* ]]; then