View PostTo-Bluesky.ps1
This file contains 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
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'AppPassword')] | |
param( | |
[Parameter(Mandatory)] | |
[string] $AccountHandle, | |
[Parameter(Mandatory)] | |
[string] $AppPassword) | |
function New-HashTag { |
View Invoke-GrowAiEgg.ps1
This file contains 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
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidUsingPlainTextForPassword', 'AppPassword')] | |
param( | |
[Parameter(Mandatory)] | |
[string] $AccountHandle, | |
[Parameter(Mandatory)] | |
[string] $AppPassword) | |
Set-StrictMode -Version Latest |
View isshu.cs
This file contains 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
static int GetPoemNumber( | |
string poem) | |
{ | |
return poem switch | |
{ | |
"あきのたのかりほのいほのとまをあらみわがころもではつゆにぬれつつ" => 1, | |
"はるすぎてなつきにけらししろたへのころもほすてふあまのかぐやま" => 2, | |
"あしびきのやまどりのをのしだりをのながながしよをひとりかもねむ" => 3, | |
"たごのうらにうちいでてみればしろたへのふじのたかねにゆきはふりつつ" => 4, | |
"おくやまにもみぢふみわけなくしかのこゑきくときぞあきはかなしき" => 5, |
View ddsk.cs
This file contains 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 System.Collections.Generic; | |
using System.Linq; | |
const int MaxAttempts = 100; | |
foreach (var s in GenerateDdsk().DoWhile(x => !x.LoveInjected).Take(MaxAttempts).Select(x => x.Ddsk)) | |
{ | |
Console.WriteLine(s); | |
} |
View sources.list
This file contains 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 http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
# newer versions of the distribution. | |
deb mirror+http://mirrors.ubuntu.com/mirrors.txt focal main restricted | |
# deb-src mirror+http://mirrors.ubuntu.com/mirrors.txt focal main restricted | |
## Major bug fix updates produced after the final release of the | |
## distribution. | |
deb mirror+http://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted | |
# deb-src mirror+http://mirrors.ubuntu.com/mirrors.txt focal-updates main restricted |
View asciidoc-static.adoc
There are 19 static site generators that support AsciiDoc sourcing.
View Get-CommandParameter.ps1
This file contains 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
function Get-CommandParameter { | |
param( | |
[Parameter(Mandatory, Position = 0, ValueFromPipeline)] | |
[string] $Name, | |
[ValidateNotNullOrEmpty()] | |
[string[]] $ParameterSetName = @(), | |
[switch] $IncludeCommonParameters) |
View AwsPortForwarding.ps1
This file contains 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
function Start-AwsPortForwarding { | |
param( | |
[Parameter(Mandatory, Position = 0)] | |
[string] $TargetInstanceId, | |
[Parameter(Mandatory)] | |
[int] $RemotePort, | |
View JenkinsBuildTimeSummary.groovy
This file contains 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
Jenkins.get().allItems.findAll { | |
it instanceof hudson.model.Job<?, ?> | |
}.each { | |
def build = it.lastBuild | |
while (true) { | |
if (build == null) { break } | |
if (build.timestamp.get(Calendar.MONTH) <= Calendar.MARCH) { break } |
NewerOlder