See also:
| Service | Type | RAM | Storage | Limitations |
|---|---|---|---|---|
| PaaS | 256 MB | Non-persistent? (1 GB database storage available) | ||
| AWS EC2 | IaaS | 1 GB |
| # Clone llama.cpp | |
| git clone https://github.com/ggerganov/llama.cpp.git | |
| cd llama.cpp | |
| # Build it | |
| LLAMA_METAL=1 make | |
| # Download model | |
| export MODEL=llama-2-13b-chat.ggmlv3.q4_0.bin | |
| wget "https://huggingface.co/TheBloke/Llama-2-13B-chat-GGML/resolve/main/${MODEL}" |
| { | |
| "name": "to-be-added", | |
| "version": "0.0.0", | |
| "sideEffects": false, | |
| "exports": { | |
| ".": { | |
| "import": "./dist-esm/bundle.min.mjs", | |
| "require": "./dist-cjs/bundle.min.cjs" | |
| }, | |
| "./server": "./server/index.js" |
| # | |
| # I did not create this list. I pulled the list from the following repo: | |
| # https://github.com/W4RH4WK/Debloat-Windows-10/blob/master/scripts/block-telemetry.ps1 | |
| # I formatted the list to be used with pfBlockerNG. | |
| # | |
| 184-86-53-99.deploy.static.akamaitechnologies.com | |
| a-0001.a-msedge.net | |
| a-0002.a-msedge.net | |
| a-0003.a-msedge.net | |
| a-0004.a-msedge.net |
| package main | |
| import ( | |
| "fmt" | |
| "unicode/utf8" | |
| ) | |
| func main() { | |
| s := "a\xc5z" | |
| fmt.Printf("%q\n", s) |
| # This is example how to rescue from exception ActionDispatch::Http::MimeNegotiation::InvalidType | |
| # and show nice JSON error in your API | |
| module API | |
| class BaseController < ActionController::API | |
| def process_action(*args) | |
| super | |
| rescue ActionDispatch::Http::MimeNegotiation::InvalidType => exception | |
| # set valid Content-Type to be able to call render method below | |
| request.headers['Content-Type'] = 'application/json' | |
| render status: 400, json: { errors: [exception.message] } |
| ## shebang https://ko.wikipedia.org/wiki/%EC%85%94%EB%B1%85 참고 | |
| #!/bin/sh | |
| src_dir="contrib" | |
| near_postfix="near" | |
| network="mainnet" | |
| near_source="nearcore" # nearcore or datalake | |
| migrate_from="" | |
| use_snapshots=1 |
| <h1 style="color:#148F77 "><b><i><center> Weather App🌡 </i></b></center></h1> | |
| <center><input type='search' placeholder='enter the city ' id="city" class="search-bx" name='cityname'style= "width:50%;background-color: white;padding: 12px 20px;margin: 10px 0;display: inline-block;border: 1px solid green;border-radius: 6px;box-sizing: content-box "></center> | |
| <br> | |
| <center><button id="search-button" style="color: yellow; background-color: grey">search</button><center> | |
| <br> | |
| <div> | |
| <div id="location " ></div> | |
| <div id="temp" ></div> | |
| </div> | |
| #This will the fixup command to git | |
| #git fixup $commit will use your current index to fixup the specified commit | |
| #This is done by doing git commit --fixup $commit and then using rebase with autosquash | |
| #Based upon http://stackoverflow.com/a/21148981/460564 | |
| [alias] | |
| fixup = "!sh -c '(git diff-files --quiet || (echo Unstaged changes, please commit or stash with --keep-index; exit 1)) && COMMIT=$(git rev-parse $1) && git commit --fixup=$COMMIT && git rebase -i --autosquash $COMMIT~1' -" |