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 / windows_hardening.cmd
Created September 29, 2025 15:49 — forked from mackwage/windows_hardening.cmd
Script to perform some hardening of Windows OS
:: Windows 10 Hardening Script
:: This is based mostly on my own personal research and testing. My objective is to secure/harden Windows 10 as much as possible while not impacting usability at all. (Think being able to run on this computer's of family members so secure them but not increase the chances of them having to call you to troubleshoot something related to it later on). References for virtually all settings can be found at the bottom. Just before the references section, you will always find several security settings commented out as they could lead to compatibility issues in common consumer setups but they're worth considering.
:: Obligatory 'views are my own'. :)
:: Thank you @jaredhaight for the Win Firewall config recommendations!
:: Thank you @ricardojba for the DLL Safe Order Search reg key!
:: Thank you @jessicaknotts for the help on testing Exploit Guard configs and checking privacy settings!
:: Best script I've found for Debloating Windows 10: https://github.com/Sycnex/Windows10Debloater
:

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"
@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/*",