Skip to content

Instantly share code, notes, and snippets.

View dterracino's full-sized avatar
🐢
I may be slow to respond…

David Terracino dterracino

🐢
I may be slow to respond…
View GitHub Profile
@dterracino
dterracino / MinHeap.java
Created September 27, 2020 05:01 — forked from fehmicansaglam/MinHeap.java
MinHeap
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>> {
@dterracino
dterracino / CSVGridView.bat
Created September 27, 2020 03:48 — forked from dstreefkerk/CSVGridView.bat
Batch file that enables a CSV to be dragged/dropped and then opened in a PowerShell GridView. Requires the PowerShell ISE to be instaled.
@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
@dterracino
dterracino / Schedule-ChocoUpgradeAll.ps1
Created September 27, 2020 03:45 — forked from dstreefkerk/Schedule-ChocoUpgradeAll.ps1
PowerShell script to create a scheduled task that runs a choco upgrade all at machine startup
# 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
@dterracino
dterracino / MatrixAddFunctional.cs
Created September 10, 2020 02:38 — forked from ZacharyPatten/MatrixAddFunctional.cs
Algorithm avstraction
using System;
using Towel;
class Program
{
static void Main()
{
int[,] a = new int[,]
{
{ 1, 2, 3, },
@dterracino
dterracino / YoutubeDownloader.user.js
Created August 23, 2020 21:39 — forked from youtubetomp3converterapi/YoutubeDownloader.user.js
This allows All browser users to download and convert YouTube videos to mp3 (320) kbps files and also videos with a variety of high quality options 2160p (4k), 1440p (2k), 1080p (HD), 720p (HD), 480p, 360p, 144p etc. This video quality is supported for all available video formats (MP4, WEBM, 3GP). Then Visit https://www.youtube.com/new
// ==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
@dterracino
dterracino / githubfont.js
Created August 23, 2020 21:37 — forked from peko/githubfont.js
Github font changer script for #tampermonkey
// ==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==
@dterracino
dterracino / emuparadise.download.user.js
Created August 23, 2020 21:37 — forked from infval/emuparadise.download.user.js
emuparadise.me download workaround (Most games + Sega Dreamcast, Books/Comics/Guides/Magazines)
// ==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/
@dterracino
dterracino / o365-notifications.user.js
Created April 30, 2020 05:40 — forked from bparker98/o365-notifications.user.js
Office 365 Notifications Tampermonkey Script
// ==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
@dterracino
dterracino / ArgumentHelper
Created April 30, 2020 05:30 — forked from IllyaTheHath/ArgumentHelper.cs
Extension Methods
/// <summary>
/// 参数校验辅助类
/// </summary>
public static class ArgumentHelper
{
#region Null/Empty Checking
public static void CheckIfNull(Object value)
{
if (value == null)
// ==UserScript==
// @author MoaMoa
// @name fanatical keyextract
// @namespace http://tampermonkey.net/
// @version 0.4
// @description fanatical keyextract
// @include https://www.fanatical.com/*/orders
// @require https://cdn.bootcss.com/jquery/3.5.0/jquery.slim.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_setClipboard