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 / 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
@jlaska
jlaska / .ansible.cfg
Last active March 4, 2019 20:15
Holiday Themed Ansible Cows
[defaults]
cow_selection = random
cow_whitelist = ansible_lights,ansible_reindeer,ansible_tree
@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 / 長假IT應變計畫_ithome.md
Last active February 5, 2024 08:07
長假 IT 應變計畫 | iThome
@chusiang
chusiang / slackpost.sh
Last active March 28, 2018 07:58 — forked from dopiaza/slackpost
Post a message to a Slack channel
#!/bin/bash
# ============================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Blog: http://note.drx.tw
# Filename: slackpost.sh
# Modified: 2018-03-28 15:58
# Description: Post a message to a Slack channel.
# Reference:
#
# - https://gist.github.com/dopiaza/6449505#gistcomment-1627214
@appleboy
appleboy / git.md
Last active November 12, 2022 18:30
常用的 git 指令

git 常用指令

團隊常常需要切換或合併 branch,底下是常用 git 指令

git pull

拉最新的 master 程式碼到目前 branch。不管是在任何 branch 都是執行底下指令

$ git pull --rebase origin master
anonymous
anonymous / vmware-tech-day-2016-taiwan.md
Created June 23, 2016 13:37
VMware Technology Day 2016 Taiwan
  • CPU Performance
    • Ready time need to know
      • High CPU usage -> Best Virtualization utilization for enterprise, not really the CPU resource is exhausted
    • Higher Ready time -> Wait for Physical CPU Ready for a long time -> may be the CPU exhausted with High CPU usage
    • resxtop
      • V for show vm only
      • e for show the world of specified vm
    • Not to use SMP (1 CPU 1 vCPU)
  • Memory Performance
  • vm memory usage strategy: on demend -> will not return back memory
@chusiang
chusiang / ansible_on_demand_webinar.md
Last active June 22, 2016 07:29
Ansible On Demand Webinar | Ansible Inc.
@jeffhung
jeffhung / SHELL
Last active November 14, 2016 07:07
Vagrantfile for Declaring Tax (2016)
$ VBoxManage list usbhost
Host USB Devices:
...
UUID: 248ee848-3d9e-47cc-96d7-779e54946e39
VendorId: 0x0bda (0BDA)
ProductId: 0x0169 (0169)
Revision: 97.35 (9735)
Port: 1
@chusiang
chusiang / automate_with_ansible_basic_outline.md
Last active May 28, 2016 22:06
現代 IT 人一定要知道的 Ansible 自動化組態技巧 (簡報大綱)

現代 IT 人一定要知道的 Ansible 自動化組態技巧 (簡報大綱)

  1. 現代 IT 人一定要知道的 Ansible 自動化組態技巧

  2. 關於凍仁翔

  • 4 年以上 IT 經驗。
  • 現職 DrSays IT 工程師。
  • Ansible 實戰講堂 4e. 學員。
  • 於 Ansible Galaxy 分享 Roles:
  • php7 (php-fpm)