This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use bigint; | |
my $a1 = $ARGV[0]; | |
if ($a1 =~ m/0x/) { | |
$a1 = hex($a1); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use List::MoreUtils qw(uniq); | |
use Sort::Key::Natural qw( natsort ); | |
use strict; | |
use warnings; | |
die "Usage: $0 [LINE LIST]\n" if @ARGV != 1; | |
my $input = $ARGV[0]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/net/slirp.c b/net/slirp.c | |
index 85ae430..0f7c1aa 100644 | |
--- a/net/slirp.c | |
+++ b/net/slirp.c | |
@@ -1004,8 +1004,8 @@ static int slirp_smb(SlirpState* s, const char *exported_dir, | |
); | |
fclose(f); | |
- smb_cmdline = g_strdup_printf("%s -l %s -s %s", | |
- CONFIG_SMBD_COMMAND, s->smb_dir, smb_conf); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/net/slirp.c b/net/slirp.c | |
index eb9a456ed..85ae4308b 100644 | |
--- a/net/slirp.c | |
+++ b/net/slirp.c | |
@@ -970,6 +970,7 @@ static int slirp_smb(SlirpState* s, const char *exported_dir, | |
fprintf(f, | |
"[global]\n" | |
"private dir=%s\n" | |
+ "min protocol=NT1\n" | |
"interfaces=127.0.0.1\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use List::MoreUtils qw(uniq); | |
open FILE, "/home/smooker/.hashcat/hashcat.potfile"; | |
chomp(my @lines = <FILE>); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
NewerOlder