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
| gh-models-call () | |
| { | |
| model_name="$1" | |
| token="$2" | |
| max_tokens="${3:-1000}" | |
| temp="${4:-1}" | |
| if [[ -z "$model_name" || -z "$token" ]]; then | |
| echo "Usage: $0 <model_name> <token>" >&2 | |
| echo "Example: echo 'Hello!' | $0 gpt-4o \$GITHUB_TOKEN" >&2 |
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 | |
| refresh-aws-keys () { | |
| if [[ "$1" == "-h" || "$1" == "--help" || -z $1 ]]; then | |
| echo "usage: refresh-aws-keys <aws_profile>" | |
| echo "" | |
| echo "refreshes AWS SSO credentials for the given profile if expired or missing." | |
| echo "updates ~/.aws/credentials with new keys." | |
| echo "" | |
| return 0 | |
| fi |
A viral capsid protein is a structural protein that forms the capsid, which is the protein shell enclosing and protecting the genetic material (DNA or RNA) of a virus. The capsid plays a critical role in the viral life cycle and is essential for infectivity.
-
Composition:
- Capsids are typically composed of repeating units of capsid proteins, which self-assemble into highly symmetrical structures.
- The arrangement can be icosahedral, helical, or more complex, depending on the virus.
-
Functions:
- Protection: Shields the viral genome from degradation by enzymes (nucleases) or environmental factors.
- Host Interaction: Facilitates attachment to host cells by interacting with specific receptors, enabling viral entry.
- Genome Delivery: Assists in delivering the viral genome into the host cell, often by disassembling or rearranging during infection.
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
| remind () | |
| { | |
| if [ $1="-h" ] || [ $1="--help" ]; then | |
| echo "usage: remind <command_prefix>" | |
| return 0 | |
| fi | |
| if [ -z "$1" ]; then | |
| echo "usage: remind <command_prefix>">&2 | |
| return 1 |
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
| { | |
| "$schema": "https://zed.dev/schema/themes/v0.1.0.json", | |
| "name": "Darkened", | |
| "author": "Roberto Montalti", | |
| "themes": [{ | |
| "name": "Darkened", | |
| "appearance": "dark", | |
| "style": { | |
| "background.appearance": "opaque", |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| typedef bool b8; | |
| typedef unsigned int u32; | |
| struct _None {}; | |
| #define None (_None{}); | |
| template<typename T> | |
| struct Option { |
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 | |
| git clone https://github.com/cilynx/rtl88x2bu.git | |
| cd rtl88x2bu | |
| VER=$(sed -n 's/\PACKAGE_VERSION="\(.*\)"/\1/p' dkms.conf) | |
| sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER} | |
| sudo dkms add -m rtl88x2bu -v ${VER} | |
| sudo dkms build -m rtl88x2bu -v ${VER} | |
| sudo dkms install -m rtl88x2bu -v ${VER} | |
| sudo modprobe 88x2bu |
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
| /** | |
| * Merges two arrays by concatenating their elements uniquely using `new Set(...)`. | |
| * | |
| * @param {Array} a1 - The first array to merge. | |
| * @param {Array} a2 - The second array to merge. | |
| * @returns {Array} A new array containing elements from both input arrays. | |
| */ | |
| const mergeArray = (a1, a2) => Array.from(new Set([...a1, ...a2])) | |
| /** |
NewerOlder