發表文章

目前顯示的是 7月, 2020的文章

Open Source RPA

圖片
1. download from https://ui.vision/ chrome, firefox, edge 2. download xmodule for x events from https://ui.vision/rpa/x 3. check demo code and you can add your own Macro

CentOS GRUB2 修改開機預設

圖片
1.Switch to root and show options at booting $ su - $ awk -F\'  '$1=="menuentry" {print $i++" : " $2}' /etc/grub2-efi.cfg or $ grep "^menuentry" /etc/grub2-efi.cfg | cut -d "'" -f2 (figure 1) 2. check saved entry at /etc/grub2.cfg $  grub2-editenv list 3.  set default, the first index is 0, if you want to change to second core $ grub2-set-default 1 參考資料 https://wiki.centos.org/zh-tw/HowTos/Grub2

NetCat(nc / ncat) on CentOS Linux

圖片
1. IF server IP : 192.168.10.10 , client IP: 192.168.10.78 Server: listen for connections $ ncat -l 8081 or bind a shell to tcp port 8081, limit access to hosts on local network, and limit the maximum nuber of simultaneous connection to 1 $ ncat --exec "/bin/bash" --max-conns 1 --allow 192.168.10.0/24 -l 8081 --keep-open 2. client connect to server port 8081 $ ncat 192.168.10.10 8081  # stand by typing any instruction 3. Send a file over TCP port 8081 from  client to server 192.168.10.10$ ncat -l 8081 > tmpfile.log 192.168.10.78$ ncat 192.168.10.10 8081 < tmpfile.log    # real file in this path 4. the udp option is -u, because ncat default protocol is tcp (Figure 1. snipping of Man page ) references https://www.linuxtechi.com/nc-ncat-command-examples-linux-systems/ https://www.tecmint.com/netcat-nc-command-examples/

Windows 10 Edge 我的最愛路徑

圖片
1.先從以下位址複製舊的我的最愛列,可能在舊硬碟的磁碟槽  2. 再於edge瀏覽器選擇匯入就瀏覽器設定,就可以匯入舊的我的最愛列 舊版IE我的最愛位址 參考 https://answers.microsoft.com/zh-hans/edge/forum/all/windows-10/609d2783-5756-432e-b436-2d63b90ff1b4

MS Windows 10 桌布預設位置

圖片
1. 開啟顯示隱藏檔。自訂桌面圖位置 C:\Users\AccountName\AppData\Roaming\Microsoft\Windows\Theme 移機後可從該處複製原本桌布圖過去。 2. 系統預設圖位置 參考資料 https://support.microsoft.com/zh-tw/help/13768/desktop-themes-featured

Firewalld reject IPs on CentOS 7/8

圖片
Use rich-rule $ firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='10.0.10.0/24' reject" or add port $ firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='10.0.10.0/24' port port='110' protocol='tcp' reject" $firewall-cmd --reload @reject dovecot postfix from external IP and accept internal IP firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="25" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="110" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 port port="143" protocol="tcp" reject' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address='192.168.0.0/16' accept' firewall-cmd --permanent --add-rich-rule='rule family=ipv4 source address='127...