Skip to content

Instantly share code, notes, and snippets.

@dstockhammer
dstockhammer / seed.json
Created December 31, 2020 15:11
Development seed data for factorio.tech. Blueprints taken from https://factorioprints.com
{
"blueprints": [
{
"title": "Late Game Beaconed Furnace smelt array",
"description": "Beaconed Electric Furnace smelt array for version (1.0.0) outputs two full blue belts 5300/min. For single side output is one blue belt 2700/min.",
"owner": "Harley Goedhart",
"tags": [ "/general/beaconized", "/general/late game (megabase)" ],
"coverUri": "https://i.imgur.com/5XuAcqV.jpeg",
"encoded": "0eNrdnc1yXEeOhV+FwbXlvvl/0w8wq1nNLDs6HJRV9jCaIhn86R5Hh999qkiLLJmXXR/OsTazUkgi82QCNzOBAyTwr/OPV4+727vL64cfP97c/P38h3+9/sv9+Q9/Pfrr4f8+7e5/uru8fbi8uT7/4fxq9/PD2f3lp93ZzePD7ePDWR7L8pfPl9dnPz9eXZ0dfvPs4+7q4fuz8+/OL3+6uX4e8f7yl+uLq8NwD7/e7vbjXD7sPu9/4vri8+FvH3cX+x89/23/K9efdv97/kP67buTv7T739u73f39h4e7i+v725u7hw8H4KNB8m9/++58d/1w+XC5e57G019+/fH68fPH3d0e5dRY353f3txfPi/9X+f7IT+U8X377vzX8x9a+b7toT5d3u1+ev6BepjzHxDyH5f4dsTav4zYnkY8LPL+8J/3t7vdpw+fbz49Xu0+lMNyNgAKAFgcgOrIqBEZNQehEoQe0cIqCGkAgPIFYAgAa0TNygqmo4RBlJAWB6IjiNcNff/48f7h4ulHN0Q1nwedW5JIr3t2d7VHu7v86cPPj3fXFz/t/p1a+/K11G/v9gLfz/Uf+7FPCT
@dstockhammer
dstockhammer / upgrade.sh
Created March 16, 2020 14:35
Upgrade oh-my-zsh custom plugins and themes (add to the end of .oh-my-zsh/tools/upgrade.sh)
printf "\n${BLUE}%s${NORMAL}\n" "Updating custom plugins and themes"
for plugin in custom/*/*/; do
if [ -d "$plugin/.git" ]; then
printf "${YELLOW}%s${NORMAL}\n" "${plugin%/}"
git -C "$plugin" pull
fi
done
printf "${BLUE}%s${NORMAL}\n" "Hooray! Custom plugins and themes have been updated and/or are at the current version."

Keybase proof

I hereby claim:

  • I am dstockhammer on github.
  • I am dstockhammer (https://keybase.io/dstockhammer) on keybase.
  • I have a public key whose fingerprint is 3DBB 2C15 F9B7 332C 4FFA 695B D0AC 5C0C E1F5 9A89

To claim this, I am signing this object:

@dstockhammer
dstockhammer / replace.md
Created July 7, 2017 11:06
packages.config to .csproj (Notepad++ RegEx)
  • Find what: <package id="(.*)" version="(.*)" targetFramework=".*"[ ]?\/>
  • Replace with: ``
@dstockhammer
dstockhammer / unlist-packages.ps1
Last active February 25, 2024 18:44
Unlist all versions of a NuGet package
$PackageId = "xxx"
$ApiKey = "yyy"
$json = Invoke-WebRequest -Uri "https://api.nuget.org/v3-flatcontainer/$PackageId/index.json" | ConvertFrom-Json
foreach($version in $json.versions)
{
Write-Host "Unlisting $PackageId, Ver $version"
Invoke-Expression ".\nuget.exe delete $PackageId $version $ApiKey -source https://api.nuget.org/v3/index.json -NonInteractive"
}
@dstockhammer
dstockhammer / Set-ProjectVersion.psm1
Created December 22, 2016 13:34
Set-ProjectVersion for AppVeyor
<#
.Synopsis
Updates project.json version
.Description
Updates the project.json version to include the build number as pre-release suffix.
If the current build is a tag, the the build number is *NOT* appended.
.Parameter Path
The path to the project.json file.