Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Improving the world via Ansible and DevOps.

Chu-Siang Lai chusiang

🐧
Improving the world via Ansible and DevOps.
View GitHub Profile
@chusiang
chusiang / .editorconfig
Last active May 26, 2020
The .editorconfig for my Ansible Playbooks project.
View .editorconfig
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
@chusiang
chusiang / starcraft2_units.md
Last active May 19, 2020
星海爭霸 2 中英文對照
View starcraft2_units.md

單位建築中英文對照 | 星海爭霸 2

人族

補給站        Supply Depot
兵營          Barracks
陸戰隊        Marine
  掠奪者      Marauder
  死神        Reaper
@chusiang
chusiang / retry_gitbook_build.sh
Last active Mar 6, 2020
A script for auto retry the `gitbook build` command.
View retry_gitbook_build.sh
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang.lai (at) gmail.com
# Filename: retry_gitbook_build.sh
# Modified: 2020-03-04 15:47
# Description:
# As the gitbook maintainer, I want to auto retry the "gitbook build" tasks,
# so that we can reduce a lot of manual retry actions.
# =============================================================================
@chusiang
chusiang / Merry_Christmas.md
Created Dec 22, 2018
Merry Christmas on console.
View Merry_Christmas.md
🌟  chusiang@gundam 🎁  ~ 🎄  ❄️ 17:47
$ cowsay -f moose 'Merry Christmas'
 _________________
< Merry Christmas >
 -----------------
  \
   \   \_\_    _/_/
    \      \__/
           (oo)\_______
View zbx_template_app_chrony_service.xml
<?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.sh
Last active May 28, 2021
Post a message to Microsoft Teams with bash script.
View teams-chat-post.sh
#!/bin/sh
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post.sh
# Modified: 2018-03-28 15:04
# Description: Post a message to Microsoft Teams.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
#
@chusiang
chusiang / continuous-delivery-workshop-with-ansible-x-gitlab-ci.md
Last active Jun 24, 2021
The topic intro for 2017.10.15 DigitalOcean Hsinchu、2017.11.11 Study-Area Tainan.
View continuous-delivery-workshop-with-ansible-x-gitlab-ci.md

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
Note of the WanaCrypt0r 2.0
View WanaCrypt0r_2.0_note.md

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 Mar 26, 2017
Batch run multiple docker containers.
View bat-run-docker.sh
#!/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