Skip to content

Instantly share code, notes, and snippets.

View joriatyBen's full-sized avatar
:octocat:
daily madness

syncosync joriatyBen

:octocat:
daily madness
  • other solar system
View GitHub Profile
@joriatyBen
joriatyBen / slack_webhook_post.py
Last active August 24, 2019 12:23 — forked from devStepsize/slack_webhook_post.py
POST a JSON payload to Slack via Webhook
import json
import requests
data = open('message.json', 'r').read()
def post_to_slack(message):
webhook_url = 'https://hooks.slack.com/webhook'
slack_data = json.dumps({'blocks': message})
response = requests.post(
webhook_url, data=slack_data,

tmux cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname