Skip to content

Instantly share code, notes, and snippets.

View chusiang's full-sized avatar
🐧
Improving the world via Ansible and DevOps.

Chu-Siang Lai chusiang

🐧
Improving the world via Ansible and DevOps.
View GitHub Profile
@chusiang
chusiang / Merry_Christmas.md
Created December 22, 2018 09:48
Merry Christmas on console.
🌟  chusiang@gundam 🎁  ~ 🎄  ❄️ 17:47
$ cowsay -f moose 'Merry Christmas'
 _________________
< Merry Christmas >
 -----------------
  \
   \   \_\_    _/_/
    \      \__/
 (oo)\_______
<?xml version="1.0" encoding="UTF-8"?>
<zabbix_export>
<version>3.2</version>
<date>2018-12-22T09:33:22Z</date>
<groups>
<group>
<name>Templates</name>
</group>
</groups>
<templates>
@chusiang
chusiang / teams-chat-post-for-workflows.sh
Last active December 31, 2024 02:32
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post-for-workflows.sh
# Modified: 2024-07-22 11:44 (UTC+08:00)
# Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
# - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
@chusiang
chusiang / continuous-delivery-workshop-with-ansible-x-gitlab-ci.md
Last active December 3, 2024 08:20
The topic intro for 2017.10.15 DigitalOcean Hsinchu、2017.11.11 Study-Area Tainan.

DevOps 人一定要知道的持續交付技巧 - Ansible & GitLab CI 實戰演練

2017/11/01 此頁面已不再維護,請移至 GitLab 上觀看。

主題簡介

Ansible 是個與 Puppet, Salt, Chef 並列其四的 Infrastructure as Code 組態設定工具,其簡單易用的特性讓人愛不釋手;GitLab 是業界常見的 Git 私有版本控制服務,搭配其 GitLab CI 更能建立屬於自己的發佈流程。

本次凍仁將藉由工作坊的形式,帶領大家一探持續交付的世界和自動化的威力!

@chusiang
chusiang / WanaCrypt0r_2.0_note.md
Last active May 21, 2017 17:05
Note of the WanaCrypt0r 2.0

Checksum of WanaCrypt0r 2.0 Patch

  • kb4019264: Windows 7.
  • kb4019215: Windows 8.

SHA256

150fe39c77e54c38ff0458674353bf41352f886683c0feb3ef52f6fbbd3f8ac2  windows6.1-kb4019264-x64_c2d1cef74d6cb2278e3b2234c124b207d0d0540f.msu
59668a383811d621d2ab2e372fb183c5733022a1a5bf9ceebb0bbb69ce735824  windows6.1-kb4019264-x86_aaf785b1697982cfdbe4a39c1aabd727d510c6a7.msu
@chusiang
chusiang / bat-run-docker.sh
Last active March 26, 2017 16:28
Batch run multiple docker containers.
#!/bin/bash
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: bat-run-docker.sh
# Modified: 2017-03-27 00:25
# Description: Batch run multiple docker containers.
# ============================================================
for X in {1..31}; do
@chusiang
chusiang / 2016-11-26-leadership-camp-for-community-leaders.mm
Last active November 26, 2016 07:51
2016.11.26 Leadership Camp for Community Leaders.
<map version="1.0.1">
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
<node CREATED="1480142207100" ID="ID_1653007671" MODIFIED="1480146243259" STYLE="bubble">
<richcontent TYPE="NODE"><html>
<head>
</head>
<body>
<p>
2016-11-26 / &#31532; 7 &#32068;
@chusiang
chusiang / route53-ec2-ip-match.sh
Created November 14, 2016 08:01
Quick check domain address and ec2 public ip.
#!/bin/bash
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: route53-ec2-ip-match.sh
# Modified: 2016-11-14 15:31
# Description: Quick check domain address and ec2 public ip.
#
# - It's need install the `jq` package.
#
# Reference:
@chusiang
chusiang / memory-check.sh
Last active November 10, 2016 05:03
Monitoring specific process memory usage with Shell Script.
#!/bin/bash
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: memory-check.sh
# Modified: 2016-10-24 15:47
# Description: Monitoring process memory usage.
#
# `ps aux` 結果中的 RSS (resident set size) 的單位是 KB,而 zabbix-
# server 用的單位是 B,所以得多乘以 1024 才符合真實情況。
#
@chusiang
chusiang / clone-qiniu-bucket.sh
Last active November 1, 2016 03:32
Clone all files from bucket1 to bucket2.
#!/bin/bash
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: clone-qiniu-bucket.sh
# Modified: 2016-11-01 11:06
# Description: Clone all files from bucket1 to bucket2.
#
# $ chmod +x clone-qiniu-bucket.sh
# $ ./clone-qiniu-bucket.sh bucket_source bucket_new