This file contains 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
# here's the RAW curl from their example in a copy/paste format to see the TOOLS response | |
curl -X POST http://localhost:11434/api/generate -H "Content-Type: application/json" -d '{ | |
"model": "mistral", | |
"prompt": "[AVAILABLE_TOOLS] [{\"type\": \"function\", \"function\": {\"name\": \"get_current_weather\", \"description\": \"Get the current weather\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"format\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"], \"description\": \"The temperature unit to use. Infer this from the users location.\"}}, \"required\": [\"location\", \"format\"]}}}][/AVAILABLE_TOOLS][INST] What is the weather like today in San Francisco [/INST]", | |
"raw": true, | |
"stream": false | |
}' |
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 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
# Copyright 2017 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This file contains 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
# get .colors.csv from here, drop it in your ~ directory | |
# https://gist.github.com/avillafiorita/9e626ce370e1da6c6373/revisions | |
# add this to .bash_profile | |
# remember to source .bash_profile before you use it. | |
# Wrapping ssh command with extra functionality | |
ssh() { |
This file contains 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
# list python licenses | |
sudo -s | |
pip3 install -U pip-licenses | |
exit | |
pip-licenses | |
# list javascript/npm licenses | |
npm install -g license-checker | |
license-checker --production --csv --direct |
This file contains 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
# Check for secrets/passwords in a given repo https://github.com/dxa4481/truffleHog | |
truffleHog --regex --entropy=False https://github.com/gravitymonkey/your-service.git | |
# trufflehog is good, but there are a lot of tools for this kind of thing, maybe you want to use more than one! | |
# If it's got some bad stuff going on :( then you can fix it with BFG! | |
# before you do all of this, especially if you're going to edit old commits with BFG | |
# BE SURE TO LET THE USERS KNOW, so that they can keep the branch clean and know that they | |
# will need to update after this process is over |
This file contains 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
# set it to python 2 | |
rm /usr/bin/python | |
ln -s /usr/bin/python2.7 /usr/bin/python | |
python --version | |
yum update | |
# set it to python 3 | |
rm /usr/bin/python |
This file contains 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
Verifying that +gravitymonkey is my blockchain ID. https://onename.com/gravitymonkey |
This file contains 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
println(MinecraftJavascript.plugin.getServer().getIp()); |
This file contains 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
String[] common = {"the","of","and","a","to","in","is","you","that","it","he","was","for","on","are","as","with","his","they","I","at","be","this","have","from","or","one","had","by","word","but","not","what","all","were","we","when","your","can","said","there","use","an","each","which","she","do","how","their","if","will","up","other","about","out","many","then","them","these","so","some","her","would","make","like","him","into","time","has","look","two","more","write","go","see","number","no","way","could","people","my","than","first","water","been","call","who","oil","its","now","find","long","down","day","did","get","come","made","may","part"}; |
NewerOlder