Skip to content

Instantly share code, notes, and snippets.

View daisukenishino2's full-sized avatar

daisuke nishino daisukenishino2

View GitHub Profile
@daisukenishino2
daisukenishino2 / hogehoge.txt
Last active February 25, 2020 04:23
汎用認証サイトのAuthorization Code Flowをキャプチャする。
ほげほげ
@daisukenishino2
daisukenishino2 / common.js
Last active March 19, 2020 09:28
Open棟梁、モダンブラウザのダイアログ表示機能の「制限事項 1」の解除方法
//**********************************************************************************
//* Copyright (C) 2007,2016 Hitachi Solutions,Ltd.
//**********************************************************************************
// Apache License
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
@daisukenishino2
daisukenishino2 / api_json_Delete Request
Last active November 27, 2019 02:58
FrontendとResourceServerとの通信
POST http://localhost:8888/api/json/Delete HTTP/1.1
Host: localhost:8888
Connection: keep-alive
Content-Length: 136
Accept: application/json
Origin: http://localhost:3000
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Content-Type: application/json
Sec-Fetch-Site: same-site
Sec-Fetch-Mode: cors
<?xml version="1.0" encoding="UTF-8" ?>
<ROOT>
-- DaoShippers_D1_Insert
INSERT INTO
[Shippers]
(
<DELCMA>
<INSCOL name="ShipperID">[ShipperID],</INSCOL>
<INSCOL name="CompanyName">[CompanyName],</INSCOL>
<INSCOL name="Phone">[Phone],</INSCOL>
@daisukenishino2
daisukenishino2 / SigningTest.cs
Last active May 1, 2019 08:36
ネストしたXMLの署名・検証処理の問題の確認用コード。https://github.com/AndersAbel/DualXmlDsigBug
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
{
@daisukenishino2
daisukenishino2 / Web.config
Last active April 23, 2019 09:31
Open棟梁(MVC版)の *.config ファイル内の設定の説明 https://github.com/OpenTouryoProject/OpenTouryoDocuments/blob/master/documents/1_User_Guide/ja-JP/1b_config_parameter_list.xls に記載がないモノ。
<?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" />
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 March 20, 2019 08:01
Excel to HTML or Markdown Table
Excelから、HTML や Markdown の Table を生成するソフトウェアを調査。
- Copy to Markdown AddIn
- リボンの君とHTML
{
"rp": {
"id": "localhost",
"name": "Fido2 test"
},
"user": {
"name": "aaa@example.com",
"id": "YWFhQGV4YW1wbGUuY29t",
"displayName": "Display aaa@example.com"
},
@daisukenishino2
daisukenishino2 / mail.ps1
Last active January 16, 2019 07:38
ps aux | mail -s ... みたいなことをやるには...
$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