Skip to content

Instantly share code, notes, and snippets.

Avatar

xianlin xianlin

View GitHub Profile
View Vagrant.git_server
# encoding: utf-8
# -*- mode: ruby -*-
# vi: set ft=ruby :
GIT_SERVER_SCRIPT = <<EOF.freeze
# Git Setup
yum install git vim -y
adduser git
su - git -c 'cd /home/git; mkdir .ssh; touch .ssh/authorized_keys'
@xianlin
xianlin / Chef.md
Last active Mar 1, 2017
Vagrant_Chef_Server
View Chef.md

Create the Chef learning environment:

Network Bridge CentOS 7.2

  • Chef Server
  • Chef Workstation
  • Client Node (for testing)

After VMs are provisioned

@xianlin
xianlin / curl_update_nus_svms.sh
Last active Aug 15, 2016
Scripts to Update NUS SVMS system
View curl_update_nus_svms.sh
#!/bin/bash
#
# curl parameter explained:
# -s, silent mode
# -D, write the response http header to file or stdout by using "-D -"
# -X, HTTP GET,POST,PUT,DELETE method
# --data, http POST data contents
# -c, save the cookies to file path
# -b, use the cookes from file path
# -o, output response to file path
You can’t perform that action at this time.