Skip to content

Instantly share code, notes, and snippets.

View pa-0's full-sized avatar

Peter Abbasi pa-0

View GitHub Profile
@pa-0
pa-0 / PwshBatch.cmd
Created July 16, 2026 23:23 — forked from neuralpain/PwshBatch.cmd
Run a PowerShell code block once in a batch script at any given time and return to Batch when done.
<# :# PowerShell comment protecting the Batch section
@echo off
:# Disabling argument expansion avoids issues with ! in arguments.
setlocal EnableExtensions DisableDelayedExpansion
:# Prepare the batch arguments, so that PowerShell parses them correctly
set ARGS=%*
if defined ARGS set ARGS=%ARGS:"=\"%
if defined ARGS set ARGS=%ARGS:'=''%
@pa-0
pa-0 / btc_monitor.py
Created July 6, 2026 23:52 — forked from essalj/btc_monitor.py
BTC vs Polymarket Monitor
import requests
import time
import json
# --- KONFIGURATION ---
# Indsæt Token ID for det Polymarket marked du vil overvåge
# Du finder dette ID på Polymarket under "Details" eller via deres API.
# Eksempel: Hvis du vil handle på om BTC er over en vis pris.
POLYMARKET_TOKEN_ID = "INDSAET_TOKEN_ID_HER"
@pa-0
pa-0 / basic-scraping.py
Created July 6, 2026 23:52 — forked from mhsmathew/basic-scraping.py
Basic web scraping monitor
import requests
from bs4 import BeautifulSoup
import time
def update():
request = requests.get('https://mathewsteininger.com/sample-product')
html = request.content
soup = BeautifulSoup(html, 'html.parser')
# Monitor this tag to check stock changes
stock = soup.find("button", {"id": "availability"})
@pa-0
pa-0 / zec_monitor.py
Created July 6, 2026 23:52 — forked from nfl0/zec_monitor.py
monitor zcash price w/ binance websocket
import websocket
import json
import psutil
import os
import curses
import threading
import time
# Global variables to store dynamic values
current_price = "Fetching..."
@pa-0
pa-0 / python_monitor_cryptos.py
Created July 6, 2026 23:52 — forked from evgenii-malov/python_monitor_cryptos.py
Monitor crypros with python
# video - https://youtu.be/VqX4YGabI_k
import requests
import json
import time
url_all = "https://api.bittrex.com/api/v1.1/public/getcurrencies"
INTERVAL = 1
j = requests.get(url_all)
@pa-0
pa-0 / Fixes.md
Last active June 26, 2026 10:10 — forked from ELLIOTTCABLE/nerd-patcher-input-mono.sh
Guide: Nerd Font Input Mono Patch

Nerd-Patcher Fixes for Input Mono

Below are all the possible fixes/workarounds I found for potential issues that might arise when attempting to apply the nerd-font patch to InputMono:

[from gist Comments]

Found success with:

  • clone the nerd-fonts repo
  • install fontforge via brew
@pa-0
pa-0 / Fix-Razer.ps1
Created May 15, 2025 00:04 — forked from vanzan01/Fix-Razer.ps1
Fixing Razer Game Manager logoff crashes on Windows 11 24H2 shutdown
# Fix-Razer.ps1 – grace first, force only if needed
$displayName = 'Razer Game Manager Service 3'
$exeName = 'GameManagerService3'
# --- 1 try a normal Stop-Service (graceful) -------------------------------
try {
$svc = Get-Service -DisplayName $displayName -ErrorAction Stop
if ($svc.Status -ne 'Stopped') {
Write-Verbose "Sending SERVICE_CONTROL_STOP to $displayName"
Stop-Service -Name $svc.Name -ErrorAction Stop -WarningAction SilentlyContinue
@pa-0
pa-0 / ToggleMuteMicrophone.ahk
Created October 12, 2025 01:12 — forked from natekford/ToggleMuteMicrophone.ahk
Toggle mute via Windows for a microphone using AHK v2.
#Requires AutoHotkey v2+
#SingleInstance Force
global MIC := "FIFINE T669"
Notify(false)
SetTimer(CheckExes, 1000)
*F24::
{
@pa-0
pa-0 / mute-mic.ahk
Created October 12, 2025 01:07 — forked from airstrike/mute-mic.ahk
AutoHotkey | Toggle microphone hotkey script (Windows+U)
;
; AutoHotkey Version: v1.1.22.06
; Language: English
; Platform: Windows 10
; Author: Andy Terra <github.com/airstrike>
;
; Script Function:
; Toggle Microphone Mute -- assumes it is located at WAVE:1, device #2
; Use the SoundCardAnalysis script to figure out where your mic is
; https://www.autohotkey.com/docs/commands/SoundSet.htm#Ex
@pa-0
pa-0 / README.md
Last active October 12, 2025 01:05
✏️ (autohotkey) - wrap selected text in *symbols*

txt.wrap

wrap selected text in *symbols* using a two-stage hotkey

usage

  • highlight some text
  • press alt + w to activate wrap mode
  • then press any other key to have that character added to either side of the text
  • to remove characters from both sides, press delete or d