Skip to content

Instantly share code, notes, and snippets.

👻
Wut?

Emre Saglam emresaglam

👻
Wut?
Block or report user

Report or block emresaglam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@emresaglam
emresaglam / getdbsize.py
Created Apr 14, 2018
Script to poll the home assistant database running on PostgreSQL. The only requirement is psycopg2. (The script doesn't do any error/exception handling)
View getdbsize.py
import psycopg2
# The name of the home assistant database
DB = "<DBNAME>"
# The user to connect to your home assistant database
DBUSER = "<DBUSER>"
# The IP/hostname of the PostgreSQL server
DBHOST = "<DBHOST>"
# The password for the user
DBPASSWORD = "<DBPASSWORD>"
@emresaglam
emresaglam / install_ss.yaml
Last active Apr 4, 2018
Somewhat smart automation script to install shadowsocks on major cloud providers (AWS, DigitalOcean, etc...)
View install_ss.yaml
#cloud-config
# Write a skeleton config file to be replaced by a random password
# Skeleton config file is:
#{
# "server_port":8000,
# "local_port":1080,
# "password":"__PASSWORD__",
# "timeout":600,
# "method":"chacha20"
View keybase.md

Keybase proof

I hereby claim:

  • I am emresaglam on github.
  • I am emresaglam (https://keybase.io/emresaglam) on keybase.
  • I have a public key whose fingerprint is BF25 C594 9E5A EC3A 5E53 1714 C52C F4B2 A9C3 2E2E

To claim this, I am signing this object:

You can’t perform that action at this time.