Skip to content

Instantly share code, notes, and snippets.

View dataserver's full-sized avatar
💤
vacation

John dataserver

💤
vacation
View GitHub Profile
@dataserver
dataserver / mp3splitter.py
Created April 5, 2025 19:32
This script splits a large MP3 file (downloaded from youtube) into individual tracks based on timestamps provided in a tracklist text file
"""
MP3 Splitter CLI Tool
This script splits a large MP3 file into individual tracks based on timestamps provided in a tracklist text file.
The user can specify which tracks to ignore. The script saves the resulting split tracks to a specified output directory.
Usage:
python split.py -i <input_mp3_file> -t <tracklist_file> -o <output_directory>
Arguments:
@dataserver
dataserver / feriados_2025_SaoPaulo-SP.ics
Last active April 5, 2025 13:05
Feriados 2025 para cidade de São Paulo-SP ( iCalendar )
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
CALSCALE:GREGORIAN
BEGIN:VEVENT
SUMMARY:Confraternização Universal
DTSTART;VALUE=DATE:20250101
DTEND;VALUE=DATE:20250102
DESCRIPTION:Feriado de Confraternização Universal.
@dataserver
dataserver / RemoveSearchSuggestion.reg
Last active April 3, 2025 11:08
Windows - remove web search suggestion from taskbar (DisableSearchBoxSuggestions)
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer]
"DisableSearchBoxSuggestions"=dword:00000001
@dataserver
dataserver / contemplative-llms.txt
Created January 9, 2025 13:11 — forked from Maharshi-Pandya/contemplative-llms.txt
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@dataserver
dataserver / activate_venv_and_run_script.ps1
Created September 20, 2023 18:07
powershell script to activate python venv and running a script
<#
.SYNOPSIS
Demo script to activate Python VENV and running a script
.DESCRIPTION
Demo script to activate Python VENV and running a script with some args capture by the powershell
.EXAMPLE
scriptname.ps1 -name blabla
#>
@dataserver
dataserver / windows_modal_dialog_box.py
Created August 15, 2023 12:30
Simple windows modal dialog box using ctypes
import ctypes
# https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-messageboxa
# Displays a modal dialog box that contains a system icon, a set of buttons, and
# a brief application-specific message, such as status or error information. The
# message box returns an integer value that indicates which button the user clicked.
NULL = 0
# buttons
# Virtual-Key Codes
# https://learn.microsoft.com/en-us/windows/win32/inputdev/virtual-key-codes?redirectedfrom=MSDN
class VK:
LBUTTON = 0x01 #Left mouse button
RBUTTON = 0x02 #Right mouse button
CANCEL = 0x03 #Control-break processing
MBUTTON = 0x04 #Middle mouse button (three-button mouse)
XBUTTON1 = 0x05 #X1 mouse button
XBUTTON2 = 0x06 #X2 mouse button
# - 0x07 Undefined
@dataserver
dataserver / console.wrapper.js
Created August 10, 2022 13:17
js console wrapper
(function () {
var debug = true;
var methods = [
"assert", "clear", "count", "countReset", "debug", "dir", "dirxml", "error",
"exception", "group", "groupCollapsed", "groupEnd", "info", "log",
"profile", "profileEnd", "table", "time", "timeEnd",
"timeLog", "timeStamp", "trace", "warn"
];
var _cons = (window.console = window.console || {});
methods.forEach(method => {
@dataserver
dataserver / notification.py
Last active July 13, 2022 13:19
windows notification (python)
#
# https://stackoverflow.com/questions/64230231/how-can-i-can-send-windows-10-notifications-with-python-that-has-a-button-on-the
#
import winsdk.windows.data.xml.dom as dom
import winsdk.windows.ui.notifications as notifications
def main():
@dataserver
dataserver / gist:8b123b79f5537b904e608a192412ca9d
Last active July 13, 2022 13:08
youtube bulk comment delete
https://webapps.stackexchange.com/questions/138942/how-to-bulk-delete-youtube-comments-without-deleting-or-deactivating-the-channel
Go to https://www.youtube.com/feed/history/comment_history. Press and hold "End" key on the keyboard until the page stops loading any comments. Click Erasure icon and "click to delete all comments"20 de fev. de 2020
--------------------------