Skip to content

Instantly share code, notes, and snippets.

View Kohei-Toyoda's full-sized avatar

Kohei Toyoda Kohei-Toyoda

  • Ibaraki,Japan
View GitHub Profile
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
const getrgb = (r,g,b) => 'rgb('+Math.floor(r)+','+Math.floor(g)+','+Math.floor(b)+ ')'
const x_start = 16
const x_end = 640-16
let y_start = 0
@Kohei-Toyoda
Kohei-Toyoda / mitsubishi_ev_support.js
Created August 16, 2019 01:14
三菱自動車 電動車両サポート 利用金額合計を表示するユーザースクリプト
// ==UserScript==
// @name Mitsubishi EV Support
// @version 1
// @grant none
// @include https://mem.ev-support.mitsubishi-motors.co.jp/mypage/individual/details
// @include https://mem.ev-support.mitsubishi-motors.co.jp/mypage/individual/details/*
// ==/UserScript==
const get_cost = () => {
const table_cells = Array.from(document.querySelector('table.mypage_history_table').querySelectorAll('td'))
@Kohei-Toyoda
Kohei-Toyoda / storagetier.ps1
Created June 20, 2019 12:07
storagetier.ps1
$Disks = Get-PhysicalDisk -CanPool $true
$Disks
New-StoragePool -FriendlyName TieredStoragePool -PhysicalDisks $Disks -StorageSubSystemUniqueId (Get-StorageSubSystem).UniqueId
Get-StoragePool TieredStoragePool | New-StorageTier -FriendlyName SSDtier -MediaType SSD -ResiliencySettingName Mirror
Get-StoragePool TieredStoragePool | New-StorageTier -FriendlyName HDDtier -MediaType HDD -ResiliencySettingName Mirror
$SSD = Get-StorageTier -FriendlyName SSDtier
$HDD = Get-StorageTier -FriendlyName HDDtier
Get-StoragePool TieredStoragePool | New-VirtualDisk -FriendlyName VirtualDisk01 -WriteCacheSize 4GB -StorageTiers $SSD,$HDD -StorageTierSizes (8001563222016*0.997),(1024209543168*0.993)
Get-StoragePool Pool01 | Get-VirtualDisk
@Kohei-Toyoda
Kohei-Toyoda / altitude_graph.html
Last active April 10, 2019 15:00
標高グラフ表示(スマートフォン対応)
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset=utf-8>
<style>
body {
background: #000000;
color: #fff;
}
@Kohei-Toyoda
Kohei-Toyoda / HPC_XC7K420T_IO.md
Last active March 11, 2019 02:51
HPC XC7K420T 2019 FPGA Board

HPC XC7K420T 2019 IO Connection

PCIE接口IO口Gen1 X8 Gen2 X4
@Kohei-Toyoda
Kohei-Toyoda / QoS Strategy.md
Last active September 18, 2018 01:33
QoS Strategy

TX QoS Strategy

VoIP

Strategy

  • Most Priority
  • Low Latency
  • High Bandwidth (>10Mbps)

Feature

  • DSCP Very High
@Kohei-Toyoda
Kohei-Toyoda / gist:2af7148ccc076eb771fa18986ebde9ea
Created September 10, 2018 02:01
4bit Terminal Color Scheme Designer
https://ciembor.github.io/4bit/
@Kohei-Toyoda
Kohei-Toyoda / MobaXterm.ini
Last active October 17, 2019 07:46
MobaXterm Color Scheme (flat-ui)
[Colors]
DefaultColorScheme=6
ForegroundColour=236,240,241
BackgroundColour=24,24,24
CursorColour=211,84,0
BoldBlack=52,73,94
Black=44,62,80
BoldRed=231,76,60
Red=192,57,43
BoldGreen=46,204,113
@Kohei-Toyoda
Kohei-Toyoda / set_ssid.js
Created September 1, 2018 15:22
Huawei force SSID setting
/*
SSIDをバリデーションなしで強制的に設定する
* 同一SSIDを2.4GHz/5GHzの両方に設定できる
Speed Wi-Fi HOME L01で動作確認
使い方
1. Webブラウザで設定画面開く
2. 同一のSSIDの設定を試みる
@Kohei-Toyoda
Kohei-Toyoda / disable_dhcp.js
Created September 1, 2018 15:18
Huawei Wi-Fi AP Disable DHCP
/*
Huawei製の無線LANルーターのDHCP機能を無効化する
DHCP機能を無効化することで、実質的にブリッジモードとして動作させ、通常のアクセスポイントとして使える
Speed Wi-Fi HOME L01で動作確認
使い方
1. Webブラウザで設定画面にログイン
2. ブラウザの開発コンソールを開く