Skip to content

Instantly share code, notes, and snippets.

View AdmiringWorm's full-sized avatar

Kim J. Nordmo AdmiringWorm

View GitHub Profile
@AdmiringWorm
AdmiringWorm / Update-AUPackages.md
Last active May 6, 2024 07:37
Update-AUPackages Report #powershell #chocolatey
@AdmiringWorm
AdmiringWorm / pre-commit
Created November 15, 2016 08:15
git hooks I'm using when creating packages for the chocolatey/coreteampackages repository
#!/bin/sh
if git rev-parse --verify HEAD >/dev/null 2>&1
then
against=HEAD
else
# Initial commit: diff against an empty tree object
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
@AdmiringWorm
AdmiringWorm / Update-AUPackages.md
Last active March 12, 2024 20:09
Update-AUPackages Report #powershell #chocolatey

Keybase proof

I hereby claim:

  • I am admiringworm on github.
  • I am admiringworm (https://keybase.io/admiringworm) on keybase.
  • I have a public key ASAH0Z3vgl7IWAqRG-zmoqyRK7RXpg3T02jDwzEAHQnLEwo

To claim this, I am signing this object:

@AdmiringWorm
AdmiringWorm / chocolateyEnvironmentVars.md
Last active April 3, 2022 18:46
Environment variables set when powershell script is running through choco

Environment variables set when powershell script is running through choco

NOTE: All of the following variables need to be prefixed with $env:

  • CHOCOLATEY_VERSION: 0.10.3.0
  • CHOCOLATEY_VERSION_PRODUCT: 0.10.3 (EXPERIMENTAL)
  • ChocolateyForce - $true if the user passed --force when installing, otherwise not set
  • ChocolateyInstall - Set to the path where choco is installed.
  • chocolateyInstallArguments - The extra arguments the user have passed to the installer (EXPERIMENTAL)
  • chocolateyInstallOverride - $true if the user passed --notsilent (EXPERIMENTAL)
  • ChocolateyPackageFolder - The path to where the package content is cached
@AdmiringWorm
AdmiringWorm / dotnet-add.txt
Created March 19, 2017 20:51
dotnet 1.1.0.1179 help pages
Usage: dotnet add [arguments] [options] [command]
Arguments:
<PROJECT> The project file to operate on. If a file is not specified, the command will search the current directory for one.
Options:
-h|--help Show help information
Commands:
package Command to add package reference
@AdmiringWorm
AdmiringWorm / POSHv2 Read-Only aliases.md
Created November 17, 2017 16:21
List of aliases that are Read-Only in Powershell V2

List of aliases that are Read-Only in Powershell V2

PS C:\Users\Administrator> gal | ? { $_.options -match 'readonly' } | ft Name,Definition -a

Name    Definition
----    ----------
%       ForEach-Object
?       Where-Object
ac      Add-Content
@AdmiringWorm
AdmiringWorm / maintainers.md
Last active September 17, 2020 12:44
@pauby's cheat sheet for what a maintainer can do 👅

What can you do as a maintainer?

The goal of this gist is to provide some details on what you can do and can't do on chocolatey.org when you are a maintainer.

  • You can not remove yourself as a maintainer for packages available on chocolatey.org. You will need to contact the site admins to be removed from a package. You will not be removed as a maintainer if you are the only maintainer listed.
  • When a new package have been pushed to chocolatey.org, a new version of the same package can not be pushed until the existing version is either approved or rejected. If the package is failing, the recommended solution is to update the existing version which fixes the failure reason. When this isn't possible, you can rejected a failing version yourself, or ask a Moderator to rejected it.
@AdmiringWorm
AdmiringWorm / codecov.cake
Last active May 16, 2019 00:47
Collection of cake scripts used to override Cake.Recipe tasks
#load "./modules.cake"
#if !CUSTOM_CODECOV
Setup<CodecovSettings>((context) => {
var settings = new CodecovSettings {
Required = true
};
if (BuildParameters.Version != null && !string.IsNullOrEmpty(BuildParameters.Version.FullSemVersion) && BuildParameters.IsRunningOnAppVeyor) {
// Required to work correctly with appveyor because environment changes isn't detected until cake is done running.
@AdmiringWorm
AdmiringWorm / choco color
Created January 20, 2020 20:50
Chocolatey colors for vscode
{
"workbench.colorCustomizations": {
"activityBar.background": "#aacdec",
"activityBar.activeBorder": "#6F3215",
"activityBar.foreground": "#242c5c",
"activityBar.inactiveForeground": "#242c5c99",
"activityBarBadge.background": "#6F3215",
"activityBarBadge.foreground": "#e7e7e7",
"titleBar.activeBackground": "#80b5e3",
"titleBar.inactiveBackground": "#80b5e399",