Skip to content

Instantly share code, notes, and snippets.

@qosmio
qosmio / series
Last active February 29, 2024 01:36
mac80211-NSS-minimal-series
build/000-fix_kconfig.patch
build/001-fix_build.patch
build/002-change_allconfig.patch
build/003-remove_bogus_modparams.patch
build/004-fix-kconf-compiling.patch
build/012-kernel_build_check.patch
build/060-no_local_ssb_bcma.patch
build/070-remove-broken-wext-select.patch
build/080-resv_start_op.patch
build/090-bcma-otp.patch
@qosmio
qosmio / config.c
Last active February 18, 2024 22:37
IPQ807x dynalink dl-wrx36 build.config
# copy to `.config` and run `make defconfig`
# This builds for all ipq807x targets, use `make menuconfig` to customize building just for your target
CONFIG_TARGET_qualcommax=y
CONFIG_TARGET_qualcommax_ipq807x=y
CONFIG_TARGET_MULTI_PROFILE=y
CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_arcadyan_aw1000=y
CONFIG_TARGET_DEVICE_PACKAGES_qualcommax_ipq807x_DEVICE_arcadyan_aw1000="kmod-ath11k-ahb"
CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_buffalo_wxr-5950ax12=y
CONFIG_TARGET_DEVICE_PACKAGES_qualcommax_ipq807x_DEVICE_buffalo_wxr-5950ax12="kmod-ath11k-ahb"
CONFIG_TARGET_DEVICE_qualcommax_ipq807x_DEVICE_dynalink_dl-wrx36=y
@qosmio
qosmio / useful-one-liners.sh
Created April 28, 2023 08:36 — forked from johnnypea/useful-one-liners.sh
Useful one liners
# Run the last command as root
sudo !!
# Serve current directory tree at http://$HOSTNAME:8000/
python -m SimpleHTTPServer
# Save a file you edited in vim without the needed permissions
:w !sudo tee %
# change to the previous working directory
cd -
# Runs previous command but replacing
^foo^bar
@qosmio
qosmio / hax.sh
Created November 5, 2022 06:49 — forked from iGlitch/hax.sh
macOS provisioning, hardening, tweaking, whatever script - no more phone home
#!/bin/bash
# Let's "secure" even the script for you :)
sudo -v
function ok() {
echo -e "[OK] "$1
}
function bot() {
@qosmio
qosmio / Disable-Ventura-Bloatware.sh
Created November 5, 2022 02:30 — forked from b0gdanw/Disable-Ventura-Bloatware.sh
Disable Ventura Bloatware
#!/bin/zsh
#Credit: Original idea and script disable.sh by pwnsdx https://gist.github.com/pwnsdx/d87b034c4c0210b988040ad2f85a68d3
#Disabling unwanted services on macOS 13 Ventura
#Disabling SIP is required ("csrutil disable" from Terminal in Recovery)
#Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist
#To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist & disabled.501.plist and reboot
# user
diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index c2e4eb2d99..30ec7d78ff 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -1378,7 +1378,7 @@ CONFIG_DEBUG_KERNEL=y
# CONFIG_DEBUG_ZBOOT is not set
# CONFIG_DECNET is not set
# CONFIG_DEFAULT_CODEL is not set
-CONFIG_DEFAULT_CUBIC=y
+CONFIG_DEFAULT_BBR=y
@qosmio
qosmio / r7800 5.15 NSS build
Created September 7, 2022 10:49
Boot log for NSS build for r7800 on 5.15
Loading: T T T #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
@qosmio
qosmio / iwchan.awk
Created January 13, 2021 20:36
Select wireless channel automatically
#!/usr/bin/awk -f
# Coded by: Vladislav Grigoryev <vg[dot]aetera[at]gmail[dot]com>
# License: GNU General Public License (GPL) version 3+
# Description: Select wireless channel automatically
function get_iwphy() {
cmd = "iw phy"
while(cmd | getline) {
if($0 ~ /^\s*Wiphy\s/)
@qosmio
qosmio / README.md
Created July 25, 2020 19:17 — forked from joyrexus/README.md
Perl one-liners

Hi:

perl -e 'print "hello world!\n"'

A simple filter:

perl -ne 'print if /REGEX/'

Filter out blank lines (in place):

#!/bin/bash
PORT=62419
OUTFILE=/tmp/db2_was.log
SLEEP=30
echo " TIMESTAMP | PRT | CONNECTION_STATES"
echo "------------------------ ------ ---------------------------------------------------"
while true
do
netstat -ant | grep -v grep |grep $PORT|
awk -v port=$PORT -v date=" $(date +"%Y-%m-%d %r")" '