Skip to content

Instantly share code, notes, and snippets.

@smooker
smooker / gist:0474c46e66b6c49e702f2c81d69ed196
Last active May 27, 2024 08:37
TF 2.17 bazel androiud build
#!/bin/bash
bazel build -c opt --cxxopt=--std=c++17 --config=android_arm64 --fat_apk_cpu=x86,x86_64,arm64-v8a,armeabi-v7a --define=android_dexmerger_tool=d8_dexmerger --define=android_incremental_dexing_tool=d8_dexbuilder --define=xnn_enable_arm_i8mm=false --define=xnn_enable_avx512amx=false --define=xnn_enable_avxvnni=false --verbose_failures //tensorflow/lite/java:tensorflow-lite
postup() {
ewarn "postup entry for interface ${IFACE}"
# This function could be used, for example, to register with a
# dynamic DNS service. Another possibility would be to
# send/receive mail once the interface is brought up.
# /etc/init.d/named restart
# if [ "${IFACE}"="eth1.3" ]
# then
# sysctl net.ipv6.conf.eth1.3.disable_ipv6=1
@smooker
smooker / build.sh
Last active March 7, 2024 12:14
TensorFlow build from source on Gentoo
#!/bin/bash
mkdir ~/src/tf
cd ~/src/tf
git clone --recursive https://github.com/tensorflow/tensorflow.git
git clone --recursive https://github.com/bazelbuild/bazel.git #not needed. there is baselisk in portage
### THIS HAS TO BE CLEANED
emerge dev-build/bazelisk
smooker@shd3 ~/src/rtl-wmbus/build $ rtl_sdr -f 868.95M -g 44 -p 51 -s 1.6e6 - | ./rtl_wmbus
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
[R82XX] PLL not locked!
Sampling at 1600000 S/s.
Tuned to 868950000 Hz.
Tuner gain set to 43.90 dB.
#!/usr/bin/perl
use strict;
use warnings;
use List::MoreUtils qw(uniq);
open FILE, "/home/smooker/.hashcat/hashcat.potfile";
chomp(my @lines = <FILE>);
#!/bin/bash
qemu-mips -L "/mnt/md127/home/smooker/src/openwrt/staging_dir/target-mips_24kc_musl/root-ath79/" -E LD_LIBRARY_PATH="../pcre2/.li$
s/:../aircrack-ng/.libs/:../../openssl/" ./.libs/airodump-ng
#!/bin/bash
#smooker@shd2 /mnt/md127/home/smooker/src/openssl $ cat go.sh
#!/bin/bash
./Configure linux-mips32
make CC=mips-openwrt-linux-gcc -j20
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc
index 23bd6b385..6db943bce 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc
@@ -17,6 +17,9 @@
#include "float.hh"
#include "address.hh"
+#include <limits.h>
+#include <limits>
@smooker
smooker / nvidia-cuda-toolkit-12.0.0.ebuild
Created January 9, 2023 07:33
cuda 12.0 for gentoo w/o memcheck !?
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit check-reqs toolchain-funcs unpacker
DRIVER_PV="525.60.13"
DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
#!/bin/bash
#iptables -A LOG_DROP -j LOG --log-prefix "INPUT:DROP: " --log-level 6
#
iptables -F LAI4
iptables -F LAO4
iptables -F LAF4
iptables -F LDI4
iptables -F LDO4
iptables -F LDF4