Skip to content

Instantly share code, notes, and snippets.

@laszpio
laszpio / llama-start.plugin.zsh
Created March 10, 2025 08:52
Oh My ZSH plugin to load model for llama.cpp
# ~/.oh-my-zsh/plugins/llama-start/llama-cpp-start.plugin.zsh
llama-start() {
# Define model directory
local model_dir="${HOME}/models"
echo "Debug: Using model directory $model_dir"
# Check if directory exists
if [[ ! -d "$model_dir" ]]; then
echo "Error: $model_dir directory not found. Please create it and add GGUF or bin models."

Keybase proof

I hereby claim:

  • I am laszpio on github.
  • I am laszpio (https://keybase.io/laszpio) on keybase.
  • I have a public key ASAmfWh15rw3Qx5cMfcmnM62rcS16P6XQ27h5LWkKGFUkAo

To claim this, I am signing this object:

@laszpio
laszpio / someone.rb
Created September 21, 2010 14:30 — forked from ngty/someone.rb
class Someone
class << self
def say
$stdin.each_line do |line|
$stdout << "someone says '#{line}' @ #{Time.now}"
end
end
end
end
Basics:
-ctrl a c -> create new window
-ctrl a A -> set window name
-ctrl a w -> show all window
-ctrl a 1|2|3|… -> switch to window n
-ctrl a " -> choose window
-ctrl a ctrl a -> switch between window
-ctrl a d -> detach window
-ctrl a ? -> help
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
require "rake"
describe "Upload inventory to abe" do
before(:all) do
@rake = Rake::Application.new
Rake.application = @rake
Rake.application.rake_require "lib/tasks/cron/abe/upload_inventory"
Rake::Task.define_task(:environment)
end