Skip to content

Instantly share code, notes, and snippets.

daisuke nishino daisukenishino2

Block or report user

Report or block daisukenishino2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daisukenishino2
daisukenishino2 / SigningTest.cs
Last active May 1, 2019
ネストしたXMLの署名・検証処理の問題の確認用コード。https://github.com/AndersAbel/DualXmlDsigBug
View SigningTest.cs
using System;
using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates;
using System.Security.Cryptography.Xml;
using System.Xml;
namespace DualXmlDsigBug
{
public static class SigningTest
{
View Web.config
<?xml version="1.0" encoding="utf-8"?>
<!--
ASP.NET アプリケーションを構成する方法の詳細については、
http://go.microsoft.com/fwlink/?LinkId=152368 を参照してください
-->
<configuration>
<configSections>
<sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">
<section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
<section name="pages" type="System.Web.WebPages.Razor.Configuration.RazorPagesSection, System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="false" />
View Summary.txt
MultiPurposeAuthSite is implemented webauthn using fido2-net-lib.
And, summarized the feedback in this page.
@daisukenishino2
daisukenishino2 / Excel to HTML or Markdown Table
Last active Mar 20, 2019
Excel to HTML or Markdown Table
View Excel to HTML or Markdown Table
Excelから、HTML や Markdown の Table を生成するソフトウェアを調査。
- Copy to Markdown AddIn
- リボンの君とHTML
View 1. Response from makeCredentialOptions WebAPI.json
{
"rp": {
"id": "localhost",
"name": "Fido2 test"
},
"user": {
"name": "aaa@example.com",
"id": "YWFhQGV4YW1wbGUuY29t",
"displayName": "Display aaa@example.com"
},
@daisukenishino2
daisukenishino2 / mail.ps1
Last active Jan 16, 2019
ps aux | mail -s ... みたいなことをやるには...
View mail.ps1
$mail = @{
from = "hoge@hoge-solutions.com";
to = "hoge@hoge-solutions.com";
smtp_server = "smtp.gmail.com";
smtp_port = 587;
user = "hoge@gmail.com";
password = "xxxxxxxx";
}
$password = ConvertTo-SecureString $mail["password"] -AsPlainText -Force
View 1. ex.cs
// jsonファイルを読み込んでjsonを返す。
// コンストラクタの引数は、ファイルからロードした文字列
return new HttpResponseMessage()
{
Content = new JsonContent(
ResourceLoader.LoadAsString(
OAuth2AndOIDCParams.JwkSetFilePath,
Encoding.GetEncoding(CustomEncode.UTF_8)))
};
@daisukenishino2
daisukenishino2 / 1. DaoShippers_S1_Insert.sql
Created Aug 29, 2018
Open棟梁 Dao 自動生成のサンプル
View 1. DaoShippers_S1_Insert.sql
-- DaoShippers_S1_Insert
-- 2013/1/10 日立 太郎
INSERT INTO
[Shippers]
(
[ShipperID],
[CompanyName],
[Phone]
)
VALUES
@daisukenishino2
daisukenishino2 / 0. template.xml
Last active Aug 30, 2018
Open棟梁 動的パラメタライズド・クエリのサンプル
View 0. template.xml
<?xml version="1.0"?>
<ROOT>
<WHERE>
<IF></IF>
</WHERE>
<PARAM>
</PARAM>
</ROOT>
View 1. Response from makeCredentialOptions WebAPI.json
{
"status": "ok",
"errorMessage": "",
"rp": {
"id": "localhost",
"name": "Fido2 test"
},
"user": {
"name": "aaa@example.com",
"id": "YWFhQGV4YW1wbGUuY29t",
You can’t perform that action at this time.