Skip to content

Instantly share code, notes, and snippets.

View akiraaisha's full-sized avatar
🤔

Julian Lugod akiraaisha

🤔
  • Municipal Government of Cainta
  • Philippines
  • 22:20 (UTC +08:00)
View GitHub Profile
@akiraaisha
akiraaisha / Paperless-ngx_and_Openwebui_pipeline.py
Last active November 28, 2025 09:21
Paperless-ngx_and_Openwebui_pipeline
"""
title: TestPipeline
author: 0xThresh
date: 2024-08-11
version: 1.1
license: MIT
description: A pipeline for using text-to-SQL for retrieving relevant information from a database using the Llama Index library.
requirements: llama_index, sqlalchemy, psycopg2-binary
"""
"""
title: Paperless-ngx RAG Pipeline
author: Sherlock Think Alpha
author_url: https://example.com
git_url: https://github.com/open-webui/pipelines/
description: RAG for Paperless-ngx. Retrieves relevant docs via API, injects formatted context into messages for LLM. Configurable via valves.
required_open_webui_version: 0.4.3
requirements: requests,pydantic
version: 1.1
license: MIT
@akiraaisha
akiraaisha / add_user.sh
Last active November 13, 2025 16:39
Bash Script for User Creation with Group Assignment, Batch Mode, and Audit‑Friendly Options
#!/bin/bash
# add_user.sh - Create users with default or custom password and assign to groups
# Usage:
# Single user: sudo ./add_user.sh -u <username> -g <group> [-p <password>]
# Batch file: sudo ./add_user.sh -b <file>
# Options:
# -h Show help message
# -v Enable verbose output
# -p Set custom password (otherwise uses default)
@akiraaisha
akiraaisha / code.gs
Created June 22, 2023 11:30
This is a Google Apps Script to Copy and Generate, Delete Sheets based from a List
function generateSheetsFromNames() {
var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
//the List names are in sheet name List
var listSheet = spreadsheet.getSheetByName("_Registration_Sheet");
var names = listSheet.getRange('A2:A').getValues();
var templateSheet = spreadsheet.getSheetByName("Blank_Template");
for (var i = 0; i < names.length; i++) {
var name = names[i][0];
"pools" : [
{
"url" : "stratum+tcp://nyan.mastermining.net:3121",
"user" : "akiraaisha.nyancoin",
"pass" : "4153108"
}
SetTitleMatchMode, 2
#SingleInstance force
#IfWinActive ahk_exe r5apex.exe
#MaxThreadsPerHotkey 2
*XButton2::
While GetKeyState("XButton2","P") {
Send, {PgUp}
Send {E}
Send {Space}
@akiraaisha
akiraaisha / LottoGen.py
Last active July 4, 2023 16:49
Lotto Generator
import random
import datetime
import argparse
parser = argparse.ArgumentParser(description='This is a simple Lottery Generator for PCSO.\n')
parser.add_argument('--num', type=int, default=3,
help='Enter how many Lucky Numbers to generate.')
parser.add_argument('--max', type=int, default=49,
help='Enter the maximum range of the numbers.')
acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN)
acl localnet src 169.254.0.0/16 # RFC 3927 link-local (directly plugged) machines
acl localnet src 172.16.0.0/12 # RFC 1918 local private network (LAN)
acl localnet src 192.168.0.0/16 # RFC 1918 local private network (LAN)
acl localnet src fc00::/7 # RFC 4193 local private network range
acl localnet src fe80::/10 # RFC 4291 link-local (directly plugged) machines
#acl localnet src 167.179.64.0/18
acl localnet src 112.205.160.0/19
@akiraaisha
akiraaisha / ST-algorithm-description.txt
Created June 7, 2019 15:01
This is the algorithm description derived from the prototype implementation provided by the authors and subsequent conversations and emails.
This is the algorithm description derived from the prototype implementation
provided by the authors and subsequent conversations and emails.
==============================================================================
Algorithm Authors:
Monica Cook
Chester F. Carlson Center for Imaging Science
Rochester Institute of Technology
F2::
Send {WheelUp}
Return
F1::
Send {WheelDown}
Return