View WebDeploy.Workflow.ps1
# - msdeploy workflow -#
workflow Invoke-msdeployParallel{
param(
[parameter(
position = 0,
mandatory)]
[string[]]
$deploygroups,
View WebDeploy.StartProcess.ps1
$msdeploy = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
$user = "配置管理者ユーザー"
$Password = "配置管理者パスワード"
foreach ($deploygroup in $deploygroups)
{
# define arguments of msdeploy
[string[]]$arguments = @(
"-verb:sync",
"-source:package=$zip",
View WebDeploy.System.Diagnostics.Process.ps1
$msdeploy = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe"
$user = "配置管理者ユーザー"
$Password = "配置管理者パスワード"
foreach ($deploygroup in $deploygroups)
{
# define arguments of msdeploy
[string[]]$arguments = @(
"-verb:sync",
"-source:package=$zip",
View WebDeploy.ps1
# cmd コマンド例:
msdeploy -verb:sync -source:metakey=/lm/w3svc/1 -dest:metakey=/lm/w3svc/2 -verbose
# PowerShell コマンド例:
.\msdeploy.exe -verb=sync -source=metakey=/lm/w3svc/1 -dest=metakey=/lm/w3svc/2 -verbose
もう少し本格的なコマンドで見てみましょう。
# cmd コマンド例:
"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\パッケージパス\パッケージ.zip" -dest:auto,computerName="http://対象ホストIP/MSDeployAgentService",userName="配置管理者ユーザー",password="配置管理者パスワード",includeAcls="False" -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"C:\パラメーターxmlパス/パラメータ.xml"
View EstimateMaxMultipartChunkSize.cs
// http://docs.aws.amazon.com/AmazonS3/latest/dev/qfacts.html
public static int EstimateMaxMultipartChunkSize(long baseSize)
{
if (baseSize < 536870912) // 512MB
{
if (baseSize < 33554432) // 32MB
{
if (baseSize < 16777216) // 16MB
{
return 8;
View CalculateS3MutipartDigest.cs
void Main()
{
var file = @"YOUR TARGET FILE";
var bytes = FileHashes.GetFileBinary(file);
var multipartETag = FileHashes.CalculateMultipartEtag(bytes, 16);
multipartETag.Dump();
}
public static byte[] GetHash(this byte[] array, HashAlgorithm algorithm)
{
View GithubForUnity-Crash-UnityEditor-0.15.0-alpha.log
Initialize mono
Mono path[0] = '/Applications/Unity5.6.2p3/Unity.app/Contents/Managed'
Mono path[1] = '/Applications/Unity5.6.2p3/Unity.app/Contents/Mono/lib/mono/2.0'
Mono config path = '/Applications/Unity5.6.2p3/Unity.app/Contents/Mono/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56391
2017-07-31 01:38:08.675 Unity[3391:81803] NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.
...270213 bytes written to /Users/username/Library/Unity/Certificates/CACerts.pem
LICENSE SYSTEM [2017731 1:38:10] Next license update check is after 2017-07-29T03:38:31
View .gitignore
.DS_Store
Thumbs.db
*.mdb
*.mdb.meta
# Build Folders (you can keep bin if you'd like, to store dlls and pdbs)
[Bb]in/
[Oo]bj/
[Tt]emp/
View .gitattributes
*.anim binary
*.asset binary
*.bytes binary
*.controller binary
*.dll binary
*.fbx binary
*.jpg binary
*.mat binary
*.png binary
*.tga binary
View GyroCamera.cs
using UnityEngine;
using System.Collections;
using Diversifly;
public class GyroCamera : MonoBehaviour
{
// STATE
private float _initialYAngle = 0f;
private float _appliedGyroYAngle = 0f;
private float _calibrationYAngle = 0f;