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
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
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
View gist:20bf514ff2c2148efd6bc69d375aca5c
dpkg-buildpackage: source package tvheadend
dpkg-buildpackage: source version 4.1
dpkg-buildpackage: source distribution unstable
dpkg-buildpackage: source changed by Andreas Öman <andreas@tvheadend.org>
dpkg-buildpackage: host architecture armhf
dh clean
dh_testdir
dh_clean
rm -f debian/tvheadend.substvars
rm -f debian/tvheadend.*.debhelper
View raspbian gcc
#define __DBL_MIN_EXP__ (-1021)
#define __HQ_FBIT__ 15
#define __UINT_LEAST16_MAX__ 65535
#define __ARM_SIZEOF_WCHAR_T 32
#define __ATOMIC_ACQUIRE 2
#define __SFRACT_IBIT__ 0
#define __FLT_MIN__ 1.1754943508222875e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __UFRACT_MAX__ 0XFFFFP-16UR
#define __UINT_LEAST8_TYPE__ unsigned char
@azbesthu
azbesthu / gist:851e4467be5f6acd9b27
Last active Sep 7, 2015
allwinner h3 resources
View gist:851e4467be5f6acd9b27
https://patchwork.ozlabs.org/project/devicetree-bindings/list/?submitter=65627
http://forum.armbian.com/index.php/topic/6-sdk-how-to-compile-your-own-kernel-and-sd-image/#entry629
https://raymii.org/s/articles/Olimex_OlinuXino_A20_Lime2_Kernel_3.19_uBoot_Debian_7_image_building.html
http://linux-sunxi.org/Linux_mainlining_effort
View gist:f4b75159d56a478c2b4c
pendrive, ubuntu 64bit.
universal usb installer / rufus iso
bootia32.efi
menuentry "Try Ubuntu without installing" {
set gfxpayload=keep
linux /casper/vmlinuz.efi file=/cdrom/preseed/ubuntu.seed boot=casper nomodeset ---
initrd /casper/initrd.lz
"
View proba.sh
PCSENSOR=/usr/local/bin/pcsensor
while true
do
outtmp=`${PCSENSOR} -cm`
if [ $? -eq 0 ]; then
output=`echo $outtmp | awk '{print $1;}'`
echo $output
#echo "ok"
View temper.sh
#!/bin/sh
# Where is pcsensor located?
PCSENSOR="/usr/local/bin/pcsensor"
if [ ! -e ${PCSENSOR} ]; then
echo "Cannot find pcsensor executable" >&2
exit -1
fi
case $1 in