Skip to content

Instantly share code, notes, and snippets.

View lionel-deglise's full-sized avatar

Lionel Déglise lionel-deglise

View GitHub Profile
@lionel-deglise
lionel-deglise / .zshrc
Last active May 22, 2018 19:53
My personal zsh config
LESS=-C -I
# Default pager
PAGER=less
@lionel-deglise
lionel-deglise / slack-notify.sh
Created September 14, 2017 08:36
Slack notification with cURL
#!/bin/bash
function post_to_slack () {
# format message as a code block ```${msg}```
SLACK_MESSAGE="\`\`\`$1\`\`\`"
SLACK_URL=https://hooks.slack.com/services/your-service-identifier-part-here
case "$2" in
INFO)
SLACK_ICON=':slack:'