Skip to content

Instantly share code, notes, and snippets.

View Get-DadJokeIpsum.ps1
Get some filler text that is dad jokes
.PARAMETER minLength
The minimum length of text you need
PS> Get-DadJokeIpsum -minLength 500
Where did Captain Hook get his hook? From a second hand store. Why was the broom late for the meeting? He overswept. Dad, can you put my shoes on? I don't think they'll fit me. For Valentine's day, I decided to get my wife some beads for an abacus. It's the little things that count. Why is the ocean always blue? Because the shore never waves back. How does a dyslexic poet write? Inverse. Whiteboards ... are remarkable. Want to hear a joke about construction? Nah, I'm still working on it. Why do scuba divers fall backwards into the water? Because if they fell forwards theyâd still be in the boat. Some people say that comedians who tell one too many light bulb jokes soon burn out, but they don't know watt they are talking about. They're not that bright. Don't trust atoms. They make up everything. I am terrified of elevators. Iâm going to start taking steps to
View openapi.json
{"openapi":"3.0.2","info":{"title":"Service for namespace service_ticket_api.Models.RemedyForceModels","description":"This service is located at [https://localhost/service-root/](https://localhost/service-root/)","version":""},"servers":[{"url":"https://localhost/service-root"}],"tags":[{"name":"Accounts"},{"name":"Users"},{"name":"Contacts"},{"name":"Groups"},{"name":"Urgency"},{"name":"Tickets"},{"name":"Broadcasts"},{"name":"Category"},{"name":"BaseElements"},{"name":"CmdbClass"},{"name":"ContentImport"},{"name":"Model"},{"name":"CategoryTypes"},{"name":"Impacts"},{"name":"Priority"},{"name":"Status"},{"name":"SYSStage"},{"name":"BusinessServices"},{"name":"Leads"},{"name":"SysTemplates"},{"name":"SelfService_Theme"},{"name":"Actions"},{"name":"Attachments"},{"name":"ChangeRequest"},{"name":"ChangeRequestServiceTarget"},{"name":"ServiceLevelAgreement"},{"name":"BusinessHours"},{"name":"Incident"},{"name":"IncidentChangeLinks"},{"name":"IncidentCiLinks"},{"name":"IncidentServiceTargets"},{"name":"KnowledgeA
View Copy-PasteItem.ps1
Copy files using your clipboard and PowerShell
The file specified at $Path is converted to a base64 string, wrapped with a tiny script that converts the base64 string
back to binary and saves it at the path specified in the $Destination parameter
function Copy-PasteItem {
View myTools.js
var myTools = {
groupBy: function (xs, key) {
return xs.reduce(function (rv, x) {
(rv[x[key]] = rv[x[key]] || []).push(x);
return rv;
}, {});
productDataNormalized: async () => {
return await (await fetch('')).json();
Tiberriver256 / index.html
Last active Feb 24, 2021
GistPad - Template (Basic - HTML/JS/CSS)
View index.html
<div class="playingCards fourColours faceImages">
<div class="card rank-7 spades">
<span class="rank"></span>
<span class="suit"></span>
<div class="playingCards faceImages">
<div class="card rank-7 diams">
<span class="rank"></span>
View index.html
<table style="width: 100%; overflow-x: hidden; table-layout: fixed;">
<td style="text-align: center; width: 200px; border-right: solid;">
<img src="" style="max-height: 100px;" />
<td style="padding-left: 20px">
View boxstarter-basic
## Git
cinst -y git.install
cinst -y poshgit
cinst -y Git-Credential-Manager-for-Windows
cinst -y visualstudiocode
Tiberriver256 / FindPortProcessName.ps1
Created Mar 12, 2019
Gets the process name and PID for a given port
View FindPortProcessName.ps1
$Port = "8080"
netstat -a -n -o | where { $_ -match $Port } | foreach {
$Process = Get-Process -PID (($_ -replace "\s+"," ") -split " ")[-1]
"Process: $($Process.ProcessName) ($($Process.Id)) is using $Port"
Tiberriver256 / FindPortProcessName
Created Mar 12, 2019
Find what process is using a port on Windows
View FindPortProcessName
$Port = "8080"
netstat -a -n -o | where { $_ -match $Port } | foreach {
$Process = Get-Process -PID (($_ -replace "\s+"," ") -split " ")[-1]
"Process: $($Process.ProcessName) ($($Process.Id)) is using $Port"
Tiberriver256 / setup.ps1
Last active Nov 22, 2018
My Ubuntu development environment setup script
View setup.ps1
Install-Module -Name Get-ChildItemColor, oh-my-posh, posh-git, nvm -Force
md ~\.config\powershell
"Set-Theme -name Darkblood" | Out-File $Profile -Append
Install-NodeVersion 8
Install-NodeVersion 10