Build software that helps people.
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
| namespace System | |
| { | |
| using System.Globalization; | |
| // source: https://gist.github.com/sandrock/6fe3298b8ac6d9d0d9872dd811a63908 | |
| /// <summary> | |
| /// Extension methods for common types that provide ToInvariantString() capability. | |
| /// </summary> |
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
| javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{ | |
| default: Turndown | |
| }, { | |
| default: Readability | |
| }]) => { | |
| /* Optional vault name */ | |
| const vault = ""; | |
| /* Optional folder name such as "Clippings/" */ |
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
| namespace System | |
| { | |
| using System.Globalization; | |
| // source: https://gist.github.com/sandrock/6fe3298b8ac6d9d0d9872dd811a63908 | |
| /// <summary> | |
| /// Extension methods for common types that provide ToInvariantString() capability. | |
| /// </summary> |
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
| # list ISE Vertical AddOn Tools | |
| $psISE.CurrentPowerShellTab.VerticalAddOnTools | |
| # Add on name from the list retreived above | |
| $addOnName = 'PowerGist' | |
| # Check you've spelled it right and remove | |
| $exists = $psISE.CurrentPowerShellTab.VerticalAddOnTools | where { $_.Name -eq $addOnName } | |
| if ($exists) { | |
| $psISE.CurrentPowerShellTab.VerticalAddOnTools.Remove($exists) |
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
| class Fluent: | |
| def __init__(self, cache=None): | |
| self._cache = cache or [] | |
| # Build the cache, and handle special cases | |
| def _(self, name): | |
| # Enables method chaining | |
| return Fluent(self._cache+[name]) | |
| # Final method call |
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
| #first install all the things: | |
| sudo apt-get install flac ffmpeg mp3splt libav-tools shntool | |
| # Okay first lets do an MP3: | |
| # input files: | |
| # --> cd.ape | |
| # --> cp.cue | |
| # (there are other options, like bitrate, but this is just the bare bones) | |
| avconv -i cd.ape cd.mp3 |
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 com.pamarin.api.util; | |
| import java.awt.image.BufferedImage; | |
| import java.util.Collections; | |
| import java.util.HashMap; | |
| import java.util.LinkedList; | |
| import java.util.List; | |
| import java.util.Map; | |
| /** |
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
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
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
| # | |
| # PowerShell (v3.0) + ODAC (and ADO.net) | |
| # | |
| function Load-DbProviderFactory([ScriptBlock[]]$loaders){ | |
| $fa = $loaders | foreach { | |
| try{ | |
| (& $_)| ? {$_ -is [System.Data.Common.DbProviderFactory]} | |
| }catch{} | |
| } | Select -First 1 |
NewerOlder