Skip to content

Instantly share code, notes, and snippets.

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
@smooker
smooker / convert3.sh
Created December 21, 2022 04:49
3.6GB to 915MB video size reduction without quality loss
#!/bin/bash
#ffmpeg -y -v debug -i $1 -max_muxing_queue_size 9999 -c:v hevc_nvenc -preset p7 -an $2
#-filter:v "setpts=0.5*PTS"
#ffmpeg -y -v debug -i $1 -max_muxing_queue_size 9999 -c:v hevc_nvenc -preset p7 -an -r 30 -filter:v "setpts=0.02*PTS" $2
#ffmpeg -y -loglevel info -threads 4 -hwaccel nvdec -i $1 -max_muxing_queue_size 9999 -c:v hevc_nvenc -preset p7 -an -r 30 -filter:v "select=gt(scene\,0.01),metadata=print,setpts=0.02*PTS" -flush_packets 1 $2
#ffmpeg -y -loglevel info -threads 4 -hwaccel nvdec -i $1 -max_muxing_queue_size 9999 -c:v hevc_nvenc -preset p7 -an -filter:v "setpts=0.01*PTS" -filter:a "atempo=100.0" -r 60 -flush_packets 1 $2
#ffmpeg -y -loglevel info -threads 4 -hwaccel nvdec -i $1 -max_muxing_queue_size 9999 -c:v hevc_nvenc -preset p7 -filter_complex "[0:v]fps=10,setpts=0.1*PTS[v];[0:a]atempo=1.0[a]" -map "[v]" -map "[a]" -r 10 -flush_packets 1 $2