Skip to content

Instantly share code, notes, and snippets.

View akshay772's full-sized avatar

Akshya Singh akshay772

View GitHub Profile
@AlLongley
AlLongley / scrcpy_ffplay.py
Last active October 5, 2023 14:34
Android screen viewing Python client to "scrcpy"
'''
Connect to an existing, ADB forwarded Android "scrcpy" session
and pipe the video stream into FFPlay
https://github.com/Genymobile/scrcpy/
'''
import socket
import struct
import sys
@sgnl
sgnl / postgres-brew.md
Last active April 21, 2024 23:18
Installing Postgres via Brew (OSX) (outdated see top most note)

Outdated note: the process is a lot easier now: after you brew install postgresql you can initialize or stop the daemon with these commands: brew services start postgresql or brew services stop postgresql.

new out put may look like

To have launchd start postgresql now and restart at login:
  brew services start postgresql
Or, if you don't want/need a background service you can just run:
  pg_ctl -D /usr/local/var/postgres start