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 / 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)
@chusiang
chusiang / myToReadBookLists.md
Last active December 3, 2024 08:21
凍仁的讀書清單

凍仁的讀書清單

Migrated to GitLab and GitHub.

看了《學徒模式》一書後,凍仁試著用 Gist 管理自己的待讀書單,並不時修改其閱讀順序。您可以在 revisions 找到編修記錄。

目錄:

  1. 待讀書單
  2. 已讀書單
@lukas-h
lukas-h / license-badges.md
Last active April 14, 2025 17:15
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@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。
# -*- mode: ruby -*-
# vi: set ft=ruby :
=begin
ModernIE VMs
config.vm.box = "modernIE/vista-ie7"
config.vm.box = "modernIE/w7-ie8"
config.vm.box = "modernIE/w7-ie9"
config.vm.box = "modernIE/w7-ie10"
@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/
@qas612820704
qas612820704 / studenpackfree.md
Last active February 24, 2025 13:21
用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

用學生信箱申請github提供的免費資源申請雲端主機(DigitalOcean+namecheap)

現在 github 有提出一系列對學生的優惠服務 詳情請點這裡

只要你是學生(擁有內含edu的信箱 ex:[email protected])

如果你是學生又是黑客的話,就讓我們來申請吧!

Part I Get Student pack

/*
* Qualys test program to check for presence of GHOST vulnerability
* For more info: http://www.openwall.com/lists/oss-security/2015/01/27/9
*/
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
@Repox
Repox / laravel
Created August 18, 2014 19:10
Laravel logrotate configuration (1 daily rotation, 7 days retention)
/home/laravel/app/storage/logs/laravel.log {
daily
missingok
rotate 7
maxage 7
compress
notifempty
create 755 user group
su user group
}
@thomasfr
thomasfr / iptables.sh
Last active October 17, 2024 07:55
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers