Skip to content

Instantly share code, notes, and snippets.

Martin Vancl tuxmartin

Block or report user

Report or block tuxmartin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c2bec306f7dc2e558023a4ffef722873
root@topeni:/home/vancl# rtl_433 -G
Registering protocol [1] "Silvercrest Remote Control"
Registering protocol [2] "Rubicson Temperature Sensor"
Registering protocol [3] "Prologue Temperature Sensor"
Registering protocol [4] "Waveman Switch Transmitter"
Registering protocol [5] "Steffen Switch Transmitter"
Registering protocol [6] "ELV EM 1000"
Registering protocol [7] "ELV WS 2000"
Registering protocol [8] "LaCrosse TX Temperature / Humidity Sensor"
Registering protocol [9] "Template decoder"
tuxmartin /
Last active Aug 13, 2018
Rocket.Chat REST API: login, send message, update message
import requests
import json
import time
import datetime
payload_login = {
"user": USER,
tuxmartin / arduino_baud_rate_detection.ino
Last active Aug 8, 2018
View arduino_baud_rate_detection.ino
casy na seriovem portu:
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
View rdp hack
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2
View gist:f5d900d82f3802691eae5b49dfa291bd
SCHTASKS /Create /RU "System" /SC HOURLY /MO 1 /TN "Windows update check" /TR "cscript \"C:\zabbix\scripts\winupdate.vbs\""
martin@martin:~/test$ script=$(curl -s http://localhost:8080/
martin@martin:~/test$ sign=$(curl -s http://localhost:8080/
martin@martin:~/test$ echo "$script"
echo "ok"
martin@martin:~/test$ echo "$sign" | head -n1
View ansible apt pin.yaml
- copy:
dest: /etc/apt/preferences.d/duplicity
content: |
Package: duplicity
Pin: release v>=0.7.11
Priority: 101
- apt:
name: duplicity
state: latest
View gist:4b2894d008a08999776306b67abc0e42
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")
martin / #
tuxmartin / test.yml
Created Apr 19, 2018
ansible - strovani dvo poli, zda maji stejne prvky
View test.yml
- hosts: all
become: yes
remote_user: martin
You can’t perform that action at this time.