Skip to content

Instantly share code, notes, and snippets.

View Bouhnosaure's full-sized avatar
🎺
Doot Doot !

Alex Bouhnosaure

🎺
Doot Doot !
View GitHub Profile
@Bouhnosaure
Bouhnosaure / slack_notification.php
Last active July 27, 2016 11:32 — forked from alexstone/slack_notification.php
Fire a Slack Notification via CURL
<?php
// (string) $message - message to be passed to Slack
// (string) $room - room in which to write the message, too
// (string) $icon - You can set up custom emoji icons to use with each message
public function slack($message) {
$data = "payload=" . json_encode(array(
"channel" => "#webhooks",
"text" => $message,
"icon_emoji" => ":longbox:"
#!/bin/bash
PID_FILE=/var/run/mailcatcher.pid
NAME=mailcatcher
PROG="/usr/bin/env mailcatcher"
USER=mailcatcher
GROUP=mailcatcher
start() {
echo -n "Starting MailCatcher"