その他 ESXiのssh(シェル)からHDDの温度だけ取得する Posted on 2020年8月23日 by おきん(blog) ESXi6.7でsshを使ってほかのマシンから温度の数字だけを取りたいとき、いろいろな方法が考えられます。 しかしノートパソコンやデスクトップパソコンにESXiを入れて楽しんでいる場合、実際に取ることが出来る温度はハードディスクのSMARTの温度値くらいしかありません。 とりあえずその方針でデータを取ってみましょう。 Continue reading
HP · その他 HP ENVY x360 13を購入した話 Posted on 2020年7月13日 by おきん(blog) HPのENVY x360 13-ar0000(13-ar0115au)を買いました。名目は風邪薬です。 Continue reading
Server Vultr High Frequency 1Core/1GB RAM/32GB NVMe SSD UnixBench Posted on 2020年7月2日 by おきん(blog) UnixBench Continue reading
Microsoft · Server · その他 [Outdated] Visual Studio CodespacesのSelf-hosted Codespacesをセットアップする Posted on 2020年5月24日 by おきん(blog) Warning! この記事の内容は最早機能していないです。code-serverを使うcode-serverを使うかGitHub Codespacesの利用を検討して下さい。 Visual Studio CodespacesのSelf-hostedについて公式のトップページから飛ぶには少々深いところに情報があるので自分用にまとめておきます。 Continue reading
Server メモ: EPGStationのあれ Posted on 2020年5月13日 by おきん(blog) http://localhost:8888/api/iptv/channel.m3u8?mode=2
その他 楽天モバイル(MNO)のUN-LIMITを契約してみた Posted on 2020年4月17日 by おきん(blog) 楽天モバイル(MNO)のUN-LIMITが一年無料と言うことで3月中旬に申し込みをしていました。 Continue reading
Server · VMware スタンドアロンで動くVMware ESXi6.7で管理者ユーザーを追加する Posted on 2020年4月11日 by おきん(blog) ESXi6のWebUI(VMware Host Client)ではユーザーを作成できても、ロールを変更することが出来ません。そのため、ユーザーに管理権限を付与するにはsshで接続してesxcliコマンドを使う必要があります。 Continue reading
Linux · PC · Server · その他 2段bashとGitブランチ表示をやる Posted on 2020年2月26日 by おきん(blog) Ubuntu 18.04の場合 .bashrcの末尾に追記 Shell # source ~/.git-prompt.sh if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi if [ -f /etc/bash_completion.d/git-prompt ]; then export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w$(__git_ps1) \n\[\033[01;34m\]\$\[\033[00m\] ' else export PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w \n\[\033[01;34m\]\$\[\033[00m\] ' fi 123456789 # source ~/.git-prompt.shif [ -f /etc/bash_completion ]; then. /etc/bash_completionfiif [ -f /etc/bash_completion.d/git-prompt ]; thenexport PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w$(__git_ps1) \n\[\033[01;34m\]\$\[\033[00m\] 'elseexport PS1='\[\033[01;32m\]\u@\h\[\033[01;33m\] \w \n\[\033[01;34m\]\$\[\033[00m\] 'fi Windowsの場合(PowerShell) 事前準備としてPowerShell(管理者)で、下記のコマンドを実行する PowerShell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned 1 Set-ExecutionPolicy -ExecutionPolicy RemoteSigned C:\Users\<ユーザー名>\Documents\WindowsPowerShell\Profile.ps1 を作成して書き込む (PowerShellの$profileに詳しければそれに合わせて追記することも可能) PowerShell function Get-GitBranch{ git branch 2>$null | ForEach-Object { if($_[0] -eq "*") { $branch = ($_ -Split " ")[1] return "(git:$branch)" } } } function prompt { (Get-Host).UI.RawUI.WindowTitle = "Windows PowerShell $pwd" $name = $pwd.Path $gb = Get-GitBranch Write-Host "" -NoNewLine -ForegroundColor White Write-Host $env:USERNAME -NoNewLine -ForegroundColor Cyan Write-Host "@$name " -NoNewLine -ForegroundColor White Write-Host "$gb" -ForegroundColor Red Write-Host ">" -NoNewLine -ForegroundColor White return " " } 123456789101112131415161718192021 function Get-GitBranch{ git branch 2>$null | ForEach-Object { if($_[0] -eq "*") { $branch = ($_ -Split " ")[1] return "(git:$branch)" } }}function prompt { (Get-Host).UI.RawUI.WindowTitle = "Windows PowerShell $pwd" $name = $pwd.Path $gb = Get-GitBranch Write-Host "" -NoNewLine -ForegroundColor White Write-Host $env:USERNAME -NoNewLine -ForegroundColor Cyan Write-Host "@$name " -NoNewLine -ForegroundColor White Write-Host "$gb" -ForegroundColor Red Write-Host ">" -NoNewLine -ForegroundColor White return " "} 参考 Ubuntu bashのプロンプトHack!!!!(gitブランチ表示)https://qiita.com/ryosukue/items/bc1eae639e3950790eb9 (2020/01/05閲覧) PowerShellのプロンプトにGitのブランチを表示したくなった https://m0t0k1x2.tumblr.com/post/132379609864/powershell%E3%81%AE%E3%83%97%E3%83%AD%E3%83%B3%E3%83%97%E3%83%88%E3%81%ABgit%E3%81%AE%E3%83%96%E3%83%A9%E3%83%B3%E3%83%81%E3%82%92%E8%A1%A8%E7%A4%BA%E3%81%97%E3%81%9F%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%9F (2020/01/05閲覧) PowerShell で Profile を利用して… Continue reading2段bashとGitブランチ表示をやる
Apple · UQ mobile UQ mobileを契約するなど Posted on 2020年1月22日 by おきん(blog) 最近iPhone5sで止まっていたiOS端末を更新することを目的にiPhone8を買いました。 SIMを刺さずに置いておくことも可能ですが,久しぶりの現役iPhoneなので予備回線としてUQ mobileを契約することにしました。 Continue reading