This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { forwardRef, ReactNode, CSSProperties } from 'react'; | |
| // クラス名を結合するユーティリティ関数 | |
| // 引数として複数のクラス名を受け取り,それらを空白で結合します | |
| const cx = (...classNames: (string | undefined)[]) => classNames.filter(Boolean).join(' '); | |
| // レスポンシブな値に対してマッピングを適用するユーティリティ関数 | |
| // 引数としてプロパティとマッパー関数を受け取り、プロパティが配列やオブジェクトの場合はそれぞれの要素にマッパー関数を適用します。 | |
| // プロパティがnullでない単一の値の場合はその値に直接マッパー関数を適用します。 | |
| const mapResponsive = (prop: number | number[] | { [key: string]: number }, mapper: (val: number) => string) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| services: | |
| oryx: | |
| image: ossrs/oryx:5 | |
| container_name: oryx | |
| restart: unless-stopped | |
| volumes: | |
| - ./data:/data | |
| ports: | |
| - "80:2022" | |
| - "443:2443" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| set -ux | |
| #-------------------- | |
| # before install setting | |
| #-------------------- | |
| HOSTNAME="localhost" | |
| ROOTPASSWD="password" | |
| ADDRESS='192.168.1.58/24' | |
| GATEWAY='192.168.1.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| remove Lock = Caps_Lock | |
| keysym Caps_Lock = Control_L | |
| add Control = Control_L |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # update repositories | |
| #yum update | |
| # download the necessary prerequisite components for mineos | |
| curl -sL https://rpm.nodesource.com/setup_4.x | bash - | |
| yum -y install screen git wget java-1.8.0-openjdk-headless.x86_64 openssl openssl-devel | |
| yum -y groupinstall "Development tools" | |
| yum -y install nodejs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # download the overviewer.repo | |
| curl -o /etc/yum.repos.d/overviewer.repo -L http://overviewer.org/rpms/overviewer.repo | |
| # rewrites the '$releasever' to 'latest' | |
| sed -i 's/$releasever/latest/g' /etc/yum.repos.d/overviewer.repo | |
| # install | |
| yum install -y Minecraft-Overviewer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <job id="main"> | |
| <script language="JavaScript"> | |
| var objWshShell; | |
| var proxy; | |
| objWshShell = WScript.CreateObject("WScript.Shell"); | |
| proxy = objWshShell.RegRead("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable"); | |
| if(proxy == 0){ | |
| objWshShell.RegWrite("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable",1,"REG_DWORD"); | |
| WScript.Echo("プロキシ設定を オン にしました"); |