opencode auth login
# Select "Kimi For Coding"
# Enter your API key (sk-kimi-...)
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
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
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 | |
| ssh2append() { | |
| ssh -G "$@" | sed -n 's/^hostname /Host /p' | |
| comm -23 <(ssh -G "$@" 2>/dev/null | sort) <(ssh -G . 2>/dev/null | sort) | sed 's/^/ /' | |
| # This loop+if is for remote command, -N, -W as -G lacks support | |
| while getopts '1246AaCfGgKkMNnqsTtVvXxYyB:b:c:D:E:e:F:I:i:J:L:l:m:O:o:p:Q:R:S:W:w:' opt; do | |
| #shellcheck disable=SC2254 | |
| case "$opt" in |
Assumptions
- You have termux installed and have sufficient permissions
- You have loggedin as root user
- You are okay with running Puppeteer inside a container (Alpine)
Gotchas
- There is no build of Google Chrome available for ARM at this moment, so using chromium instead.
- Installing chromium on Termux directly requires snap which is another big hurdle so alternively using alpine distro here.
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
| use nodejs_sys::{ | |
| napi_async_work, napi_callback_info, napi_create_async_work, napi_create_promise, | |
| napi_deferred, napi_delete_async_work, napi_env, napi_get_cb_info, napi_queue_async_work, | |
| napi_resolve_deferred, napi_status, napi_value,napi_reject_deferred,napi_create_error | |
| }; | |
| use std::ffi::c_void; | |
| use crate::{request, scrap, types}; | |
| #[derive(Debug, Clone)] |
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
| /vendor | |
| /docker | |
| /Dockerfile |
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 | |
| #Author: Guido Diepen | |
| #Convenience script that can help me to easily create a clone of a given | |
| #data volume. The script is mainly useful if you are using named volumes | |
| #First check if the user provided all needed arguments | |
| if [ "$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
| id.cifraclub.com.br { | |
| log stdout | |
| # Mkcert - https://github.com/FiloSottile/mkcert | |
| tls ./yourwebsite.com.br.pem ./yourwebsite.com.br-key.pem | |
| proxy / https://yourwebsite.com { | |
| transparent | |
| header_upstream X-Marotagem true | |
| header_upstream Host "yourwebsite.com.br" | |
| } |
NewerOlder