Skip to content

Instantly share code, notes, and snippets.

View xPaw's full-sized avatar

Pavel Djundik xPaw

View GitHub Profile
@xPaw
xPaw / Microsoft.PowerShell_profile.ps1
Last active October 8, 2024 10:34
powershell prompt based on ys theme
# https://gist.github.com/xPaw/15fe59e92a00ab1d4004fb05b37764ff
$env:DOTNET_CLI_TELEMETRY_OPTOUT = "1"
$env:POWERSHELL_TELEMETRY_OPTOUT = "1"
$env:POWERSHELL_UPDATECHECK = "Off"
Set-Alias -Name l -Value Get-ChildItem
function .. { Set-Location .. }
function ... { Set-Location ../.. }
// ==UserScript==
// @name Go to recent Steam game achievements page
// @namespace xpaw-go-to-recent-game-achievements
// @match https://steamcommunity.com/*
// @grant none
// @version 1.0
// @author xPaw
// ==/UserScript==
const popup = document.querySelector( '#account_dropdown .popup_body' );
@xPaw
xPaw / fix-discord-audio-capture.user.js
Last active July 31, 2024 07:01
Fix audio quality in Discord screen capture in browser
// ==UserScript==
// @name Fix audio quality in Discord screen capture
// @namespace xpaw-fix-discord-audio-capture
// @author xPaw
// @version 1.0.0
// @description Disable audio processing when broadcasting, force 60 FPS capture
// @match https://discord.com/*
// @downloadURL https://gist.github.com/xPaw/65e7abcf5c1db5cfc1114fbc2bb66632/raw/fix-discord-audio-capture.user.js
// @icon data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%235865F2' d='M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm0 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20ZM11 6v12a1 1 0 1 1-2 0V6a1 1 0 1 1 2 0ZM7 9v6a1 1 0 1 1-2 0V9a1 1 0 1 1 2 0Zm8-1v8a1 1 0 1 1-2 0V8a1 1 0 1 1 2 0Zm4 3v3a1 1 0 1 1-2 0v-3a1 1 0 1 1 2 0Z'/%3E%3C/svg%3E
// @grant unsafeWindow
// ==UserScript==
// @name Advent of Code Improvements
// @namespace https://gist.github.com/xPaw/4fffaf776fe14d15c9602991f51dbfa1
// @updateURL https://gist.github.com/xPaw/4fffaf776fe14d15c9602991f51dbfa1
// @version 1.2
// @author xPaw
// @match https://adventofcode.com/*
// @icon https://adventofcode.com/favicon.png
// @grant GM_addStyle
// @run-at document-end
// ==UserScript==
// @name Remove animation style from Steam sale pages
// @namespace remove-animation-on-steam-sales
// @match https://store.steampowered.com/sale/*
// @icon https://store.steampowered.com/favicon.ico
// @version 1.0
// @author xPaw
// @grant GM_addStyle
// ==/UserScript==
@xPaw
xPaw / wordle.js
Last active January 8, 2022 12:35
const words = [
"cigar", "rebut", "sissy", "humph", "awake", "blush", "focal", "evade", "naval", "serve", "heath", "dwarf", "model", "karma", "stink", "grade", "quiet", "bench", "abate", "feign", "major", "death", "fresh", "crust", "stool", "colon", "abase", "marry", "react", "batty", "pride", "floss", "helix", "croak", "staff", "paper", "unfed", "whelp", "trawl", "outdo", "adobe", "crazy", "sower", "repay", "digit", "crate", "cluck", "spike", "mimic", "pound", "maxim", "linen", "unmet", "flesh", "booby", "forth", "first", "stand", "belly", "ivory", "seedy", "print", "yearn", "drain", "bribe", "stout", "panel", "crass", "flume", "offal", "agree", "error", "swirl", "argue", "bleed", "delta", "flick", "totem", "wooer", "front", "shrub", "parry", "biome", "lapel", "start", "greet", "goner", "golem", "lusty", "loopy", "round", "audit", "lying", "gamma", "labor", "islet", "civic", "forge", "corny", "moult", "basic", "salad", "agate", "spicy", "spray", "essay", "fjord", "spend", "kebab", "guild", "aback", "motor",
// ==UserScript==
// @name Display game id on IGDB
// @namespace https://www.igdb.com/games/
// @version 1.0
// @author xPaw
// @match https://www.igdb.com/games/*
// @icon https://www.igdb.com/favicon.ico
// @grant none
// ==/UserScript==
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
#if defined( _WIN32 ) && !defined( _X360 )
#include <windows.h> // for widechartomultibyte and multibytetowidechar
@xPaw
xPaw / lazyload_intersection.js
Last active October 20, 2020 09:31
Lazy load elements when they appear in view using IntersectionObserver
let observer;
function LazyLoad( element, callback )
{
if( !( 'IntersectionObserver' in window ) )
{
callback();
return;
}