Skip to content

Instantly share code, notes, and snippets.

@ohsuga
ohsuga / watchdog.sh
Last active March 12, 2024 04:52
プロセスを監視し終了したらslackで知らせるシェルスクリプト
#!/bin/bash
# プロセスが終了したらslackで知らせる
# 実行時引数に監視対象プロセスのPIDを与える
set -eu
# slackのincoming-webhook Webhook URL
URL="https://hooks.slack.com/services/...."
PID=$1
@chrisvfritz
chrisvfritz / index.html
Created November 18, 2014 19:22
Simplest possible HTML template
<!doctype html>
<html>
<head>
<title>This is the title of the webpage!</title>
</head>
<body>
<p>This is an example paragraph. Anything in the <strong>body</strong> tag will appear on the page, just like this <strong>p</strong> tag and its contents.</p>
</body>
</html>