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 / trsm
Created August 11, 2025 23:03 — forked from khurshid-alam/trsm
Transmission-Shutdown-script
#!/bin/bash
#Transmission-Shutdown-Script
========
#This is the transmission shutdown script I wrote for a [askubuntu question](http://askubuntu.com/questions/202537/transmission-#shutdown-script-for-multiple-torrents) with the help of transmission RPC interface.
#**What it Does?**
@pa-0
pa-0 / transmission-daemon
Created August 11, 2025 23:00 — forked from gene1wood/transmission-daemon
transmission-daemon sysconfig file to enable binding to an interface
# /etc/sysconfig/transmission-daemon
INTERFACE=ppp0 # Set this to the interface you want the daemon to bind to
if /sbin/ifconfig $INTERFACE >>/dev/null 2>&1; then
BIND_ADDR="`/sbin/ifconfig $INTERFACE | awk '$1 == \"inet\" {print $2}' | awk -F: '{print $2}'`"
else
BIND_ADDR="127.0.0.1"
fi
@pa-0
pa-0 / README.md
Created July 13, 2025 05:48 — forked from JohannesDeml/README.md
Batch convert images with inkscape on windows

Batch convert svg|pdf|eps|emf|wmf|ai|ps|cdr to eps|pdf|png|jpg|tiff|svg|ps|emf|wmf

Screenshot Batch converter for Windows using Inkscape with the command line
InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)

Usage

  1. Download _InkscapeBatchConvert.bat
  2. Put it in the folder where you have files you wish to convert (will also scan on all subfolders for files of input type).
  3. Then double click the file to start it.
@pa-0
pa-0 / iconify.scm
Created July 12, 2025 22:15 — forked from AceOfSnakes/iconify.scm
"*.ico" generator script for GIMP
;Iconify.scm
;===========================
;Author...Giuseppe Bilotta
;Modified for Gimp 2.4.6+ by Ouch67
;http://www.gimptalk.com/forum/broken-scripts-t33501.html
;Resubmission to Gimp Plugin Registry & GimpTalk by Gargy
;Modified for Gimp 2.8 by Roland Clobus
;Modified for Gimp 2.99.8+ by GlitchyPie
; 2023-08-18 Additional updates to fix breaking changes since aprox Gimp 2.99.16
;------------
; AddClearBtnToEdit.ahk
; http://ahkscript.org/boards/viewtopic.php?f=6&t=6788
/*
Function: AddClearBtnToEdit
Add a 'clear text' button over an edit control
Version:
1.21 (2015-3-21)
- Fixed a bug: Create a resizable GUI and edit control with some initialized text, resize the GUI around, the clear text button is not there, or disappears.
1.20 (2015-3-21)
#define _AFXDLL
#include <WinSock2.h> // MFC...
#include <windows.h>
#include <afxwin.h> // CBitmap
#include <atlbase.h>
#include <atlcom.h> // CComPtr
#include <d2d1.h>
#include <d2d1_3.h> // ID2D1DeviceContext5
#include <wincodec.h> // Wic
@pa-0
pa-0 / Matrixeffect.pb
Created June 24, 2025 13:49 — forked from falsam/Matrixeffect.pb
Matrix effect
ExamineDesktops() : sw=DesktopWidth(0) : sh=DesktopHeight(0)
InitSprite()
OpenScreen(sw,sh,DesktopDepth(0),"")
InitKeyboard() : SpriteQuality(1)
If sh=>1200
a=256
EndIf
f=FontID(LoadFont(-1,"Courier",sh/55,a))
StartDrawing(ScreenOutput())
#Requires -RunAsAdministrator
# Disable telemetry in Visual Studio 2022 - https://learn.microsoft.com/en-us/visualstudio/ide/visual-studio-experience-improvement-program?view=vs-2022
New-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\VSCommon\17.0\SQM" -Name "OptIn" -Value "0" -PropertyType "DWORD" -Force
# Delete telemetry directories
Remove-Item -Path "$env:APPDATA\vstelemetry" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:LOCALAPPDATA\Microsoft\VSApplicationInsights" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:PROGRAMDATA\Microsoft\VSApplicationInsights" -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path "$env:TEMP\Microsoft\VSApplicationInsights" -Recurse -Force -ErrorAction SilentlyContinue
@pa-0
pa-0 / ProcessMonitor.ps1
Created June 7, 2025 02:32 — forked from Dimtemp/ProcessMonitor.ps1
Process monitor PowerShell
Function ProcessMonitor {
<#
.SYNOPSIS
Displays changes in the process list on this or a remote PC.
.DESCRIPTION
Great for monitoring logon/startup scripts, batch jobs, software installations, etc... Especially on terminal servers.
.EXAMPLE
ProcessMonitor
Compares changes in the process list every second on the local computer.
.EXAMPLE
function Update-dotNETVideo
{
[CmdletBinding()]
param (
# A path to subtitle file of folder where the subtitles are located.
[Parameter(Mandatory = $true,
ValueFromPipeline = $true,
ValueFromPipelineByPropertyName = $true,
ValueFromRemainingArguments = $false,
Position = 0,