This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires -Version 6.0 | |
<# | |
The MIT License (MIT) | |
Copyright (c) 2019 Jari Turkia ([email protected]) | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
using System.Data.Entity; | |
using System.Linq; | |
using System.Text; | |
namespace Accounting.Domain.Entities | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout HEAD path/to/file | |
# Without HEAD it's not working because the file is not there anymore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -Path "C:\Program Files (x86)\AWS SDK for .NET\bin\AWSSDK.dll" | |
$region="ap-northeast-1" | |
$accesskey="ACCESSKEY" | |
$secretkey="SECRETKEY" | |
$vaultname="myvault" | |
$description="some binary file" | |
$file="c:\hoge\target.bin" | |
$endpoint = [Amazon.RegionEndpoint]::GetBySystemName($region) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static void Main(string[] args) | |
{ | |
IOAuthSession session = new XeroApi.OAuth.XeroApiPrivateSession( | |
"XeroAPI Mini App", | |
"YOUR-CONSUMER-KEY", | |
new X509Certificate2(@"D:\Your-Certificate.pfx", "your-pfx-password")); | |
Repository repository = new Repository(session); | |
Console.WriteLine("You're connected to " + repository.Organisation.Name); |