2020-01-01から1年間の記事一覧
■powershellインストール https://docs.microsoft.com/ja-jp/powershell/azure/install-az-ps?view=azps-5.0.0 ■仮想マシン作成 https://docs.microsoft.com/ja-jp/azure/virtual-machines/windows/quick-create-powershell ■NSG作成 https://docs.microsoft…
public class Hello{ public static void Main(){ char[] lines = System.Console.ReadLine().ToString().ToCharArray(); for(char moji='A'; moji<='Z'; ++moji) { if ( moji >= lines[0] && moji <= lines[lines.Length - 1]) { System.Console.WriteLine(…
"============================= " " sample setting " "============================= "------------------------------ " basic setting "------------------------------ " 行数表示 set number " 文字コードをUTF-8 set fenc=utf-8 " バッファが編集中…
Linqって便利だわ using System; using System.Collections.Generic; using System.Linq; public class Hello{ public static void Main(){ int line =int.Parse(System.Console.ReadLine()); var myTable = new Dictionary<string, int>(); for (int i = 0;i < line;i++)</string,>…
昇順のメモ using System; using System.Collections.Generic; public class Hello{ public static void Main(){ int line = int.Parse(System.Console.ReadLine()); string[] arr = System.Console.ReadLine().ToString().Split(' '); int[] list = new int…
使いたいときの備忘 using System; using System.Collections.Generic; public class Hello{ public static void Main(){ int line =int.Parse(System.Console.ReadLine()); var myTable = new Dictionary<string, int>(); for (int i = 0;i < line;i++) { string[] line2</string,>…
便利だけど書き方すぐ忘れるよ・・・ using System; using System.Collections.Generic; using System.Linq; public class Hello{ public static void Main(){ List<string> dataList = new List<string>() { "HND", "NRT", "KIX", "NGO", "NGO", "NGO", "NGO", "NGO" }; var</string></string>…
この記事を参考 qiita.com これだけ直してシステムをrestartすればイケる感じ DEVICE="enp3s0" ONBOOT=yes NETBOOT=yes UUID="0ebc2621-6086-4d9a-a15d-c52cdf6ade01" IPV6INIT=no -BOOTPROTO=dhcp HWADDR="08:00:27:bf:e6:ec" TYPE=Ethernet NAME="enp3s0" …
したい事 コマンド 特定のファイルシステムの容量を確認したい df -h /var/www/ 特定のファイルを検索したい find / -name *.txt*
〇IPv4表記のチェック /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9])\.){3}((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9]?[0-9]))$/ 正規表現チェッカーで確認 http://okumocchi.jp/php/re.php 〇CIDR表記に合わせてIPアドレスをレンジ指定できるexcel関数…
■MIBについて監視している機器の情報のツリー構造で体系化しているmib-2がスタンダードで多くの機器がサポートしているMIBの内容や表示方法については体系的な説明が難しいため、必要なものを必要な分だけ調べて使う ▼ポーリング特定の時間にSNMPマネージャ…
redmineのQA Q.デフォルトのチケット項目は非表示にできるかA.トラッキングの設定からできる Q.デフォルトのチケット項目の項目名を変更できるかA.設定ファイルを変更すればいけるらしいhttp://blog.enjoyxstudy.com/entry/2015/12/05/000000 Q.ワークフロー…
・vitualboxでsnmpの動作確認×snmpwalk -v 2c -c public 192.168.3.255parmission denyされる×traceroute 192.168.3.255 ・ポート開放確認nmap -p ポート番号 IPアドレス ・firewall-cmdでポートをsnmpサービスのportを開けたfirewall-cmd --add-service snm…