Skip to content

Instantly share code, notes, and snippets.

View boardev's full-sized avatar

Boar boardev

  • MHP
  • Ukraine
  • 15:19 (UTC +02:00)
View GitHub Profile
@garyo
garyo / WindowsDevMachineSetup.ps1
Last active April 17, 2025 18:42
Script to set up a Windows dev machine
# Script to set up a Windows 11 machine for software development
# Author: Gary Oberbrunner, [email protected]
# License: MIT
# Requires elevation
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Host "This script requires admin privileges. Please run PowerShell as Administrator and try again."
Exit 1
}
@JakubMarcinkowski
JakubMarcinkowski / table-copier-clipboard.user.js
Last active May 5, 2025 10:58
Table copier (to clipboard) - userscript for Tampermonkey (hopefully other managers too).
// ==UserScript==
// @name Table copier (to clipboard)
// @version 0.3.1
// @description Choose from your userscipts addon menu. All tables are highlighted, click one to copy, elsewhere to cancel. Copy table and paste into spreadsheets like Excel, Google Sheets, LibreOffice Calc, OpenOffice Calc and others.
// @author Jakub Marcinkowski <kuba.marcinkowski on g mail>
// @copyright 2024+, Jakub Marcinkowski <kuba.marcinkowski on g mail>
// @license Zlib
// @namespace Jakub Marcinkowski
// @homepageURL https://gist.github.com/JakubMarcinkowski
// @homepageURL https://github.com/JakubMarcinkowski
@oleshkooo
oleshkooo / The_easiest_way_to_set_up_absolute_paths_in_your_TypeScript_project.md
Last active October 13, 2025 07:55
The easiest way to set up absolute paths in your TypeScript project
// ==UserScript==
// @name Disable Page Visibility API and Copy-Paste detection
// @version 1
// @grant none
// @match *://*/*
// ==/UserScript==
/* Disable Page Visibility API */
/* https://github.com/IceWreck/Page-Visibility-User-Script */
let events_to_block = [
@taskylizard
taskylizard / fmhy.md
Last active November 3, 2025 04:56
/r/freemediaheckyeah, in one single file (view raw)
#restore from file
Get-Content .\vscode.extensions | ForEach-Object {code --install-extension $_}
#backup to file
code --list-extensions > vscode.extensions
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\PeerDistSvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\diagsvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\GraphicsPerfSvc]
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AppVClient]
@designbyadrian
designbyadrian / Console.log() override.js
Created August 18, 2014 14:41
Hijack console.log, console.warn, and console.error without breaking the default browser function.
var cl,ce,cw;
if(window.console && console.log){
cl = console.log;
console.log = function(){
MyLogFunction(arguments);
cl.apply(this, arguments)
}
}