Skip to content

Instantly share code, notes, and snippets.

View azbesthu's full-sized avatar

Zoltan Arvai azbesthu

  • Hungary, Szeged
View GitHub Profile
@azbesthu
azbesthu / opnsense-i226-nic-tunables.txt
Created October 29, 2023 14:54 — forked from jorisvervuurt/opnsense-i226-nic-tunables.txt
OPNsense - Intel i226 NIC tunables
<item>
<tunable>net.inet.icmp.drop_redirect</tunable>
<value>1</value>
<descr/>
</item>
<item>
<tunable>net.isr.bindthreads</tunable>
<value>1</value>
<descr/>
</item>
@azbesthu
azbesthu / totp.ps1
Created January 7, 2022 12:09 — forked from jonfriesen/totp.ps1
TOTP Client for PowerShell
#requires -version 2
<#
.SYNOPSIS
Time-base One-Time Password Algorithm (RFC 6238)
.DESCRIPTION
This is an implementation of the RFC 6238 Time-Based One-Time Password Algorithm draft based upon the HMAC-based One-Time Password (HOTP) algorithm (RFC 4226). This is a time based variant of the HOTP algorithm providing short-lived OTP values.
.NOTES
Version: 1.0
@azbesthu
azbesthu / get-kernel-source.sh
Last active July 3, 2020 12:01
get kernel source for current rpi raspbian wheezy kernel
#!/bin/bash
REV=`zcat /usr/share/doc/raspberrypi-bootloader/changelog.Debian.gz | grep '* firmware as of' | head -n 1 | sed -e 's/\ \*\ firmware as of \(.*\)$/\1/'`
rm -rf rasp-tmp
mkdir -p rasp-tmp
mkdir -p rasp-tmp/linux
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/git_hash -O rasp-tmp/git_hash
wget https://raw.github.com/raspberrypi/firmware/$REV/extra/Module.symvers -O rasp-tmp/Module.symvers
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index f02e69ee5..025375c0f 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -110,7 +110,7 @@
* Select a secondary serial port on the board to use for communication with the host.
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
-//#define SERIAL_PORT_2 -1
+#define SERIAL_PORT_2 -1
@azbesthu
azbesthu / marlin2-skr13-20191015.patch
Last active October 15, 2019 22:25
marlin 2.0.x patch for skr 1.3 based on tevo tarantula, hr4988 stepper 16x
diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h
index 155605f60..eaadb2093 100644
--- a/Marlin/Configuration.h
+++ b/Marlin/Configuration.h
@@ -103,7 +103,7 @@
*
* :[-1, 0, 1, 2, 3, 4, 5, 6, 7]
*/
-#define SERIAL_PORT 0
+#define SERIAL_PORT -1
@azbesthu
azbesthu / gist:4d4b91cd32b565d7b23e
Last active August 7, 2019 21:46
Raspi2 tvheadend & oscam setup
Raspi2 tvheadend & oscam setup
Raspbian current
sudo apt-get update
sudo apt-get upgrade
# libs for tvheadend & oscam
sudo apt-get install build-essential subversion pcscd pcsc-tools libpcsclite-dev libccid libssl-dev debhelper libavahi-client-dev libcurl4-gnutls-dev liburiparser-dev git
@azbesthu
azbesthu / gist:4457423
Last active April 17, 2019 23:28
raspbmc rc5 hack for lirc and hid-aureal 0755:2626 w-01rn
some manual trial:
sudo lircd --driver=devinput --device=/dev/input/by-id/usb-www.irfmedia.com_W-01RN_USB_V3.1-event-kbd --output=/var/run/lirc/lircd1 --pidfile=/var/run/lirc/lircd1.pid --listen
sudo lircd --driver=devinput --device=/dev/input/by-id/usb-www.irfmedia.com_W-01RN_USB_V3.1-event-mouse --output=/var/run/lirc/lircd2 --pidfile=/var/run/lirc/lircd2.pid --connect=localhost:8765
=============================
keymap: /etc/lirc/lircd.conf
http://club.dx.com/forums/forums.dx/threadid.756584
# brand: dxremote
cd /opt
wget http://apache-mirror.rbc.ru/pub/apache/kafka/0.10.1.0/kafka_2.11-0.10.1.0.tgz
tar xvzf kafka_2.11-0.10.1.0.tgz
ln -s kafka_2.11-0.10.1.0/ kafka
vi /etc/systemd/system/kafka-zookeeper.service
[Unit]
Description=Apache Zookeeper server (Kafka)
Documentation=http://zookeeper.apache.org
@azbesthu
azbesthu / gist:8263231
Created January 5, 2014 01:42
usb error on pi with 058f:9540 Alcor Micro Corp. card reader kernel log
Jan 5 00:04:45 raspberrypi kernel: imklog 5.8.11, log source = /proc/kmsg started.
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] Initializing cgroup subsys cpu
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] Linux version 3.10.24+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #614 PREEMPT Thu Dec 19 20:38:42 GMT 2013
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] Machine: BCM2708
Jan 5 00:04:46 raspberrypi kernel: [ 0.000000] cma: CMA: reserved 16 MiB at 1b000000
Jan 5 00:04:46 raspberrypi kernel: [ 0.
@azbesthu
azbesthu / gist:10280233
Last active June 25, 2017 11:47
defaultlib 'MSVCRTD' conflicts with use of other libs
[4356/10029] LINK_EMBED mksnapshot.ia32.exe
FAILED: cmd /c (C:\Python27\python.exe gyp-win-tool link-wrapper environment.x86 link.exe /nologo /OUT:mksnapshot.ia32.exe /PDB:mksnapshot.i
a32.exe.pdb @mksnapshot.ia32.exe.rsp) && (if exist mksnapshot.ia32.exe.manifest del mksnapshot.ia32.exe.manifest) && if not "obj\src\3rdpart
y\chromium\v8\tools\gyp\mksnapshot.ia32.mksnapshot.ia32.exe.intermediate.manifest ..\..\..\src\3rdparty\chromium\build\win\compatibility.man
ifest"=="" ((C:\Python27\python.exe gyp-win-tool manifest-wrapper environment.x86 mt.exe -nologo -manifest obj\src\3rdparty\chromium\v8\tool
s\gyp\mksnapshot.ia32.mksnapshot.ia32.exe.intermediate.manifest ..\..\..\src\3rdparty\chromium\build\win\compatibility.manifest -outputresou
rce:mksnapshot.ia32.exe;1))
msvcprtd.lib(MSVCP100D.dll) : error LNK2005: "public: static double __cdecl std::numeric_limits<double>::max(void)" (?max@?$numeric_limits@N
@std@@SANXZ) already defined in v8_base.ia32.lib(v8_base.ia32.time.obj)
MSVCRTD.lib(MSVCR100D.dll) : error