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
| {%- set image_count = namespace(value=0) %} | |
| {%- set video_count = namespace(value=0) %} | |
| {%- macro render_content(content, do_vision_count, is_system_content=false) %} | |
| {%- if content is string %} | |
| {{- content }} | |
| {%- elif content is iterable and content is not mapping %} | |
| {%- for item in content %} | |
| {%- if 'image' in item or 'image_url' in item or item.type == 'image' %} | |
| {%- if is_system_content %} | |
| {{- raise_exception('System message cannot contain images.') }} |
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 | |
| # Proxmox Node Rename Script v1.6 - FUSE/Bypass Fix for Standalone | |
| # Usage: ./rename_proxmox.sh [OPTIONS] <FULL_HOSTNAME> | |
| # Example: ./rename_proxmox.sh -n horus.localdomain | |
| set -e | |
| DRY_RUN=false | |
| FULL_HOSTNAME="" |
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 | |
| ## https://akitaonrails.com/2026/01/10/ai-agents-garantindo-a-protecao-do-seu-sistema/ | |
| ## usage: ai-jail --map ~/Projects/test --map ~/Projects/test2 crush | |
| # Configuration | |
| PROJECT_DIR=$(pwd) | |
| REAL_HOME_CONFIG="$HOME/.config" | |
| SPARSE_HOME=$(mktemp -d /tmp/bwrap-home.XXXXXX) | |
| TEMP_HOSTS=$(mktemp /tmp/bwrap-hosts.XXXXXX) |
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
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "math/bits" | |
| "os" | |
| "strconv" | |
| "github.com/veandco/go-sdl2/sdl" |
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
| #include <array> | |
| #include <iostream> | |
| #include <filesystem> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| constexpr auto BOARD_RADIX = 9; | |
| using Board = std::array<uint8_t, BOARD_RADIX * BOARD_RADIX>; |
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
| /** | |
| * Bignum multiplication of numbers with arbitrary bases, using the | |
| * Schonhage-Strassen algorithm. | |
| * | |
| * g++ -std=c++11 -Wall -Wextra -Werror -pedantic-errors bn_strassen.cpp -o bn_strassen | |
| * | |
| * usage: bn_strassen.exe 123456789 987654321 | |
| * | |
| * Sources: |
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
| ! Source: https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt | |
| ! WindowsSpyBlocker - Hosts spy rules | |
| ! License: MIT | |
| ! Updated: 2022-05-16T13:25:00Z02:12 | |
| ! Donate: https://github.com/sponsors/crazy-max ; https://www.paypal.me/crazyws | |
| ! More info: https://github.com/crazy-max/WindowsSpyBlocker | |
| ||1oavsblobprodcus350.blob.core.windows.net^ | |
| ||37bvsblobprodcus311.blob.core.windows.net^ | |
| ||a.ads1.msn.com^ |
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 | |
| SRC=$1 | |
| [[ -z "${SRC}" ]] && exit 0 | |
| [[ -e "${SRC}" ]] || exit 1 | |
| input=$(realpath "${SRC}") | |
| date=$(date '+%Y%m%d_%H%M%S') | |
| 7z a "${input}_${date}.7z" ${input} |
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
| class YuvConvertor { | |
| private final Allocation in, out; | |
| private final ScriptIntrinsicYuvToRGB script; | |
| static { | |
| System.loadLibrary("yuv2rgb-lib"); | |
| } | |
| public YuvConvertor(Context context, int width, int height) { | |
| RenderScript rs = RenderScript.create(context); |
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
| //https://quick-bench.com/q/Y2QpDoIqxox3feajud-PlrQQeMM | |
| //https://godbolt.org/z/TqzeGWMh1 | |
| #include <algorithm> | |
| #include <iostream> | |
| #include <numeric> | |
| #include <vector> | |
| #include <cmath> | |
| template<typename _Tx> |
NewerOlder