Skip to content

Instantly share code, notes, and snippets.

View rbenaley's full-sized avatar

Richard Ben Aleya rbenaley

  • Scalable Solutions
  • Belgium
View GitHub Profile
@hajowieland
hajowieland / download_models.sh
Last active February 23, 2024 19:35
download_models.sh
#!/bin/bash
cd /models || exit
# Define available models
declare -a available_models=("codellama-34b-instruct.Q4_0.gguf" "llama-2-13b-chat.ggmlv3.q4_0.bin" "llama-2-13b-chat.Q4_0.gguf" "llama-2-70b-chat.ggmlv3.q4_0.bin" "llama-2-70b-chat.Q4_0.gguf")
# Display available models to user
echo "Available LLM models:"
for model in "${available_models[@]}"; do
@JohnDinhDev
JohnDinhDev / Reset Udemy Progress.md
Last active July 23, 2024 14:52
Reset Udemy Progress

Reset Udemy Progress

Last Updated: 06/18/2024

Step 1. Go to the Udemy course in your browser

Go to the course and have any video up. The following code relies on the right sidebar to be visible to uncheck all your progress.

Step 2. Open browser console

You can do this with ctrl+shift+j and making sure the console tab is selected for chrome/brave

@oskar456
oskar456 / md4pass.sh
Created October 7, 2016 09:48
MSCHAPv2 hash generator one-liner
python -c 'import getpass,hashlib; print(hashlib.new("md4",getpass.getpass().encode("utf-16le")).hexdigest())'
@agnaldo4j
agnaldo4j / crawler_example.md
Last active October 15, 2016 11:20
Crawler example with mochiweb_html and mochiweb_xpath.

Elixir simple crawler example

This example uses thease projects:

  1. mochiweb
  2. mochiweb_xpath

The HtmlPageReader goes to html's page and transform that content with mochiweb_html.parse

defmodule Usecase.HtmlPageReader do

Elm 0.15.1 vs 0.16 on Chrome

Result of running these benchmarks on Chrome 45.0.2454.101

These numbers seem to be pretty consistent on Blink-based browsers (Chrome and Opera) but are more like 20% to 50% improvements on FireFox, Safari, and IE. I am not sure how to explain that, so take these numbers more as an indicator of “Elm is generating faster code across the board” as opposed to “Elm is 10x faster!”

business logic from examples

@tjanczuk
tjanczuk / xpub-xsub.js
Created August 24, 2015 23:59
How to connect 5 publishers with 5 subscribers over TCP using ZeroMQ's XPUB/XSUB proxy
// How to connect 5 publishers with 5 subscribers
// over TCP using ZeroMQ's XPUB/XSUB proxy.
// sub (connect)
// <-8701->
// (bind) xpub <---> xsub (bind)
// <-8700->
// (connect) pub
var zmq = require('zmq');
@BinaryMuse
BinaryMuse / README.md
Last active April 20, 2022 21:45
Elixir Map/HashDict Performance on Erlang OTP R17 vs R18
@leikind
leikind / expand.ex
Last active August 29, 2015 14:18
Macro.expand and Macro.expand_once
defmodule UselessMacros do
defmacro bar(42) do
quote do
"the answer"
end
end
defmacro baz(42) do
quote do
@essen
essen / http_specs.md
Last active January 10, 2022 02:01
HTTP and related specifications