sans_souciの日記

無憂茶房

2019-04-15から1日間の記事一覧

postgresql 9.6 from source on centos 7.x

ソースからPostgresql 9.6 を CentOS 7.x にインストールした後に実施する操作 サービスとして取り扱えるように次のように設定する。 保存先ディレクトリ: * /etc/systemd/system ファイル名: * postgresql.service [Unit] Description=PostgreSQL database …

excel/vba で outlook の メールを操作

事前に参照設定を読み込んでおく必要あり、次の二つ。 Microsoft Scripting Runtime Microsoft Outlook x.0 Object Library(最新) お借りしたソース: URL: https://www.fastclassinfo.com/entry/vba_outlook_receivedmail_analysis URL: http://officevba.in…

sample/パスワード生成/powershell

パスワード生成 sample add-type -AssemblyName System.Web $mysmall=0 $mybig=0 $mysign = 0 $mynumber = 0 $myother = 0 #$myarray = "abcABC!@#$%^&*()_-+=[{]};:<>|./?" -split "" #$myarray = "abcABC%" -split "" $xresult = ([System.Web.Security.Me…

sample source bash/chpasswd

chpasswd/bash サンプル/仕掛中 素/ myfinish.txt 192.168.0.81,beforepwd01,afterpwd01 192.168.0.82,beforepwd02,afterpwd02 実行 cat myfinish.txt | awk -F',' \ '{printf \ "echo \x22$(date +%%FT%%T) The password of %s is being changed...\x22 ; \…