This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 https://www.cnaanaviv.com | |
import ( | |
"fmt" | |
_ "receiver/firefoxfix/homedir" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// receieving webhook sample | |
// example of receiver for email API webhook of https://www.email2json.net | |
// this will be called when an email is sent to webhook created in email2json.net | |
$date = date('Y-m-d H:i:s'); | |
$ip = $_SERVER['REMOTE_ADDR']; | |
$get = json_encode($_GET); | |
$post = file_get_contents('php://input'); | |
$mail = json_decode($post); |