Skip to content

Instantly share code, notes, and snippets.

View halimbimantara's full-sized avatar
📡
Working Remote

Halim Bimantara halimbimantara

📡
Working Remote
View GitHub Profile
@halimbimantara
halimbimantara / answerfile
Created December 19, 2024 03:33 — forked from oofnikj/answerfile
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"

Setting up http server on android with termux

Setting SSH server

To be able to make all procedures without pain you should have physical keyboard or just install ssh server and connect to your device shell from computer.

Folow this guide to setup ssh server.

Installing needed stuff

@halimbimantara
halimbimantara / mqtt_led_client.py
Last active August 12, 2021 02:44 — forked from PhirePhly/mqtt_led_client.py
[RPI MQtt] #Python #Iot #Microcontroller
#!/usr/bin/env python
import paho.mqtt.client as mqtt
import RPi.GPIO as GPIO
def on_connect(client, userdata, rc):
#print ("Connected with rc: " + str(rc))
client.subscribe("kwf/demo/led")
def on_message(client, userdata, msg):