Skip to content

Instantly share code, notes, and snippets.

View semidark's full-sized avatar
🛡️
Cybersecurity

semidark semidark

🛡️
Cybersecurity
View GitHub Profile
"""
title: perplexica stream pipe
author: open-webui, gwaanl, semidark
author_url:https://github.com/semidark/perplexica-pipe-stream.py
version: 0.6.0
required_open_webui_version: 0.5.3
Changelog:
0.6.0: Enhanced citation display
- Added proper citation formatting with titles
- Implemented collapsible references section
@semidark
semidark / p10k.zsh
Created March 1, 2024 11:20
powerlevel10k default configuration
'builtin' 'local' '-a' 'p10k_config_opts'
[[ ! -o 'aliases' ]] || p10k_config_opts+=('aliases')
[[ ! -o 'sh_glob' ]] || p10k_config_opts+=('sh_glob')
[[ ! -o 'no_brace_expand' ]] || p10k_config_opts+=('no_brace_expand')
'builtin' 'setopt' 'no_aliases' 'no_sh_glob' 'brace_expand'
() {
emulate -L zsh -o extended_glob
unset -m '(POWERLEVEL9K_*|DEFAULT_USER)~POWERLEVEL9K_GITSTATUS_DIR'
@semidark
semidark / nh-lms-test.py
Last active January 22, 2024 08:07
New Horizons Remote LMS Selenium Test
# Selenium / Python Test Script that checks the Login and
# Chat Capabilities of the New Horizons Remote Learning LMS
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
@semidark
semidark / monitor-wordpress-option-changes.php
Last active January 24, 2023 01:40
Monitor Wordpress option changes in debug.log
<?php
// Add this to active themes function.php
// activate Wordpress Debug mode
add_action( 'updated_option', function($option,$old_value, $value, ){
if ($option=="cron") return 0;
error_log("WP-Option Change");
error_log("================");