// jQuery
$(document).ready(function() {
// code
})
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
/* | |
cdr_fifo_mongodb: A quick and dirty hack that consists of configuring asterisk’s | |
cdr_custom.conf to write to a named pipe, which will be then read by node and | |
then written into mongodb. | |
good alternative to cdr_mongodb, 'cause I couldn't make it work stable for 1.8 | |
*/ | |
var config = { | |
"dburl": "asterisk", /* user:pass@host/db */ | |
"collections": ["cdr"], | |
"fifo": "/var/log/asterisk/cdr-custom/cdr_fifo.csv", |
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
FROM ubuntu | |
RUN apt-get update | |
RUN apt-get install -y socat | |
VOLUME /foo | |
CMD socat UNIX-LISTEN:/foo/bar.sock - |
How to compile Mesos on your new Raspberry Pi 2 (which is amazing with 4 cores and 6x performance). Follows on from experiments in compiling for OS X
sudo apt-get install maven libsasl2-dev libapr1-dev libsvn-dev libcurl4-openssl-dev python-dev python-boto
export JAVA_HOME="/usr/lib/jvm/jdk-8-oracle-arm-vfp-hflt"
export PATH=$JAVA_HOME/bin:$PATH
http://likemagicappears.com/projects/raspberry-pi-cluster/mesos-on-raspbian/
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
/* $Id: upnpc.c,v 1.101 2014/01/31 13:18:25 nanard Exp $ */ | |
/* Project : miniupnp | |
MiniUPnPc | |
Copyright (c) 2005-2016, Thomas BERNARD | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright notice, |
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 | |
#shows traffic on the specified device | |
function human_readable { | |
VALUE=$1 | |
BIGGIFIERS=( B K M G ) | |
CURRENT_BIGGIFIER=0 | |
while [ $VALUE -gt 10000 ] ;do | |
VALUE=$(($VALUE/1000)) |
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
<?php | |
function to_str($obj) { | |
ob_start(); | |
var_dump($obj); | |
return ob_get_clean(); | |
} | |
function str_btw($string, $start, $end){ | |
$string = ' ' . $string; |
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
-- remove the driver to clean up -- | |
wlctl -i wl0 down | |
rmmod wl | |
insmod wl | |
-- set WPA2-AES encryption -- | |
wlctl -i wl0 wsec 4 | |
wlctl -i wl0 wpa_auth 128 | |
wlctl -i wl0 wsec_restrict 1 | |
wlctl -i wl0 eap 0 |
Good question! I am collecting human data on how quantization affects outputs. See here for more information: ggerganov/llama.cpp#5962
In the meantime, use the largest that fully fits in your GPU. If you can comfortably fit Q4_K_S, try using a model with more parameters.
See the wiki upstream: https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix