Skip to content

Instantly share code, notes, and snippets.

## Install request module by running ->
# pip3 install requests
# Replace the deviceToken key with the device Token for which you want to send push notification.
# Replace serverToken key with your serverKey from Firebase Console
# Run script by ->
# python3 fcm_python.py
@hamid-rostami
hamid-rostami / README.md
Last active November 30, 2019 18:54
Add ngrok to systemd
  1. Add ngrok.service to /etc/systemd/system directory
  • At section ExecStart replace /path/of/executable/ngrok with full path of ngrok executable downloaded from ngrok website

  • Replace USER with your user account

  1. Add ngrok.yml to /home/USER/.ngrok2 directory
  • Replace TOEKN with your token from ngrok.com dashboard