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
| # Resets the password for the default LXSS / WSL bash user, based on https://askubuntu.com/a/808425/697555 | |
| $lxssUsername = (Get-ItemProperty HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Lxss).DefaultUsername | |
| lxrun /setdefaultuser root | |
| bash -c "passwd $lxssUsername" | |
| lxrun /setdefaultuser $lxssUsername |
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
| // paste in your console | |
| speechSynthesis.onvoiceschanged = function() { | |
| var msg = new SpeechSynthesisUtterance(); | |
| msg.voice = this.getVoices().filter(v => v.name == 'Cellos')[0]; | |
| msg.text = Object.keys(window).join(' '); | |
| this.speak(msg); | |
| }; |
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
| package net.fehmicansaglam.minheap; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| @SuppressWarnings("unused") | |
| public class MinHeap<K, V extends Comparable<V>, T extends MinHeap.Item<K, V>> { |
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
| @echo off | |
| IF "%~1"=="" GOTO NOFILE | |
| set CSVPATH=%~1 | |
| ECHO Loading CSV %CSVPATH% | |
| powershell.exe -NoProfile -NoExit -NoLogo -Command "if ((Test-Path $env:CSVPATH -PathType Leaf) -and ($env:CSVPATH -like '*.csv')) {Import-Csv -Path $env:CSVPATH | Out-GridView -Wait -Title $env:CSVPATH};exit" | |
| GOTO END | |
| :NOFILE |
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
| # See if choco.exe is available. If not, stop execution | |
| $chocoCmd = Get-Command -Name 'choco' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select-Object -ExpandProperty Source | |
| if ($chocoCmd -eq $null) { break } | |
| # Settings for the scheduled task | |
| $taskAction = New-ScheduledTaskAction –Execute $chocoCmd -Argument 'upgrade all -y' | |
| $taskTrigger = New-ScheduledTaskTrigger -AtStartup | |
| $taskUserPrincipal = New-ScheduledTaskPrincipal -UserId 'SYSTEM' | |
| $taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8 |
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
| using System; | |
| using Towel; | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| int[,] a = new int[,] | |
| { | |
| { 1, 2, 3, }, |
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 Youtube Downloader | |
| // @description This extension add a download tab button on any Youtube page and allows you to download MP3 & Video with just one click (4K Ultra High Definition Supported). | |
| // @icon https://www.vevioz.com/images/icon.png | |
| // | |
| // @author Community.vevioz.com | |
| // @namespace https://community.vevioz.com | |
| // | |
| // @license GPLv3 - https://www.gnu.org/licenses/gpl-3.0.txt | |
| // @copyright Copyright (C) 2020, by Community.vevioz.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
| // ==UserScript== | |
| // @name Github font | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://*.github.com/* | |
| // @grant none | |
| // ==/UserScript== |
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 EmuParadise Download Workaround | |
| // @version 1.2.2 | |
| // @description Replaces the download button link with a working one | |
| // @author infval (Eptun) | |
| // @match https://www.emuparadise.me/*/*/* | |
| // @grant none | |
| // ==/UserScript== | |
| // https://www.reddit.com/r/Piracy/comments/968sm6/a_script_for_easy_downloading_of_emuparadise_roms/ |
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 Office 365 Notifications | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.4 | |
| // @description try to take over the world! | |
| // @author Brandon Parker | |
| // @match https://outlook.office365.com/* | |
| // @match https://outlook.office.com/* | |
| // @iconURL https://r1.res.office365.com/owa/prem/16.1630.12.2223203/resources/images/0/favicon_mail.ico | |
| // @UpdateURL https://gist.githubusercontent.com/bparker98/fdd125541c8ec9c676ca435e9eb9165a/raw/o365-notifications.user.js |