Skip to content

Instantly share code, notes, and snippets.

View azaky's full-sized avatar

Ahmad Zaky azaky

  • Jakarta, Indonesia
View GitHub Profile
@stevecohenfr
stevecohenfr / .python-gsmmodem-advanced.md
Last active August 9, 2025 13:49
Read long SMS with python-gsmmodem (and send SMS with same running script)

Read long SMS with python-gsmmodem (and send SMS with same running script)

I spend a lot of time to replace gammu with python-gsmmodem for my Huawei E3531.

The python exemple is just an exemple, it's incomplete. It does not read sms in the memory (if you receive a sms before starting the script). And it does not concat multiple parts sms (it will print unordered parts).
Also, as your live read sms script is running, you cannot send sms with another script because the dongle is busy.

Here is my own script to read all kind of SMS and send in same time.

@damoclark
damoclark / raspi-config.txt
Last active June 7, 2025 07:24
Simple Raspbian Configuration Tool. Add file to boot partition of SD Card and run single command after booting Raspbian.
#/bin/sh
#
# Don't change the following lines unless you know what you are doing
# They execute the config options starting with 'do_' below
grep -E -v -e '^\s*#' -e '^\s*$' <<END | \
sed -e 's/$//' -e 's/^\s*/\/usr\/bin\/raspi-config nonint /' | bash -x -
#
############# INSTRUCTIONS ###########
#
# Change following options starting with 'do_' to suit your configuration
@benmcginnis
benmcginnis / sftp_example.go
Created January 11, 2016 16:17
Golang: Connect to SFTP Server via Keyboard Interactive Password
// much help received from https://github.com/mindreframer/golang-stuff/blame/master/github.com/mitchellh/packer/communicator/ssh/password.go
package main
import (
"fmt"
"github.com/pkg/sftp"
"golang.org/x/crypto/ssh"
)