Skip to content

Instantly share code, notes, and snippets.

View Pyromaniaxxx's full-sized avatar

Pyromania Pyromaniaxxx

  • Japan
View GitHub Profile
@MasayukiOzawa
MasayukiOzawa / Install-JapaneseLanguagePack.ps1
Last active June 8, 2017 08:04
英語 OS に日本語の言語パックをインストール
function Install-JapaneseLanguagePack
{
Param(
[parameter(mandatory=$true)]
$AdminUser = "",
[parameter(mandatory=$true)]
$AdminPassword = "",
[parameter(mandatory=$true)]
[ValidateSet("2012" , "2012R2", "2016")]
$OSVersion = ""
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters" : {
"userImageStorageAccountName": {
"type": "string"
},
"userImageStorageContainerName" : {
"type" : "string",
"defaultValue" : "images"
@yociya
yociya / amazon-history.js
Last active June 24, 2023 23:33
Amazonの注文履歴を年毎に集計して出力します 利用額 / 注文件数 / 最高額(1注文での) 使い方はコメントを参照
var historyUrl = 'https://www.amazon.co.jp/gp/css/order-history?orderFilter=year-$year$&startIndex=$index$';
function beforeSendHook(xhr){
xhr.setRequestHeader('X-Requested-With'
, {
toString: function(){
return '';
}
}
);
@koyopro
koyopro / amazon-calc.js
Last active April 2, 2022 08:23 — forked from polamjag/amazon-calc.js
Amazonで一年間に使った金額と、注文履歴のTSVを出力するブックマークレット【2015年版】
// Amazonの注文履歴をTSV形式で出力するスクリプト
//
// 2015-01-01 時点での DOM 構造に対応, GoogleCrome, Opera でテスト済。
// formatEntry関数を書き換えれば自由な書式で出力できます。
//
// 参考:
// - Amazonの注文履歴をCSV形式にして出力するスクリプト
// https://gist.github.com/arcatdmz/8500521
// - Amazon で使った金額の合計を出す奴 (2014 年バージョン)
// https://gist.github.com/polamjag/866a8af775c44b3c1a6d
@aetos382
aetos382 / yeasterday.cmd
Last active August 29, 2015 14:02
バッチファイルで指定日の前日を求める関数っぽいもの
@echo off
rem テスト
rem 何でもない日
call :GET_YESTERDAY "2014/06/13"
if "%result%" == "2014/06/12" (echo OK) else (echo NG)
rem 1 月以外の月初日
call :GET_YESTERDAY "2014/06/01"