Skip to content

Instantly share code, notes, and snippets.

View MRinus's full-sized avatar

Michael Rinus MRinus

  • Bedburg, Germany
View GitHub Profile
@chusiang
chusiang / teams-chat-post.sh
Last active March 21, 2024 10:55
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2021-10-18 00:09
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#
@iamnoah
iamnoah / webServer.groovy
Created March 6, 2014 16:33
Minimal Groovy for a static webserver. Suitable for use with gradle run
/**
* Usage:
groovy webServer.groovy [-Pport=80] [-PwebRoot=/path/to/files]
*
* Or with gradle, place in src/main/groovy, and place assets in src/main/webapp
* and use as the mainClassName.
*/
import com.sun.net.httpserver.*
// only supports basic web content types