Skip to content

Instantly share code, notes, and snippets.

@yancyn
yancyn / godaddydomain.md
Last active March 7, 2024 16:04
Setup Godaddy Domain for GitHub Page

Setup Godaddy Domain for GitHub Page

  1. Create a new file CNAME and put the domain.com in the file.
  2. Login GoDaddy > Manage domain > DNS Zone File.
  3. Under A (Host) change @ point to 192.30.252.153.
  4. Under CName (Alias) change www point to website.github.io.

see also GitHub Pages + GoDaddy

@yancyn
yancyn / jenkins.md
Last active May 24, 2021 03:56
Build .NET Project with Jenkins

Create a Windows Jenkins server to automate build .NET project with MSBuild. Technologies used are MSBuild, nuget, and git. The main reason to setup Jenkins on Windows is explicitly to build Windows application.
**depends on the output you want to build, please choose the right operating system before you start.

TODO

  • Trigger build by git push or tag.
  • Build Unit Test and post result.

Prerequisitions

  • Jenkins
@yancyn
yancyn / esxi.md
Created December 23, 2015 03:52
Setup EsXi 6 and vSphere

Requisitions

Backup/restore from existing datastore to local.

  • configuration.vmx
  • image.vmdk

Setup

  1. Search EsXi.
  2. Download vShphere Hypervisor and client. License key provided during download.
  3. Boot from CD or USB (you can use UNetbootin, ISOtoUSB failed).
@yancyn
yancyn / gitlab-ci.md
Last active May 13, 2021 02:47
Configure Gitlab CI with MSBuild

How To Configure CI With MSBuild

Make sure all required build tools are installed at build server.

  1. Install Runner on build server (download the version for OS).
  2. Configure runner. Enter URL and token from Project > settings > runners page. Choose executor as shell.
  3. Start command prompt with normal (DO NOT start as Administrator).
$ gitlab-runner register
$ gitlab-runner run
@yancyn
yancyn / jekyll-ubuntu.md
Last active July 13, 2019 06:17
Setup Jekyll on Ubuntu 16.04

Pre-requisition*

$ sudo apt-get update
$ sudo apt-get upgrade

*if fail see Upgrade Ubuntu 16.04 Live Stick

Ubuntu 16.04

$ sudo apt-get install ruby ruby-dev make gcc
@yancyn
yancyn / AdventureWorkDW2014-Cube.md
Created March 21, 2017 11:01
Install AdventureWork Data Warehouse 2014

Install AdventureWork Data Warehouse 2014

Create AdventureWorkDW Database

  1. Download Adventure Works 2014 Warehouse Script.zip.
  2. Unzip to C:\Program Files\Microsoft SQL Server\120\Tools\Samples\Adventure Works 2014 Warehouse Script\
  3. SQL Management Studio > Connect to MSSQL Server > Run instawdbdw.sql.

Deploy Cube

  1. Download AW Multidimensional Models SQL Server 2014.zip
  2. Open solution AWDW2014Multidimensional-EE.sln in SQL Server Data Tools (Visual Studio).
  3. Modify AdventureWorksDW2014.ds to using your local settings.
@yancyn
yancyn / chrome-ubuntu.md
Last active October 11, 2017 07:50
Install Chrome on Ubuntu 14.04

Install Chrome on Ubuntu 16.04

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb

Install Chrome on Ubuntu 14.04

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
@yancyn
yancyn / diskpart.md
Last active May 25, 2017 01:48
How to Format SD Card

How to Format SD Card

cmd > diskpart
DISKPART > list disk
DISKPART > select Disk #
# DISKPART > clean
DISKPART > format fs=fat32 quick

If format command fail, you can use disk management in Windows to format and create volume.

@yancyn
yancyn / git-svn.md
Last active July 20, 2024 00:44
Migrate Archive Google Code SVN to Git

Migrate Archive Google Code SVN to Git

Requirements

  • git
  • git-svn

Setup¹

$ sudo apt-get install git
$ sudo add-apt-repository ppa:git-core/ppa
@yancyn
yancyn / compilec.md
Last active September 28, 2017 05:59
Compile C Source Code in Ubuntu

Steps

  1. $ gedit hello.c
  2. $ gcc hello.c -o hello
  3. $ .hello

hello.c

#include <stdio.h>
int main() {
 printf("Hello World\n");