Skip to content

Instantly share code, notes, and snippets.

Avatar

Zoltan Arvai azbesthu

  • Hungary, Szeged
View GitHub Profile
@azbesthu
azbesthu / totp.ps1
Created Jan 7, 2022 — forked from jonfriesen/totp.ps1
TOTP Client for PowerShell
View totp.ps1
#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 Jul 3, 2020
get kernel source for current rpi raspbian wheezy kernel
View get-kernel-source.sh
#!/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
View marlin2.0.5.3-skr13-20200525.patch
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 Oct 15, 2019
marlin 2.0.x patch for skr 1.3 based on tevo tarantula, hr4988 stepper 16x
View marlin2-skr13-20191015.patch
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 Aug 7, 2019
Raspi2 tvheadend & oscam setup
View gist:4d4b91cd32b565d7b23e
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 Apr 17, 2019
raspbmc rc5 hack for lirc and hid-aureal 0755:2626 w-01rn
View gist:4457423
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
View kafka installation and systemd
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 Jan 5, 2014
usb error on pi with 058f:9540 Alcor Micro Corp. card reader kernel log
View gist:8263231
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 Jun 25, 2017
defaultlib 'MSVCRTD' conflicts with use of other libs
View gist:10280233
[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
@azbesthu
azbesthu / gist:8648221
Last active Apr 9, 2017
chromium patches
View gist:8648221
diff --git a/patches/chromium/0003-Clang-libc-does-not-support-incomplete-types-in-temp.patch b/patches/chromium/0003-Clang-libc-does-not-support-incomplete-types-in-temp.patch
index ce3d9bb..048e30d 100644
--- a/patches/chromium/0003-Clang-libc-does-not-support-incomplete-types-in-temp.patch
+++ b/patches/chromium/0003-Clang-libc-does-not-support-incomplete-types-in-temp.patch
@@ -434,21 +434,25 @@ diff --git a/gpu/config/dx_diag_node.cc b/gpu/config/dx_diag_node.cc
index e0902ca..c1e84ae 100644
--- a/gpu/config/dx_diag_node.cc
+++ b/gpu/config/dx_diag_node.cc
-@@ -4,6 +4,8 @@
-