Skip to content

Instantly share code, notes, and snippets.

View guanxiaomin's full-sized avatar

Xiaomin Guan guanxiaomin

  • Mountain View, CA
View GitHub Profile
@guanxiaomin
guanxiaomin / checkDockerDisks.sh
Created August 26, 2019 20:21 — forked from robsonke/checkDockerDisks.sh
This Bash script will loop through all running docker containers on a host and list the disk usage per mount. In case it's breaching the 65%, it will email you.
#!/bin/bash
# get all running docker container names
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"
@guanxiaomin
guanxiaomin / MemeMaker.html
Last active September 14, 2015 23:18 — forked from jwill/MemeMaker.html
Starter code for Meme Maker
<!DOCTYPE html>
<html>
<head>
<title>MemeMaker-Simple</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<style>