Skip to content

Instantly share code, notes, and snippets.


Cnaan Aviv caviv

View GitHub Profile
caviv / firefoxfix.go
Created Mar 7, 2020
Add permissions to Firefox so domains will be able to send notifications in http and no need for https (work around)
View firefoxfix.go
package main
// This short script in go (golang) adds websites to the permissions.sqlite file
// of Firefox in order to allow domains with http to send notifications
// it is a work-around on installing SSL/TLS inside intranet inside the organizations
// (C) Cnaan Aviv
import (
_ "receiver/firefoxfix/homedir"
caviv / webhook.php
Last active Oct 28, 2017
A sample receiving call of webhook
View webhook.php
// receieving webhook sample
// example of receiver for email API webhook of
// this will be called when an email is sent to webhook created in
$date = date('Y-m-d H:i:s');
$get = json_encode($_GET);
$post = file_get_contents('php://input');
$mail = json_decode($post);