Skip to content

Instantly share code, notes, and snippets.

class AddNewFun < RubyLLM::Tool
description "Adds a new fun event or place to the system. Requires a link and a location description. Name is optional. Returns a JSON object confirming the addition and echoing the event details."
param :link, desc: "Link to the fun event or place (e.g., URL to an event page).", required: true
param :name, desc: "Name of the fun event or place. Optional, but recommended.", required: false
param :location_description, desc: "Textual description of the location (e.g., '123 Main St, Anytown' or 'Central Park Bandshell').", required: true
param :date, desc: "Date of the fun event (DD/MM format, e.g., '25/12'). Optional.", required: false
param :type, desc: "Type of the fun event (e.g., 'music', 'theater', 'sports'). Optional.", required: false
param :price, desc: "Price of the fun event (e.g., 'R$50', 'Free'). Optional.", required: false
def execute(link: nil, name: nil, location_description: nil, date: nil, type: nil, price: nil)
package com.fireho.queroir
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.View
import android.webkit.JavascriptInterface
import android.webkit.WebView
@nofxx
nofxx / PKGBUILD
Last active December 9, 2017 23:43
AEON PKGBUILD
pkgbase=('aeon-git')
pkgname=('aeon-git')
_aeon='aeon'
pkgver=0.9.14.0.r204.2c54434
pkgrel=1
arch=('x86_64' 'i686' 'armv7h')
url="http://aeon.cash/"
license=('custom:Cryptonote')
depends=('boost-libs>=1.45' 'miniupnpc>=1.6' 'libunwind'
def self.crc16(buf)
crc = 0xffff
buf.each_byte do |b|
crc = (crc >> 8) ^ CRC_LOOKUP[(crc ^ b) & 0xff]
end
~crc
end
@nofxx
nofxx / PKGBUILD
Created March 14, 2017 20:39
ignition-transport 3
# Maintainer: Benjamin Chrétien <chretien dot b plus aur at gmail dot com>
pkgname=ignition-transport
pkgver=3.0.1
pkgrel=1
pkgdesc="The transport library combines ZeroMQ with Protobufs to create a fast and efficient message passing system"
arch=('i686' 'x86_64')
url="http://ignitionrobotics.org"
license=('Apache')
groups=('development')
depends=('protobuf' 'protobuf-c' 'zeromq' 'uuid' 'ignition-msgs')
@nofxx
nofxx / .xinitrc
Last active March 9, 2017 09:39
Really quiet plymouth on rpi 3 and bbb
xset s off # don't activate screensaver
xset -dpms # disable DPMS (Energy Star) features.
xset s noblank # don't blank the video device
feh --bg-scale ~/torrefare.png & unclutter &
exec /usr/bin/chromium --kiosk --incognito --disable-translate http://localhost:9292
@nofxx
nofxx / arch.sh
Created June 29, 2015 21:00
Archlinux Rise
# Pkgs on servers:
# ----------------
# 1 - Setup disks
# 2 - Change vars:
app="niceapp"
name="aakira"
sshkey="ssh-rsa..."
@nofxx
nofxx / mongodb.service
Created January 26, 2015 02:54
Systemd mongodb service for servers
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
[Service]
LimitFSIZE=infinity
LimitCPU=infinity
LimitAS=infinity
LimitNOFILE=64000
LimitNPROC=64000
@nofxx
nofxx / PKGBUILD
Last active June 2, 2021 02:47
Tesseract with training tools on archlinux
# Tesseract with training tools
#
# You must install one of tesseract-data-* packages or whole tesseract-data
#
# Based on ABS tree:
# Maintainer: Sergej Pupykin <[email protected]>
# Contributor: Andreas Hauser <[email protected]>
_langs=(afr ara aze bel ben bul cat ces chi_sim chi_tra chr dan deu ell
eng enm epo epo_alt equ est eus fin fra frk frm glg grc heb hin hrv hun
@nofxx
nofxx / errbit-unicorn.service
Created January 5, 2015 19:15
errbit unicorn systemd service
[Unit]
Description=Errbit Unicorn Server
Requires=mongodb.service
After=mongodb.service network.target
[Service]
# Change here: user, group and directory to errbit root
User=errbit
Group=errbit
WorkingDirectory=/var/www/apps/errbit