Skip to content

Instantly share code, notes, and snippets.

View admariner's full-sized avatar

Periklis Papanikolaou admariner

  • admariner
  • Thessaloniki
View GitHub Profile
@admariner
admariner / csv2skosxl.php
Created September 3, 2025 15:45 — forked from cristiroma/csv2skosxl.php
Sample script to convert an CSV / Excel into RDF SKOS-XL format
<?php
/**
* Sample script to convert an CSV (ie. exported form MS Excel file) into
* RDF SKOSXL format.
*
* @file csv2skosxl.php
* @license Licensed under WTFPL (http://www.wtfpl.net/txt/copying/)
* @author Cristian Romanescu <[email protected]>
*/
@admariner
admariner / 00.howto_install_phantomjs.md
Created August 31, 2025 01:22 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
// Name: Summarize with AI Widget
// Description: Get a summary of any topic using OpenAI and display in a widget.
// Author: AI Script Generator
import '@johnlindquist/kit'
import { OpenAI } from 'openai'
// Initialize OpenAI client with API key from environment variable
const openai = new OpenAI({
apiKey: await env('OPENAI_API_KEY', {
@admariner
admariner / importtaxonomy.cql
Created March 10, 2025 21:20 — forked from rvanbruggen/importtaxonomy.cql
Google Product Taxonomy
//Import Google Product Taxonomy
//WITH IDENTIFIERS
//downloaded from https://support.google.com/merchants/answer/1705911
create index on :Cat1(name);
create index on :Cat2(name);
create index on :Cat3(name);
create index on :Cat4(name);
create index on :Cat5(name);
create index on :Cat6(name);

brightlocal

Home page

The Home Page is by far the most important page on a website. It usually carries the most weight in SEO as well. Search engines will want to know what the business name is, where it’s located and, what the business does. You can teach the search engines this information by using Organization Schema.

<script type="application/ld+json">
{
@admariner
admariner / grpo_demo.py
Created February 16, 2025 05:13 — forked from willccbb/grpo_demo.py
GRPO Llama-1B
# train_grpo.py
#
# See https://github.com/willccbb/verifiers for ongoing developments
#
import re
import torch
from datasets import load_dataset, Dataset
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import LoraConfig
from trl import GRPOConfig, GRPOTrainer
@admariner
admariner / README.md
Created July 30, 2024 08:17 — forked from disler/README.md
Use these Prompt Chains to build HIGH QUALITY AI Agents (Agentic Building Blocks)

Setup

  1. Create a new directory with these three files (requirements.txt, main.py, README.md)
  2. python -m venv venv
  3. source venv/bin/activate
  4. pip install -r requirements.txt
  5. python main.py
  6. Update main() to run the example prompt chains
@admariner
admariner / Redirector.json
Created July 30, 2024 02:08 — forked from thefranke/Redirector.json
Redirector Configuration
{
"createdBy": "Redirector v3.5.3",
"createdAt": "2023-05-24T14:38:35.748Z",
"redirects": [
{
"description": "Wikipedia -> Wikiless",
"exampleUrl": "https://en.wikipedia.org/wiki/XYZ",
"exampleResult": "https://farside.link/wikiless/wiki/XYZ",
"error": null,
"includePattern": "*wikipedia.org/*",
@admariner
admariner / RSS.md
Created July 30, 2024 02:06 — forked from thefranke/RSS.md
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@admariner
admariner / positive-words.txt
Last active June 6, 2024 01:08 — forked from mkulakowski2/positive-words.txt
Opinion Lexicon: Positive
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; Opinion Lexicon: Positive
;
; This file contains a list of POSITIVE opinion words (or sentiment words).
;
; This file and the papers can all be downloaded from
; http://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html
;
; If you use this list, please cite one of the following two papers: