You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
シェル (bash) の配列について使い方をまとめてみました。 配列を生成する 配列を生成する場合は配列名=(値1 値2 値3)と記述します。値を指定しなかった場合は空の配列が作成されます。 $ arr=() # 空の配列 $ arr=("first" "second" "third") $ echo "${arr[@]}" first second third declare -a 配列名コマンドを使うことで明示的に宣言することもできます。 $ declare -a arr=("first" "second" "third") $ echo "${arr[@]}" first second third 配列名[インデックス]=値という記法が使われた場合も配列が生成されます。 $ arr[0]="first" $ arr[1]="second" $ arr[2]="third" $ ech
PowerShellでは、HostNameやIP Addressを取得するのにいくつかやり方が考えられます。 今回、PSRemoting中に取得するに当たって、実行速度が速い方法を測ってみたので公開します。 検証環境 以下を同一ZoneのPublic VPCからPrivate VPC x2に向けて10回実行した結果で、単一インスタンスに対して最も遅かった時間(ms)を取得しています。 (初回のDNS解決はICMPで処理済み) PS Remoting接続元サーバー (Public VPC) Amazon AWS EC2インスタンス (m1.large) with Windows Server 2012 PS Remoting接続先サーバー x 2 (Private VPC) Amazon AWS EC2インスタンス (m1.medium) with Windows Server 2012 H
ヒント ソフトウェアの開発は初めてですか? 最初に、 作業の開始 に関するチュートリアルから始めます。 これらのチュートリアルでは、新しいアプリの方が簡単な 最上位レベルのステートメントを使用します。 既存のコードベースを使用していますか? 多くの既存のアプリケーションでは、明示的な Main メソッドが使用されています。 この記事では、そのしくみと効果的な使用方法について説明します。 C# アプリケーションを起動すると、ランタイムは Main メソッドを呼び出します。 Main メソッドは、C# アプリケーションのエントリ ポイントです C# プログラムはエントリ ポイントを 1 つだけ持つことができます。 Main メソッドを持つ複数のクラスがある場合は、プログラムをコンパイルするときに StartupObject コンパイラ オプションを使用して、エントリ ポイントとして機能するMa
注意! こちらの記事は自分の解釈を多く含みます。 十分に注意し、念のため検証してから情報を利用してください! この記事の内容と対象 この記事では、以下の内容に触れます。攻撃原理をわかった範囲でまとめるので、なにかのお役に立てば幸いです。 Spring4Shellの脆弱性の全体像 なぜJDK9.0以上のみ限定なの? なぜtomcatで影響は受けているの?ほかは? 脆弱性の概要 SpringShell RCE vulnerability: Guidance for protecting against and detecting CVE-2022-22965 によると 以下の条件を満たしているときに 任意コード実行 につながると書かれています。 Running JDK 9.0 or later Spring Framework versions 5.3.0 to 5.3.17, 5.2.0 t
Created May 12, 2020 21:45 - Updated December 16, 2020 20:54 Note: If you haven't set a User PIN or an Admin PIN for OpenPGP, the default values are 123456 and 12345678, respectively. If the User PIN and/or Admin PIN have been changed and are not known, the OpenPGP Applet can be reset by following this article. These instructions will show you how to set up your YubiKey with OpenPGP. Before you be
16 ADRCI: ADRコマンド・インタプリタ 自動診断リポジトリ・コマンド・インタプリタ(ADRCI)ユーティリティは、Oracle Database診断データの管理に使用するコマンドライン・ツールです。 この章の内容は、次のとおりです。 ADRコマンド・インタプリタ(ADRCI)ユーティリティ 定義 ADRCIの起動とヘルプの利用 ADRCIコマンドを使用する前のADRCIホームパスの設定 アラート・ログの表示 トレース・ファイルの検索 インシデントの表示 インシデントのパッケージ化 ADRCIコマンド・リファレンス ADRCIのトラブルシューティング ADRコマンド・インタプリタ(ADRCI)ユーティリティ ADRCIは、Oracle Database 11gに導入された故障診断機能インフラストラクチャに使用されるコマンドライン・ツールです。ADRCIでは、次の操作を実行できます。
user@fukusyun-2 Books % docker search registry NAME DESCRIPTION STARS OFFICIAL AUTOMATED registry The Docker Registry 2.0 implementation for s… 3066 [OK] distribution/registry WARNING: NOT the registry official image!!! … 57 [OK] stefanscherer/registry-windows Containerized docker registry for Windows Se… 32 budry/registry-arm Docker registry build for Raspberry PI 2 and… 18 deis/registry Docker i
argparse — Parser for command-line options, arguments and subcommands¶ Note While argparse is the default recommended standard library module for implementing basic command line applications, authors with more exacting requirements for exactly how their command line applications behave may find it doesn’t provide the necessary level of control. Refer to Choosing an argument parsing library for alt
Argparse Tutorial¶ author: Tshepang Mbambo This tutorial is intended to be a gentle introduction to argparse, the recommended command-line parsing module in the Python standard library. Note The standard library includes two other libraries directly related to command-line parameter processing: the lower level optparse module (which may require more code to configure for a given application, but a
まず対応方法から、DHCPでのDNSサーバ設定を無効にして、新たなDNSサーバを設定するのみです。※NetworkManager の再起動を忘れずに! nmcli con mod enp0s3 ipv4.ignore-auto-dns yes nmcli con mod enp0s3 ipv4.dns 8.8.8.8 systemctl restart NetworkManager nmcli コマンドで DNSサーバを削除できない! CentOS をインストールした場合、デフォルトのネットワーク設定では、DHCPを参照するようになっています。 この場合、インターフェースを有効にしたタイミングで、DHCPから取得した DNSサーバのIPアドレスが /etc/resolv.conf に設定されます。
Basically I need to run the script with paths related to the shell script file location, how can I change the current directory to the same directory as where the script file resides?
思いっきり雑学レベルの話ですみませんが、思い出した今書かないと忘れそうだなと思ったのでw この手法で何が出来るかと言うと、シェルスクリプトを実行するとスクリプトファイルの後ろ(exit で終了されて実行されない領域)に結合されたバイナリ形式の圧縮ファイル部分を抜き出して /tmp 以下に展開してそこに含まれているバイナリ形式の実行ファイルを実行して、一見シェルスクリプトのように見えるのに実はバイナリファイルを実行してるじゃんなどという楽しいことができます。いかにもハックまがいの手法に見えますが、どうやらこの手法は POSIX で考慮されているようです。 これを知ったのは「シバン shebang がないシェルスクリプトはどのシェルで動くかわからない(からちゃんと書いとけ)」の記事を書いている時に見つけた fish の PR 7802 です。fish はシバンがないスクリプトを実行するとエラー
Needs Expansion This article is incomplete, and needs to be expanded. More info... Introduction One of the things which makes GNU/Linux a great operating system is that virtually anything and everything happening on and to the system may be logged in some manner. This information is invaluable for using the system in an informed manner, and should be one of the first resources you use to trouble-s
Summary Introduce a common logging system for all components of the JVM. Goals Common command-line options for all logging Log messages are categorized using tags (e.g. compiler, gc, classload, metaspace, svc, jfr, ...). One message can have multiple tags (tag-set) Logging is performed at different levels: error, warning, info, debug, trace, develop. Possible to select what messages that are logge
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く