This is the plugin for kubectl to pause/unpause KEDA's ScaledObjects and also to check their status.
WARNING: The plugin is coded with AI.
- bash
- kubectl
- jq
| """ | |
| MxGraph Primitives | |
| <move x="0" y="0"/> | |
| <line x="0" y="0"/> | |
| <quad x1="0" y1="0" x2="0" y2="0"/> | |
| <curve x1="0" y1="0" x2="0" y2="0" x3="0" y3="0"/> | |
| Updated with changed from https://gist.github.com/dabenny | |
| """ | |
| from xml.dom import minidom | |
| import re |
You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228
This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders
sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/logClamAV can be used in a few different ways. Most importantly, it provides the ability to scan files in realtime (on-access) or to scan the file system periodically.
I tried configuring ClamAV to both perform on-access virus scanning and to perform nightly full filesystem scanning. Using the on-access option did not prove to be very useful, however a scheduled full system scan seems to be of value.
Here is my story.
If you're encountering ping github.com failing inside WSL with a Temporary failure in name resolution, you're not alone — this has been a long-standing issue, especially when using VPNs or corporate networks.
This issue is now fixed robustly with DNS tunneling, which preserves dynamic DNS behavior and avoids limitations like WSL’s former hard cap of 3 DNS servers in /etc/resolv.conf.
DNS tunneling is enabled by default in WSL version 2.2.1 and later, meaning that if you're still seeing DNS resolution issues, the first and most effective fix is simply to upgrade WSL. Upgrading WSL updates the WSL platform itself, but does not affect your installed Linux distributions, apps, or files.
To upgrade WSL, follow these steps,
| theory | |
| Consensus_Demo | |
| imports | |
| Network | |
| begin | |
| datatype 'val msg | |
| = Propose 'val | |
| | Accept 'val |
| <?php | |
| // For laravel 5 based systems | |
| // /path/to/project/app/Console/Commands/AllowSSHFromIP.php | |
| namespace App\Console\Commands; | |
| use Aws\Ec2\Ec2Client; | |
| use Carbon\Carbon; | |
| use Illuminate\Console\Command; |
| browser.commands.onCommand.addListener(async (command) => { | |
| let num = parseInt(command.substr(9, 10)) - 1; | |
| let tabs = await browser.tabs.query({currentWindow: true}); | |
| if (tabs.length < num) { | |
| return; | |
| } | |
| browser.tabs.update(tabs[num].id, {active: true}); | |
| }); |
| #!/bin/bash | |
| user_name="$1" | |
| echo "Removing user: ${user_name}" | |
| echo "Deleting Access Keys:" | |
| keys=("$(aws iam list-access-keys --user-name "${user_name}" | jq -r '.AccessKeyMetadata[] | .AccessKeyId')") | |
| if [[ "${#keys}" -gt "0" ]]; then | |
| # shellcheck disable=SC2068 |