Skip to content

Instantly share code, notes, and snippets.

View apelliciari's full-sized avatar

Alessandro Pelliciari apelliciari

View GitHub Profile
@apelliciari
apelliciari / gist:975da6960675a000e058d936028f373b
Created October 23, 2024 16:01
amplisite - llama search products
{
"messages": [
{
"content": "You are an expert Q&A system that is trusted around the world.\nAlways answer the query using the provided context information, and not prior knowledge.\nSome rules to follow:\n1. Never directly reference the given context in your answer.\n2. Avoid statements like 'Based on the context, ...' or 'The context information ...' or anything along those lines.",
"role": "system"
},
{
"content": "Context information is below.\n---------------------\nlink: https://www.avon.it/product/36668/set-relax-profumato\nparentId: 36668\ntitle: Set Relax Profumato\n\nSet Relax Profumato set relax profumato con crema doccia, bagnoschiuma, spray corpo e 2-in-1 shampoo e balsamo. profumi di rosa, frutti rossi, ibisco e lampone per un momento di cura e relax. formulati con ingredienti naturali, idratanti e delicati sulla pelle. ideale per una routine di bellezza completa. Cura del corpo > bagno / doccia\n\nlink: https://www.avon.it/product
@apelliciari
apelliciari / hammerspoon_corso_sicurezza.lua
Created March 7, 2023 14:44
scriptino corso sicurezza hammerspoon
enableAutoClick = false
-- Seconds to delay before next click. 0.001 works OK.
speedDelay = 30
targetMousePos = nil
function clickAndReturn()
local oldMousePos = hs.mouse.absolutePosition()
mouseLeftClick(targetMousePos)
mouseLeftClick(targetMousePos)
@apelliciari
apelliciari / roy hub main.dart
Created April 30, 2021 08:17
Roy Hub Main file
import 'package:flutter/material.dart';
import 'package:device_apps/device_apps.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => _MyAppState();
@apelliciari
apelliciari / jsoneditor-dark-theme.css
Last active April 30, 2020 15:27
jsoneditor darktheme css
div.jsoneditor,
div.jsoneditor-menu {
border-color: #2c3e50;
}
div.jsoneditor-menu {
background-color: #2c3e50;
}
div.jsoneditor-menu .jsoneditor-sort {
visibility: hidden;
}
`container-name | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
container-name | [s6-init] ensuring user provided files have correct perms...exited 0.
container-name | [fix-attrs.d] applying ownership & permissions fixes...
container-name | [fix-attrs.d] 01-s6: applying...
container-name | [fix-attrs.d] 01-s6: exited 0.
container-name | [fix-attrs.d] 02-zabbix: applying...
container-name | [fix-attrs.d] 02-zabbix: exited 0.
container-name | [fix-attrs.d] 03-logrotate: applying...
container-name | [fix-attrs.d] 03-logrotate: exited 0.
container-name | [fix-attrs.d] done.
@apelliciari
apelliciari / walk-git.py
Last active April 19, 2019 14:00
To walk every subdirectory checking if there is uncommitted code
#### USAGE: python walk-git ROOTDIR MAX_DEPTH
import os
import sys
import pprint
import subprocess
ROOTDIR = sys.argv[1]
@apelliciari
apelliciari / verifca.js
Created October 11, 2018 10:21
Verifica dominio www.boscolo.com share this
<script type='text/javascript' src='//platform-api.sharethis.com/js/sharethis.js#property=5bb4bcab7283210011cb5efa&product=inline-share-buttons' async='async'></script>
adf.Params.PageName = encodeURIComponent('InfinityTV|desktop|checkout|step1 scelta piano');
adf.Params.Divider = encodeURIComponent('|');
adf.track(315326);
----------------------------------------------------------------------------------------------
Tracking Code: Standard (Asynchronous)
----------------------------------------------------------------------------------------------
<!-- Adform Tracking Code BEGIN -->
<script type="text/javascript">
var _adftrack = {
pm: 315326,
divider: encodeURIComponent('|'),
pagename: encodeURIComponent('WebsiteName|SectionName|SubSection|PageName'),
----------------------------------------------------------------------------------------------
Tracking Code: Standard (Synchronous)
----------------------------------------------------------------------------------------------
<!-- Adform Tracking Code BEGIN -->
<script type="text/javascript" src="https://track.adform.net/serving/scripts/trackpoint/"></script>
<script type="text/javascript">
adf.Params.PageName = encodeURIComponent('WebsiteName|SectionName|SubSection|PageName');
adf.Params.Divider = encodeURIComponent('|');
adf.createOrder({