This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
casy na seriovem portu: https://www.kumari.net/index.php/random/37-determing-unknown-baud-rate | |
Odmeroval jsem je Saleae logickym analyzatorem | |
*/ | |
int last_baud_rate = 9600; | |
int timeout = 1000; // [ms] | |
int recPin = 0; //the pin receiving the serial input data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo %DUPLICATI__PARSED_RESULT%> C:\log.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SCHTASKS /Create /RU "System" /SC HOURLY /MO 1 /TN "Windows update check" /TR "cscript \"C:\zabbix\scripts\winupdate.vbs\"" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
martin@martin:~/test$ script=$(curl -s http://localhost:8080/test.sh) | |
martin@martin:~/test$ sign=$(curl -s http://localhost:8080/test.sh.asc) | |
martin@martin:~/test$ | |
martin@martin:~/test$ echo "$script" | |
#!/bin/bash | |
echo "ok" | |
martin@martin:~/test$ echo "$sign" | head -n1 | |
-----BEGIN PGP SIGNATURE----- | |
martin@martin:~/test$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- copy: | |
dest: /etc/apt/preferences.d/duplicity | |
content: | | |
Package: duplicity | |
Pin: release v>=0.7.11 | |
Priority: 101 | |
- apt: | |
name: duplicity | |
state: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
martin / # cat /tmp/crontest | |
* * * * * root logger "CRONTEST" | |
martin / # | |
martin / # crontab /tmp/crontest | |
martin / # | |
martin / # tail -F /var/log/syslog | grep "CRONTEST" | |
Apr 25 14:33:01 martin CRON[12350]: (root) CMD (root logger "CRONTEST") | |
Apr 25 14:34:01 martin CRON[12472]: (root) CMD (root logger "CRONTEST") | |
^C | |
martin / # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
become: yes | |
remote_user: martin | |
vars: | |
ips_a: | |
- 1.2.3.4 | |
- 4.5.6.7 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
martin@martin:~/gpgtest$ cat parametry_klice.txt | |
Key-Type: RSA | |
Key-Length: 4096 | |
Subkey-Type: 1 | |
Subkey-Length: 4096 | |
Name-Real: Podepisovani SSH | |
Name-Email: root@localhost | |
Expire-Date: 0 | |
martin@martin:~/gpgtest$ $ | |
martin@martin:~/gpgtest$ gpg --batch --gen-key parametry_klice.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LAN_IP="192.168.1.1" | |
LAN_MASK="255.255.255.0" | |
LAN_GW="192.168.1.254" | |
echo "hello world" | wc -w | |
wc -w <<< "hello world" |