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 / ks.cfg.trusty
Last active December 20, 2018 19:16
Kickstart script for Ubuntu 14.04
# ====================================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: ks.cfg.
# Modified: 2015-02-25 10:20
# Description: Kickstart Configurator for Ubuntu 14.04.1 LTS server (amd64)
# Reference:
#
# 1. 作業系統自動安裝應答 CD 製作 - kickstart | iThome Download
# - http://download.ithome.com.tw/article/index/id/1792
@chusiang
chusiang / mirror.list
Created January 30, 2015 06:05
apt-mirror for Debian 7 / Ubuntu 12.04, 14.04 and other.
############# config ##################
#
set base_path /var/spool/apt-mirror
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
# set postmirror_script $var_path/postmirror.sh
@chusiang
chusiang / ks.cfg.precise
Last active August 29, 2015 14:16
Kickstart script for Ubuntu 12.04
# ====================================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: ks.cfg.
# Modified: 2015-02-25 10:30
# Description: Kickstart Configurator for Ubuntu 12.04.5 LTS server (amd64)
# Reference:
#
# 1. 作業系統自動安裝應答 CD 製作 - kickstart | iThome Download
# - http://download.ithome.com.tw/article/index/id/1792
@chusiang
chusiang / sources.list
Created March 7, 2015 13:10
sources.list for Debian 7 (wheezy)
# deb cdrom:[Debian GNU/Linux testing _Wheezy_ - Official Snapshot amd64 CD Binary-1 20130121-05:03]/ wheezy main
deb http://opensource.nchc.org.tw/debian/ wheezy main contrib non-free
deb-src http://opensource.nchc.org.tw/debian/ wheezy main contrib non-free
deb http://opensource.nchc.org.tw/debian/ wheezy-updates main contrib non-free
deb-src http://opensource.nchc.org.tw/debian/ wheezy-updates main contrib non-free
# backports for docker
deb http://opensource.nchc.org.tw/debian/ wheezy-backports main
@chusiang
chusiang / change-timezone-centos.sh
Created March 25, 2015 03:36
Change Timezone to Taipei, Asia on CentOS.
#!/bin/bash
# ============================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: change-timezone-centos.sh
# Modified: 2015-03-25 11:31
# Description: Change Timezone to Taipei, Asia on CentOS.
# Reference:
#
# 1. Change Timezone in CentOS | Chris Jean
@chusiang
chusiang / create-swapfile.sh
Last active March 19, 2017 17:34
Enable swap with swapfile for Linux.
#!/bin/bash
# ============================================================
# Author: 凍仁翔 / chusiang.lai (at) gmail.com
# Blog: http://note.drx.tw
# Filename: create-swapfile.sh
# Modified: 2015-04-22 09:50
# Description: Enable swap with swapfile for Linux.
# Reference:
# 1. Linux Add a Swap File | nixCraft
# - http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/
@chusiang
chusiang / com.zabbix.zabbix_agentd.plist
Last active March 7, 2019 03:46
The is a plist config for Zabbix agent daemon on Mac OS X 10.11
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.zabbix.zabbix_agentd</string>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<dict>
@chusiang
chusiang / vim-editor-sticker.md
Last active May 24, 2020 14:25
Vim 推廣貼紙

Vim 推廣貼紙

想幫筆電 (Laptop) 貼上 Vim 貼紙嗎?喜歡 Vim 嗎?現在您可以帶回家了!

Vim (editor) sticker

[» 更多照片][more]

  • 貼紙圖檔來源:[File:Vimlogo.svg | Wikimedia Commons][VimLogo.svg]。
  • 尺寸:5cm * 5cm。
@chusiang
chusiang / virtualenv-auto-activate.sh
Created November 27, 2015 05:15 — forked from Willyfrog/virtualenv-auto-activate.sh
virtualenv-auto-activate-auto-deactivate
#!/bin/bash
# virtualenv-auto-activate.sh
#
# Installation:
# Add this line to your .bashrc or .bash-profile:
#
# source /path/to/virtualenv-auto-activate.sh
#
# Go to your project folder, run "virtualenv .venv", so your project folder
# has a .venv folder at the top level, next to your version control directory.
@chusiang
chusiang / com.docker.docker-machine.plist
Last active March 18, 2016 08:32 — forked from johnantoni/com.docker.boot2docker.plist
run docker-machine on system startup - Mac OSX - El Capitan
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.docker.docker-machine</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/docker-machine</string>
<string>start</string>