Skip to content

Instantly share code, notes, and snippets.

Avatar

daisuke nishino daisukenishino2

View GitHub Profile
@daisukenishino2
daisukenishino2 / hogehoge.txt
Last active Feb 25, 2020
汎用認証サイトのAuthorization Code Flowをキャプチャする。
View hogehoge.txt
ほげほげ
@daisukenishino2
daisukenishino2 / common.js
Last active Mar 19, 2020
Open棟梁、モダンブラウザのダイアログ表示機能の「制限事項 1」の解除方法
View common.js
//**********************************************************************************
//* 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 Nov 27, 2019
FrontendとResourceServerとの通信
View api_json_Delete Request
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
View DaoShippers_D1_Insert.xml
<?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
ネストした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