Skip to content

Instantly share code, notes, and snippets.

find . -iname "*flac" -type f -exec mpv {} \;
@smooker
smooker / rtsp-simple-server.yml
Created November 9, 2022 09:28
rtsp-simple-server transcode
# General options
# sets the verbosity of the program; available values are "warn", "info", "debug".
logLevel: info
# destinations of log messages; available values are "stdout", "file" and "syslog".
logDestinations: [stdout]
# if "file" is in logDestinations, this is the file which will receive the logs.
logFile: rtsp-simple-server.log
# timeout of read operations.
readTimeout: 10s
# timeout of write operations.
@smooker
smooker / backup.sh
Created December 9, 2022 05:41
BASH backup script eval tar pigz
#!/bin/bash
TAR="/bin/tar --use-compress-program=\"pigz --best --recursive | pv\" -cf"
#echo $TAR
#exit
eval ${TAR[@]} ./etc.tar.gz /etc
eval ${TAR[@]} ./usr.share.tar.gz /usr/share
eval ${TAR[@]} ./smooker.config.tar.gz /home/smooker/.config
@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
#!/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 / 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)"
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>
#!/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
#!/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
#!/usr/bin/perl
use strict;
use warnings;
use List::MoreUtils qw(uniq);
open FILE, "/home/smooker/.hashcat/hashcat.potfile";
chomp(my @lines = <FILE>);