This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from PIL import ImageGrab, Image | |
| import pytesseract | |
| import sys | |
| import os | |
| data = ImageGrab.grabclipboard() | |
| if data is None: | |
| sys.exit("No image in clipboard.") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| const targets = [window, document, document.documentElement, document.body].filter(Boolean); | |
| const eventTypes = ['keydown', 'keypress', 'keyup']; | |
| const backup = []; | |
| for (const t of targets) { | |
| backup.push({ | |
| target: t, | |
| onkeydown: t.onkeydown, | |
| onkeypress: t.onkeypress, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://support.google.com/legal/contact/lr_legalother?product=geo | |
| https://support.google.com/youtube/contact/legal_complaint legal@support.youtube.com | |
| https://www.facebook.com/help/contact/319149701968527 | |
| https://www.tiktok.com/legal/report/feedback legal@tiktok.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| param( | |
| [string]$InputDir = '.', | |
| [string]$OutputFile = 'convolut.md' | |
| ) | |
| Set-StrictMode -Version Latest | |
| $ErrorActionPreference = 'Stop' | |
| function Convert-ToMarkdownText { | |
| param( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # Prompt for inputs | |
| read -rp "Server: " server | |
| read -rp "Domain (leave empty if none): " domain | |
| read -rp "Username: " user | |
| read -rsp "Password: " password | |
| echo | |
| # Base command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Mount-Pfad festlegen (anpassen, falls C: woanders gemountet ist) | |
| export WIN_ROOT="${WIN_ROOT:-/mnt/c}" | |
| find "$WIN_ROOT" \ | |
| \( \ | |
| -ipath "$WIN_ROOT/Users/*/AppData/Roaming/fa" -o \ | |
| -ipath "$WIN_ROOT/Users/*/AppData/Roaming/fa/*" -o \ | |
| -ipath "$WIN_ROOT/Users/*/AppData/Local/fa" -o \ | |
| -ipath "$WIN_ROOT/Users/*/AppData/Local/fa/*" -o \ | |
| -ipath "$WIN_ROOT/Users/*/AppData/Local/PCAppStore" -o \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function KillHeadLessWord { | |
| $sessionId = [System.Diagnostics.Process]::GetCurrentProcess().SessionId | |
| Get-Process -Name WINWORD -ErrorAction SilentlyContinue | | |
| Where-Object { $_.MainWindowHandle -eq 0 -and $_.SessionId -eq $sessionId } | | |
| Stop-Process -Force | |
| } | |
| function ProgressWindow { | |
| Add-Type -AssemblyName System.Windows.Forms | |
| $form = New-Object System.Windows.Forms.Form |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Синий ЯКласс | |
| // @description Заменяет зелёный цвет текста на синий на сайте ЯКласс | |
| // @match https://www.yaklass.ru/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gci * | % { "=== $($_.Name) ==="; gc $_ } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Word COM-Objekt holen (bereits laufende Instanz) | |
| $word = [System.Runtime.InteropServices.Marshal]::GetActiveObject("Word.Application") | |
| $doc = $word.ActiveDocument | |
| # WdBuiltinStyle-Konstanten für Heading 1–9 | |
| $headingStyles = @( | |
| -2 # wdStyleHeading1 | |
| -3 # wdStyleHeading2 | |
| -4 # wdStyleHeading3 | |
| -5 # wdStyleHeading4 |
NewerOlder