cargo run run memgpt.modelfile
| #!/usr/bin/env bash | |
| # Default values for percentages | |
| DEFAULT_WIRED_LIMIT_PERCENT=85 | |
| DEFAULT_WIRED_LWM_PERCENT=75 | |
| # Read input parameters or use default values | |
| WIRED_LIMIT_PERCENT=${1:-$DEFAULT_WIRED_LIMIT_PERCENT} | |
| WIRED_LWM_PERCENT=${2:-$DEFAULT_WIRED_LWM_PERCENT} |
| #!/usr/bin/env bash | |
| set -e | |
| # --- CONFIG --- | |
| APPIMAGE_PATH="$1" | |
| INSTALL_DIR="/usr/local/bin" | |
| # --- CHECKS --- | |
| if [ -z "$APPIMAGE_PATH" ]; then | |
| echo "Usage: sudo ./install-appimage.sh <path-to-AppImage>" |
I hereby claim:
To claim this, I am signing this object:
| javascript:(function() { const createCommentElement = (comment, depth) => { const commentWrapper = document.createElement('div'); commentWrapper.style.paddingLeft = (depth * 20) + 'px'; commentWrapper.style.marginBottom = '10px'; commentWrapper.style.marginLeft = '10px'; commentWrapper.style.color = '#333'; commentWrapper.style.background = '#f6f6ef'; commentWrapper.style.fontFamily = 'Verdana, Geneva, sans-serif'; commentWrapper.style.fontSize = '14px'; const toggleButton = document.createElement('button'); toggleButton.textContent = '[-]'; toggleButton.style.marginRight = '10px'; toggleButton.style.background = 'none'; toggleButton.style.border = 'none'; toggleButton.style.color = '#888'; toggleButton.style.cursor = 'pointer'; commentWrapper.appendChild(toggleButton); const commentText = document.createElement('span'); const decoded = new DOMParser().parseFromString(comment.text, 'text/html').body.textContent || ''; const author = comment.author || ' |
| // Serialize encodes the given value into an any.Any protobuf message. | |
| func (serializer) Serialize(v interface{}) (*any.Any, error) { | |
| scratchBuf := make([]byte, binary.MaxVarintLen64) | |
| switch val := v.(type) { | |
| case int: | |
| nBytes := binary.PutVarint(scratchBuf, int64(val)) | |
| return &any.Any{ | |
| TypeUrl: "i", | |
| Value: scratchBuf[:nBytes], | |
| }, nil |
| type Worker struct { | |
| cfg WorkerConfig | |
| masterConn *grpc.ClientConn | |
| masterCli proto.JobQueueClient | |
| } | |
| // NewWorker creates a new Worker instance with the specified configuration. | |
| func NewWorker(cfg WorkerConfig) (*Worker, error) { | |
| if err := cfg.Validate(); err != nil { |
| https://github.com/EFForg/https-everywhere/blob/master/src/chrome/content/rules/Href.li.xml |