вторник, 27 мая 2014 г.

xfreerdp: SSL problem

Problem:
xfreerdp 192.168.0.100
connected to 192.168.0.150:3389
Password: 
SSL_read: Failure in SSL library (protocol error?)
Authentication failure, check credentials.
If credentials are valid, the NTLMSSP implementation may be to blame.

Solution:
xfreerdp --no-nla 192.168.0.100
connected to 192.168.0.100 ....
...

понедельник, 14 апреля 2014 г.

Add & Del Windows firewall rules for zabbix (10050 port)

  • Add
    netsh advfirewall firewall add rule name="zabbix" dir=in action=allow profile=domain description="zabbix agent 10050" enable=yes localport=10050 protocol=tcp
  • Del
    netsh advfirewall firewall del rule name="zabbix"

пятница, 11 апреля 2014 г.

Bash & PowerShell: неожиданно

Создать файл test.txt в предварительно созданой иерархие 1 -> 2 -> 3 -> 4
.
|_1
--|_2
----|_3
------|_4
--------|_test.txt
  • Bash:
    i="1/2/3/4" && mkdir -p $i && touch $i/test.txt
  • PowerShell
    New-Item -Type file -Force 1\2\3\4\test.txt

Upd.1:
Найдена фунцкия для bash:
mkfile() { mkdir -p "$1" && touch "$1"/"$2" }
  • exmpl:
    mkfile 1/2/3/4 test.txt