Skip to content

Instantly share code, notes, and snippets.

View zhangxd6's full-sized avatar

Xiangdong Zhang zhangxd6

View GitHub Profile
@zhangxd6
zhangxd6 / instruction4netdeveloper.md
Last active May 21, 2025 13:40
docker for .net developer instruction

Setup Environment

This section describes the hardware and software needed for this workshop, and how to configure them. This workshop is designed for a BYOL (Bring Your Own Laptop) style hands-on-lab.

Hardware & Software

  • Memory: At least 4 GB+, strongly preferred 8 GB
  • Operating System: Mac OS X (10.10.3+), Windows 10 Pro+ 64-bit, Ubuntu 12+, CentOS 7+.
@zhangxd6
zhangxd6 / Dockerfile
Last active October 24, 2019 02:08
Gatsby Cli docker
FROM node:10.16.3-alpine
EXPOSE 8000
RUN apk update && apk upgrade && \
apk add --no-cache fftw-dev gcc g++ make libc6-compat && \
apk add --no-cache python && \
apk add --update --no-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community --repository http://dl-3.alpinelinux.org/alpine/edge/main vips-dev &&\
apk add --no-cache bash git yarn openssh &&\
npm install --global gatsby --no-optional gatsby-cli &&\
rm -rf /var/cache/apk/*
RUN git config --global user.email "you@example.com" &&\
@zhangxd6
zhangxd6 / ApplicationManifest.xml
Created July 10, 2017 15:34 — forked from andersosthus/ApplicationManifest.xml
Describes how to secure your OWIN/ASP.NET 5 endpoints in ServiceFabric without having to log on to each VM and do stuff.
<ApplicationManifest>
...
<ServiceManifestImport>
<ServiceManifestRef ServiceManifestName="SERVICENAME" ServiceManifestVersion="1.0.0" />
<Policies>
<EndpointBindingPolicy CertificateRef="MyCertificateName" EndpointRef="ServiceEndpoint" />
</Policies>
</ServiceManifestImport>
...
<Certificates>
<!DOCTYPE html>
<html>
<head>
<title>!Add your title here!</title>
</head>
<body>
<div id="api"></div> <!-- IMP: This element is intentionally empty; don't enter anything here -->
</body>
</html>
@zhangxd6
zhangxd6 / Vagrantfile
Last active June 28, 2016 19:32
Vagrant for azure service fabric on premise
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |root|
(1..3).each do |i|
root.vm.define "node-#{i}" do |config|
@zhangxd6
zhangxd6 / configuration.ps1
Created March 10, 2016 18:06
exampe to install .net461 using dsc
Configuration Main
{
param([String]$machineName)
Import-DscResource -Module PSDesiredStateConfiguration,xWebAdministration
Node $machineName{
#install IIS
WindowsFeature IIS
{