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 | |
# Raid1 with XFS should perform well: | |
# https://www.phoronix.com/review/linux54-hdd-raid/3 | |
# | |
# to benchmakr this, first outside llama.cpp we can do: | |
# $ sudo sh -c "sync; echo 3 > /proc/sys/vm/drop_caches" | |
# $ time b3sum /mnt/gguf-unsloth-maverick/.../.../...1-of-4.gguf | |
set -euo pipefail | |
usage() { | |
echo " \$ $0 /opt/gguf-unsloth-maverick-backing-1-of-2/disk1.img /cache/gguf-unsloth-maverick-backing-2-of-2/disk2.img" |
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
Apache License | |
Version 2.0, January 2004 | |
http://www.apache.org/licenses/ | |
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
1. Definitions. | |
"License" shall mean the terms and conditions for use, reproduction, and | |
distribution as defined by Sections 1 through 9 of this document. |
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
*.pyc | |
*.aux | |
*.log | |
*.out |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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
*.img | |
*.qcow2 | |
cloud.txt |
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
cmake_minimum_required(VERSION 3.16.2) | |
enable_language(CXX) | |
project(serial) | |
find_package(SymEngine REQUIRED CONFIG PATH_SUFFIXES lib/cmake/symengine) | |
add_executable(serial3_syme serial3_syme.cpp) | |
target_link_libraries(serial3_syme ${SYMENGINE_LIBRARIES}) | |
target_include_directories(serial3_syme PRIVATE ${SYMENGINE_INCLUDE_DIRS}) | |
set_target_properties(serial3_syme PROPERTIES | |
CXX_STANDARD 17 |
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
1. Install msys2 from msys2.org | |
2. run msys2.exe: pacman -Syu, restart, pacman -Su | |
3. run mingw64.exe: pamcan -S mingw-w64-x86_64-emacs | |
4. create C:\msys2_64\runemacs_patched_path.bat: | |
cmd /C "set PATH=C:\msys2_64\mingw64\bin;C:\msys2_64\usr\bin;%PATH% && C:\msys2_64\mingw64\bin\runemacs.exe --daemon" | |
5. Super-R shell:startup [RET] | |
6. Create shortcut to runemacs_patched_path.bat, call it e.g. "emacs-daemon" | |
7. Create a short-cut in Start menu: | |
C:\msys2_64\mingw64\bin\emacsclientw.exe -c -n -a "C:\msys2_64\mingw64\bin\runemacs.exe" |
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 | |
# This script uses docker to build a specific symengine commit under CentOS6/GCC8/boost1.72 | |
# | |
# Example usage: | |
# | |
# $ sudo ./docker_symengine_cos6.sh e7d7ae55f4fd6740a48acaea0e7e24542ceda6b7 | |
# | |
if ! which docker; then | |
2>&1 echo "You need to have docker installed. See e.g. https://www.docker.com/community-edition#/download" |
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
import math | |
import datetime | |
from functools import reduce | |
MÅNADER_PER_ÅR = 12 | |
DAGAR_PER_ÅR = 365.25 | |
DAGAR_PER_MÅNAD = DAGAR_PER_ÅR / MÅNADER_PER_ÅR | |
def årlig_tillväxt_i_procent_uttryckt_som_faktor_per_månad(x_procent): | |
# y**12 == 1 + årlig_aktie_avkastning_procent/100 | |
# log(y) = log(1 + årlig_aktie_avkastning_procent/100)/12 |
NewerOlder