This file contains hidden or 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
| # How to determine if a bash variable is empty? | |
| # A variable in bash (and any POSIX-compatible shell) can be in one of three states: | |
| # | |
| # unset | |
| # set to the empty string | |
| # set to a non-empty string | |
| # Most of the time you only need to know if a variable is set to a non-empty string, but occasionally it's important to distinguish between unset and set # to the empty string. | |
| # |
Contains notes about encryption support in Mellanox ConnectX adapters.
With a ConnectX-4 Lx or ConnectX-5 noticed that the ethtool statistics had some counters with tls in their names, so wasn't sure if that meant the adapters has hardware offload support for encryption.
Starting at ConnectX SmartNICs and looking at the product features:
- ConnectX-4 Lx says ENCRYPTION N/A
This file contains hidden or 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 | |
| # | |
| # Show user stats (commits, files modified, insertions, deletions, and total | |
| # lines modified) for a repo | |
| git_log_opts=( "$@" ) | |
| git log "${git_log_opts[@]}" --format='author: %ae' --numstat \ | |
| | tr '[A-Z]' '[a-z]' \ | |
| | grep -v '^$' \ |
This file contains hidden or 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/env python2 | |
| import SimpleHTTPServer | |
| import SocketServer | |
| import logging | |
| PORT = 8000 | |
| class GetHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): |
This file contains hidden or 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
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
This file contains hidden or 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/env python | |
| ############################################################################## | |
| # | |
| # Copyright (C) Zenoss, Inc. 2013, all rights reserved. | |
| # | |
| # This content is made available according to terms specified in | |
| # License.zenoss under the directory where your Zenoss product is installed. | |
| # | |
| ############################################################################## |
This file contains hidden or 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 | |
| # As the "bufferbloat" folks have recently re-discovered and/or more widely | |
| # publicized, congestion avoidance algorithms (such as those found in TCP) do | |
| # a great job of allowing network endpoints to negotiate transfer rates that | |
| # maximize a link's bandwidth usage without unduly penalizing any particular | |
| # stream. This allows bulk transfer streams to use the maximum available | |
| # bandwidth without affecting the latency of non-bulk (e.g. interactive) | |
| # streams. |
NewerOlder