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")" ' |
Hi:
perl -e 'print "hello world!\n"'
A simple filter:
perl -ne 'print if /REGEX/'
Filter out blank lines (in place):
| #!/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/) |
| Loading: T T T ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# | |
| ################################################################# |
| 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 |
| #!/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 |
| #!/bin/bash | |
| # Let's "secure" even the script for you :) | |
| sudo -v | |
| function ok() { | |
| echo -e "[OK] "$1 | |
| } | |
| function bot() { |
| # 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 |
| # copy to `.config` and run `make defconfig` | |
| # This builds for all ipq807x targets. | |
| # To use this config, you must build from https://github.com/qosmio/openwrt-ipq | |
| # | |
| # 1. `git clone https://github.com/qosmio/openwrt-ipq` | |
| # 2. `cd openwrt-ipq` | |
| # 3. Dowload this config to `openwrt-ipq`, name it ".config" | |
| # 4. `make defconfig` | |
| # | |
| # use `make menuconfig` to further customize building just for your target or adding custom packages. |
| 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 |