from gguf.gguf_reader import GGUFReader
def get_string_array_field(gguf_reader: GGUFReader, key: str):
f = gguf_reader.get_field(key)
from gguf.gguf_reader import GGUFReader
def get_string_array_field(gguf_reader: GGUFReader, key: str):
f = gguf_reader.get_field(key)
#!/bin/bash | |
# | |
# (1) copy to: ~/bin/ssh-host-color | |
# (2) set: alias ssh=~/bin/ssh-host-color | |
# | |
# Inspired from http://talkfast.org/2011/01/10/ssh-host-color | |
# Fork from https://gist.github.com/773849 | |
# | |
set_term_bgcolor(){ |
#include <stdio.h> | |
#include <string.h> | |
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> | |
double arg; | |
static int l_csleep_cont (lua_State *L) { |
(require '[com.keminglabs.zmq-async.core :refer [register-socket!]] | |
'[clojure.core.async :refer [>! <! <!! >!! go chan sliding-buffer close!]]) | |
(let [addr "tcp://*:9999" | |
[s-in s-out] (repeatedly 2 #(chan (sliding-buffer 64)))] | |
(register-socket! {:in s-in :out s-out :socket-type :rep | |
:configurator (fn [socket] (.bind socket addr))}) | |
(println "waiting messages...") |
c = [5, 10, 7, 8, 9, 6]'; | |
A = [1, 1, 1, 0, 0, 0; 0, 0, 0, 1, 1, 1; 1, 0, 0, 1, 0, 0; 0, 1, 0, 0, 1, 0; 0, 0, 1, 0, 0, 1]; | |
b = [15, 25, 15, 15, 10]'; | |
lb = [0, 0, 0, 0, 0, 0]; | |
ub = []; | |
vartype = "CCCCCC"; | |
ctype = "SSSSS"; | |
sense = 1; |
root@master:~# sudo lshw | |
master | |
description: Computer | |
width: 64 bits | |
capabilities: vsyscall32 | |
*-core | |
description: Motherboard | |
physical id: 0 | |
*-memory | |
description: System memory |
Port 8081 | |
BindAddress 0.0.0.0 | |
MaxClients 10 | |
MaxBandwidth 50000 | |
NoDaemon | |
<Feed feed.ffm> | |
file /tmp/feed.ffm | |
FileMaxSize 20M | |
</Feed> |
import urllib | |
from time import sleep | |
from hashlib import md5 | |
import sys | |
def bell(): | |
sys.stdout.write('\a') | |
sys.stdout.flush() | |
def dig(): |
import sys | |
import time | |
delay = float(sys.argv[1]) | |
for line in sys.stdin: | |
sys.stdout.write(line) | |
time.sleep(delay) |