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
# first set the My Dell app to use Ultra Performance mode | |
# enable high performance power plan | |
powercfg /s SCHEME_MIN | |
# disable throttling for vbox | |
powercfg /powerthrottling disable /path "C:\Program Files\Oracle\VirtualBox\VBoxHeadless.exe" | |
powercfg /powerthrottling disable /path "C:\Program Files\Oracle\VirtualBox\VirtualBoxVM.exe" | |
powercfg /powerthrottling disable /path "C:\Program Files\Oracle\VirtualBox\VirtualBox.exe" | |
powercfg /powerthrottling list |
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
#!/bin/bash | |
# This script creates multiple musl toolchains for LLVM. | |
# These can be used directly to produce static Linux binaries. | |
# Pass the alpine version as a command line parameter | |
# (see https://alpinelinux.org/downloads/) | |
# | |
# Usage: bash build-alpine-toolchains.sh v3.20 | |
# | |
# For example, to compile for x86_64 |
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
# https://huggingface.co/google/siglip-base-patch16-256-multilingual | |
# install huggingface/transformers from source | |
# install optimum from this branch: https://github.com/huggingface/optimum/tree/xenova-add-siglip | |
# install onnx onnxruntime etc. | |
# Use T5 tokenizer fast and save_pretrained to get tokenizers.json | |
# https://github.com/huggingface/transformers/blob/main/src/transformers/models/t5/tokenization_t5_fast.py | |
# clone xenova/transformers.js and use the script to convert model |
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
/** | |
* Testbed diagnostic script for NDN play. | |
* http://play.ndn.today/?testbed=1&script=https://gist.githubusercontent.com/pulsejet/15278a61b47df6066346d36f9071065a/raw/testbed-diagnostic.ts | |
* It will use FCH to connect to the nearest testbed node and ping all nodes. | |
* A table will be printed to the JS console with ping times. | |
*/ | |
import { connectToNetwork } from "@ndn/autoconfig"; | |
import { Endpoint } from "@ndn/endpoint"; | |
import { Forwarder } from "@ndn/fw"; |
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
#include <ndn-cxx/face.hpp> | |
#include <iostream> | |
void | |
onData(const ndn::Interest&, const ndn::Data& data) | |
{ | |
std::cout << "Received Data: " << data << std::endl; | |
} | |
void |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get remove -y libva ffmpeg | |
sudo apt-get install -y \ | |
autoconf libtool libdrm-dev xorg xorg-dev openbox \ | |
libx11-dev libgl1-mesa-glx libgl1-mesa-dev \ | |
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev \ | |
libxkbcommon-x11-dev libxcb-dri3-dev \ | |
vim cmake git nasm build-essential |
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
/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */ | |
/* | |
* Copyright (c) 2012-2022 University of California, Los Angeles | |
* | |
* This file is part of ndn-svs, synchronization library for distributed realtime | |
* applications for NDN. | |
* | |
* ndn-svs library is free software: you can redistribute it and/or modify it under the | |
* terms of the GNU Lesser General Public License as published by the Free Software | |
* Foundation, in version 2.1 of the License. |
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
See comments | |
Testing with ndncatchunks and ndnputchunks, 1gb file. With content store is very slow (few mbps), without content store is ~2gbps. |
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
[nodes] | |
Texas: _ network=/world router=/Texas.Router/ | |
California: _ network=/world router=/California.Router/ | |
s1: _ network=/world router=/s1.Router/ | |
s2: _ network=/world router=/s2.Router/ | |
bob: _ network=/world router=/bob.Router/ | |
alice: _ network=/world router=/alice.Router/ | |
[links] | |
alice:bob delay=10ms | |
alice:s1 delay=10ms |
NewerOlder