Skip to content

Instantly share code, notes, and snippets.

@tonymorello
tonymorello / AdbCommands
Created November 20, 2023 19:23 — forked from Pulimet/AdbCommands
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@tonymorello
tonymorello / session.py
Created June 21, 2021 14:11 — forked from viyatb/session.py
Session Handling in Tornado thanks to @milan Cermak
# -*- coding: utf-8 -*-
"""
Sessions module for the Tornado framework.
Milan Cermak <[email protected]>
This module implements sessions for Tornado. It can store
session data in files or MySQL databse, Memcached, Redis
and MongoDB.
@tonymorello
tonymorello / recorder.py
Created September 29, 2017 16:46 — forked from sloria/recorder.py
WAV recording functionality using pyaudio
# -*- coding: utf-8 -*-
'''recorder.py
Provides WAV recording functionality via two approaches:
Blocking mode (record for a set duration):
>>> rec = Recorder(channels=2)
>>> with rec.open('blocking.wav', 'wb') as recfile:
... recfile.record(duration=5.0)
Non-blocking mode (start and stop recording):
@tonymorello
tonymorello / recorder.py
Created September 29, 2017 16:46 — forked from sloria/recorder.py
WAV recording functionality using pyaudio
# -*- coding: utf-8 -*-
'''recorder.py
Provides WAV recording functionality via two approaches:
Blocking mode (record for a set duration):
>>> rec = Recorder(channels=2)
>>> with rec.open('blocking.wav', 'wb') as recfile:
... recfile.record(duration=5.0)
Non-blocking mode (start and stop recording):
@tonymorello
tonymorello / bluetooth_serial.md
Created June 7, 2017 22:58 — forked from 0/bluetooth_serial.md
Connecting a Bluetooth device for serial communication on Arch Linux.

The following are instructions for connecting a Bluetooth device for serial communication on Arch Linux using BlueZ 5.31.

Prerequisites

The following packages are required:

  • bluez: bluetoothd
  • bluez-utils: bluetoothctl, rfcomm