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
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
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
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
#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 September 7, 2015 21:14
allwinner h3 resources
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
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
"
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"