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
@tuxmartin
tuxmartin / compile.sh
Created Nov 8, 2018
Zabbix agent a proxy 4.0 na Debianu 7
View compile.sh
apt-get install curl sudo build-essential libsqlite3-dev libxml2-dev libsnmp-dev libcurl4-openssl-dev libpcre3-dev
groupadd zabbix
useradd -g zabbix zabbix
cd /usr/local/src/
wget https://netix.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/4.0.1/zabbix-4.0.1.tar.gz
tar xzvf zabbix-4.0.1.tar.gz
cd /usr/local/src/zabbix-4.0.1/
./configure --help
./configure -prefix=/usr --enable-proxy --enable-agent --with-openssl --with-sqlite3 --with-net-snmp --with-libcurl --with-libxml2 --enable-ipv6 --with-ssh2 --sysconfdir=/etc/zabbix --bindir=/usr/bin
make
View HP M176n MIB
martin@martin:~$ snmpwalk -v 1 -mALL -c public 10.67.1.7
Bad operator (INTEGER): At line 73 in /usr/share/mibs/ietf/SNMPv2-PDU
Unlinked OID in IPATM-IPMC-MIB: marsMIB ::= { mib-2 57 }
Undefined identifier: mib-2 near line 18 of /usr/share/mibs/ietf/IPATM-IPMC-MIB
Expected "::=" (RFC5644): At line 493 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Expected "{" (EOF): At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad object identifier: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
Bad parse of OBJECT-IDENTITY: At line 651 in /usr/share/mibs/iana/IANA-IPPM-METRICS-REGISTRY-MIB
SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.26696.1
View gist:254323e9dd66c1ec5e79e7061d4b679b
root@testphp:/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.5 (stretch)
Release: 9.5
Codename: stretch
root@testphp:/# mysql -u test -ptest -e "SHOW DATABASES;"
+--------------------+
| Database |
+--------------------+
View ipsec.conf
# /etc/ipsec.conf
config setup
charondebug="ike 1, knl 1, cfg 0"
uniqueids=no
conn ikev2-vpn
auto=add
compress=no
type=tunnel
@tuxmartin
tuxmartin / gist:0a354c779dd21c805254e6c158b79f33
Created Oct 18, 2018
strongswan - Referencing other Sections
View gist:0a354c779dd21c805254e6c158b79f33
# https://wiki.strongswan.org/projects/strongswan/wiki/StrongswanConf#Referencing-other-Sections
conn-ikev2-vpn {
dpdaction=clear
dpddelay=35s
dpdtimeout=2000s
keyexchange=ikev2
auto=add
rekey=no
reauth=no
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
tuxmartin / rc.py
Last active Aug 13, 2018
Rocket.Chat REST API: login, send message, update message
View rc.py
import requests
import json
import time
import datetime
USER="notificator"
PASS="XXXXXXXXXXXXXXXXX"
payload_login = {
"user": USER,
@tuxmartin
tuxmartin / arduino_baud_rate_detection.ino
Last active Aug 8, 2018
arduino_baud_rate_detection
View arduino_baud_rate_detection.ino
/*
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
View rdp hack
REG ADD HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\CredSSP\Parameters\ /v AllowEncryptionOracle /t REG_DWORD /d 2
You can’t perform that action at this time.