name: Git Workflow Assistant description: Streamline your Git workflow with AI-powered commit messages, branch management, and repository insights homepage: https://github.com/devtools/git-workflow-assistant user-invocable: true disable-model-invocation: false metadata: openclaw: requires: node: ">=16.0.0"
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
| ARG FUNCTION_RUNTIME | |
| FROM mikesir87/aws-cli as code | |
| ARG FUNCTION_NAME | |
| ARG AWS_DEFAULT_REGION | |
| ARG AWS_ACCESS_KEY_ID | |
| ARG AWS_SECRET_ACCESS_KEY | |
| RUN wget -O function.zip `aws lambda get-function --function-name $FUNCTION_NAME --query 'Code.Location' --output text` |
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
| import pickle | |
| import numpy as np | |
| import multiprocessing as mp | |
| a = np.array([1,2,3], dtype=np.uint32) | |
| b = np.array([1,2,3], dtype=np.uint32) | |
| c = np.array([1,2,3], dtype=np.uint32) | |
| d = np.array([1,2,3], dtype=np.uint32) | |
| q = mp.Queue() |
- Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
- Take hot threads snapshots under read+write, read-only, write-only (TD - done)
- Adjust refresh time to 10s (from 1s) and see how load changes (TD)
- Measure time of a rolling restart doing
disable_flushanddisable_recovery(TD) - Specify routing on query -- make it choose same node for each shard each time (MD)
- GC new generation size (TD)
- Warmers
- measure before/after of client query time with and without warmers (MD)
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
| /** | |
| * Based off of the Lucene prolog parser in the wordnet contrib package within the | |
| * main Lucene project. It has been modified to remove the Lucene bits and generate | |
| * a synonyms.txt file suitable for consumption by Solr. The idea was mentioned in | |
| * a sidebar of the book Solr 1.4 Enterprise Search Server by Eric Pugh. | |
| * | |
| * @see <a href="http://lucene.apache.org/java/2_3_2/lucene-sandbox/index.html#WordNet/Synonyms">Lucene Sandbox WordNet page</a> | |
| * @see <a href="http://svn.apache.org/repos/asf/lucene/dev/trunk/lucene/contrib/wordnet/">SVN Repository of the WordNet contrib</a> | |
| * @see <a href="https://www.packtpub.com/solr-1-4-enterprise-search-server/book">Solr 1.4 Enterprise Search Server Book</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/sh | |
| BUCKETNAME=mybucketname; REGION=us-east-1; for prefix in $(aws s3api list-objects --bucket $BUCKETNAME --delimiter '/' --output text --region $REGION |grep COMMONPREFIX |tail -n+2| awk '{print $2}'); do echo "Totals for $prefix"; aws s3 ls --summarize --human-readable --recursive s3://$BUCKETNAME/$prefix --region $REGION ; done |grep Total |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| def load_bin_vec(fname, vocab): | |
| """ | |
| Loads 300x1 word vecs from Google (Mikolov) word2vec | |
| """ | |
| word_vecs = {} | |
| with open(fname, "rb") as f: | |
| header = f.readline() | |
| vocab_size, layer1_size = map(int, header.split()) | |
| binary_len = np.dtype('float32').itemsize * layer1_size | |
| for line in xrange(vocab_size): |
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
| import numpy as np | |
| import theano | |
| import theano.tensor as T | |
| from theano import ifelse | |
| from .. import init | |
| from .. import nonlinearities | |
| from .base import Layer |
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
| sudo apt-get install libc6:i386 libstdc++6:i386 zlib1g:i386 libx11-6:i386 libxext6:i386 libxrender1:i386 |
NewerOlder