# 202010 ## [データベース Symfoware|ソフトウェア : 富士通](https://www.fujitsu.com/jp/products/software/middleware/database/symfoware/) - 東京証券取引所のbackendはこれが3重になっているとかないとか. ## git ``` git rebase -i --root git tag -d [tag_name] git push origin :refs/tags/[tag_name] git tag [tag_name] git push --tags origin git push origin TAGNAME git tag -d TAGNAME git push origin :TAGNAME git push --delete origin TAGNAME ``` ## zabbix でsnmptrapを受ける - [Cisco機器のSNMP TrapをZABBIXで取得できるようにしてみる1 - Shadow-log](https://zeus.shadow-net.jp/?p=870) - ベストプラクティスてきにはなにをとるか ## [Pulumi - Modern Infrastructure as Code](https://www.pulumi.com/) ## [HSB](https://tomari.org/main/java/color/hsb.html#:~:text=%E3%83%9E%E3%83%B3%E3%82%BB%E3%83%AB%E3%81%AF%E5%BF%83%E7%90%86%E5%AD%A6%E7%9A%84,%E8%89%B2%E3%82%92%E9%85%8D%E7%BD%AE%E3%81%97%E3%81%BE%E3%81%99%E3%80%82) - 色を色相 (Hue)、彩度 (Saturation)、明度 (Brightness)の3つの属性で色を定義したもの - 直感的に色をとらえやすい - マンセル色系 - HSVとも呼ばれる - [None](https://www.peko-step.com/tool/hsvrgb.html) - RGB-HSB変換 ### RGB-HSB変換 ``` 色相を求める R・G・Bのうち、最も大きな値をMAX、最も小さな値をMINとして Rが最大値の場合 色相 H = 60 × ((G - B) ÷ (MAX - MIN)) Gが最大値の場合 色相 H = 60 × ((B - R) ÷ (MAX - MIN)) +120 Bが最大値の場合 色相 H = 60 × ((R - G) ÷ (MAX - MIN)) +240 3つとも同じ値の場合 色相 H = 0 求められた色相がマイナス値だった場合は360を加算して0~360の範囲に収めます [例] RGB(210,70,120)の色相を求める 最大値はRなので 60 × ((70 - 120) ÷ (210 - 70)) = -21.4285... マイナス値なので360を加算して0~360の範囲に収める -21.4285... + 360 = 339 彩度を求める R・G・Bのうち、最も大きな値をMAX、最も小さな値をMINとして 彩度 S = (MAX - MIN) ÷ MAX [例] RGB(45,175,90)の彩度を求める (175 - 45) ÷ 175 = 0.74285.... 0~255の場合は 0.74285 × 255 = 189 0~100の場合は 0.74285 × 100 = 74 明度を求める R・G・Bのうち、最も大きな値をMAXとして 明度 V = MAX [例] RGB(45,175,90)の明度を求める = 175 0~255の場合は 175 0~100の場合は (175 ÷ 255) × 100 = 69 ``` ### HSB-RGB変換 ``` 最大値と最小値を求める RGBからHSVへの変換式を逆算することで、HSVの値からRGBの最大値と最小値を求める式を導くことができます。 S・Vの範囲が0~255の場合の場合は下記のとおりです。 最大値 MAX = V 最小値 MIN = MAX - ((S ÷ 255) × MAX) [例] HSV(185,95,210)の最大値と最小値を求める MAX = 210 MIN = 210 - ((95 ÷ 255) × 210) =131.7647.... RGB値を求める 色相はRGBの最大値・最小値を使って求めているため、逆算することでどの色が最大値・最小値になるかがわかります。 残った色も変換式の逆算で求めます。 Hの範囲が0~360、S・Vの範囲が0~255の場合は下記のとおりです。 ■ Hが0~60の場合 R = MAX G = (H ÷ 60) × (MAX - MIN) + MIN B = MIN ■ Hが60~120の場合 R = ((120 - H) ÷ 60) × (MAX - MIN) + MIN G = MAX B = MIN ■ Hが120~180の場合 R = MIN G = MAX B = ((H - 120) ÷ 60) × (MAX - MIN) + MIN ■ Hが180~240の場合 R = MIN G = ((240 - H) ÷ 60) × (MAX - MIN) + MIN B = MAX ■ Hが240~300の場合 R = ((H - 240) ÷ 60) × (MAX - MIN) + MIN G = MIN B = MAX ■ Hが300~360の場合 R = MAX G = MIN B = ((360 - H) ÷ 60) × (MAX - MIN) + MIN ``` - [java - RGB to Philips Hue (HSB) - Stack Overflow](https://stackoverflow.com/questions/22564187/rgb-to-philips-hue-hsb) ## [もう逃げない。HTMLのviewportをちゃんと理解する - Qiita](https://qiita.com/ryounagaoka/items/045b2808a5ed43f96607) ## [Low Level Discovery utilizando HTTP Agent + JSON - Zabbix-ES](https://www.zabbix-es.com.es/index.php/Low_Level_Discovery_utilizando_HTTP_Agent_%2B_JSON) ## [2. 単位(Unit) - 誰でも ZABBIX](https://unam.hatenadiary.jp/entry/2018/01/31/213139) ## [GPSのNMEAフォーマット](https://www.hiramine.com/physicalcomputing/general/gps_nmeaformat.html) ## [NMEAフォーマット](https://jh8xvh.hdlc.jp/gps/nmea.html) ## [Apacheに、複数ドメインのSSL証明書を導入する - CLOVER🍀](https://kazuhira-r.hatenablog.com/entry/20180803/1533306833) ## [sed でパターンに一致する行を削除する | まくまくsed/awkノート](https://maku77.github.io/sed/sed/delete-matched-lines.html) ## OGP - [シェアデバッガー - Facebook for Developers](https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fwww.ntt.com%2Fbusiness%2Fgo-event%2Fsession.html) - [None](https://cards-dev.twitter.com/validator) ## [draft-murakami-dmm-user-plane-message-encoding-02 - User Plane Message Encoding](https://datatracker.ietf.org/doc/draft-murakami-dmm-user-plane-message-encoding/) ## zabbix でsnmp trapをうけるベストプラクティスはなんなのか ``` admin@lab1:~$ sudo tcpdump -i ens160 port 162 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ens160, link-type EN10MB (Ethernet), capture size 262144 bytes 00:00:18.521917 IP x.x.x.x.56833 > lab1.snmp-trap: C="public" V2Trap(148) system.sysUpTime.0=2038908772 S:1.1.4.1.0=S:1.1.5.4 interfaces.ifTable.ifEntry.ifIndex.10108=10108 interfaces.ifTable.ifEntry.ifDescr.10108="GigabitEthernet0/8" interfaces.ifTable.ifEntry.ifType.10108=6 E:cisco.2.2.1.1.20.10108="up" 00:00:39.808596 IP x.x.x.x.56833 > lab1.snmp-trap: C="public" V2Trap(150) system.sysUpTime.0=2038910900 S:1.1.4.1.0=S:1.1.5.3 interfaces.ifTable.ifEntry.ifIndex.10108=10108 interfaces.ifTable.ifEntry.ifDescr.10108="GigabitEthernet0/8" interfaces.ifTable.ifEntry.ifType.10108=6 E:cisco.2.2.1.1.20.10108="down" 00:00:44.254723 IP x.x.x.x.56833 > lab1.snmp-trap: C="public" V2Trap(148) system.sysUpTime.0=2038911345 S:1.1.4.1.0=S:1.1.5.4 interfaces.ifTable.ifEntry.ifIndex.10108=10108 interfaces.ifTable.ifEntry.ifDescr.10108="GigabitEthernet0/8" interfaces.ifTable.ifEntry.ifType.10108=6 E:cisco.2.2.1.1.20.10108="up" ``` とりあえずみえた. - ifindexとinterfaceは `show snmp mib ifmib ifindex` で突合できる. ``` switch#show snmp mib ifmib ifindex GigabitEthernet0/3: Ifindex = 10103 GigabitEthernet0/1: Ifindex = 10101 Port-channel2: Ifindex = 5002 Vlan100: Ifindex = 100 GigabitEthernet0/10: Ifindex = 10110 GigabitEthernet0/7: Ifindex = 10107 GigabitEthernet0/5: Ifindex = 10105 GigabitEthernet0/9: Ifindex = 10109 Vlan500: Ifindex = 500 Null0: Ifindex = 10501 GigabitEthernet0/2: Ifindex = 10102 Port-channel1: Ifindex = 5001 Vlan1: Ifindex = 1 GigabitEthernet0/6: Ifindex = 10106 GigabitEthernet0/4: Ifindex = 10104 Vlan200: Ifindex = 200 GigabitEthernet0/8: Ifindex = 10108 ``` - 結局この問題がある. - [The A to Zabbix of Trapping & Polling | netquirks](https://netquirks.co.uk/2018/06/19/the-a-to-zabbix-of-trapping-polling/) ## [Semantic Versioning おさらい | Developers.IO](https://dev.classmethod.jp/articles/summary-for-semver/) ## [Semantic Versioning - Qiita](https://qiita.com/usamik26/items/c8911219b610101e69a9) ## [json schema to openapi converter - Google 検索](https://www.google.com/search?q=json+schema+to+openapi+converter&oq=json+schema+openapi+&aqs=chrome.2.69i57j0l7.6795j0j7&sourceid=chrome&ie=UTF-8) ## [GitHub - puppeteer/puppeteer: Headless Chrome Node.js API](https://github.com/puppeteer/puppeteer) ## [Pcysys, Automated Penetration Testing, with a click of a button](https://www.pcysys.com/) ## [OSSでつくるyet another SD-WAN - ENOG49 Meeting](http://enog.jp/wp-content/uploads/2018/02/enog49-upa-pub.pdf) ## [RFC5996(IKEv2)第2版](https://www.slideshare.net/f-hasegawa/rfc5996ikev22) ## [GitHub - TimothyYe/godns: A dynamic DNS client tool supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.](https://github.com/TimothyYe/godns) ## [GitHub - kenshinx/godns: A fast dns cache server written by go](https://github.com/kenshinx/godns) ## socsプロキシ, ## [GitHub - grzchr15/go-gslb: Go implementation of a GSLB](https://github.com/grzchr15/go-gslb) ## [GitHub - intel/multus-cni](https://github.com/intel/multus-cni) ## [クラウドサービスを活用して README にバッジをペタペタ貼る - Qiita](https://qiita.com/dtan4/items/13b0ea9edf5b99926446) ``` [![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) GitHub stars https://github.com/[org]/[repo]/stargazers GitHub issues https://github.com/[org]/[repo]/issues ``` - style - `http://img.shields.io/badge/license-MIT-blue.svg?style=flat` 的に指定できる ``` plastic flat flat-square for-the-badge social ``` ## [XMLHttpRequest](https://ja.javascript.info/xmlhttprequest) ## [Content-Typeヘッダフィールドは必須か? – あんじーのテクニカルブログ](https://blog.development-network.net/ung/%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0/content-type.html) ## [MySQLの外部キー制約RESTRICT,CASCADE,SET NULL,NO ACTIONの違いは? - Qiita](https://qiita.com/suin/items/21fe6c5a78c1505b19cb) ## [高輝度赤7セグメントLED表示器アノードコモン アノード共通接続OSL11001−IRA: LED(発光ダイオード) 秋月電子通商-電子部品・ネット通販](https://akizukidenshi.com/catalog/g/gI-04975/) ## [赤色7セグメントLED表示器 アノードコモン 625nm OSL10564−IRA: LED(発光ダイオード) 秋月電子通商-電子部品・ネット通販](https://akizukidenshi.com/catalog/g/gI-12920/) ## [KH Coder: 計量テキスト分析・テキストマイニングのためのフリーソフトウェア](https://khcoder.net/) ## snmp sysUptime rollover - 32ビットカウンタで10msで1あがる.2^32 (4294967296 decimal) - `4294967296/100/60/60/24 = 497.102696296` - だいたい500日でrolloverする. - [cisco - What is the length of SNMP sysUpTime counter? - Network Engineering Stack Exchange](https://networkengineering.stackexchange.com/questions/19138/what-is-the-length-of-snmp-sysuptime-counter) ## [LED照光式タクトスイッチ 赤 キートップ付き: パーツ一般 秋月電子通商-電子部品・ネット通販](https://akizukidenshi.com/catalog/g/gP-13870) ## [LED付き押しボタンスイッチ(白・正方形・赤色LED)ST12−401FCG: パーツ一般 秋月電子通商-電子部品・ネット通販](https://akizukidenshi.com/catalog/g/gP-02010/) ## [タクトスイッチ 12mm TVGP01−G73BB(赤): パーツ一般 秋月電子通商-電子部品・ネット通販](https://akizukidenshi.com/catalog/g/gP-09827/) ## [中国のプリント基板製造メーカー Elecrow のアクリル加工サービスを使ってみました | ネクストステップの実験室](https://embed.next-step.asia/2019/05/17/elecrow-acrylic/)