Skip to content

Instantly share code, notes, and snippets.

View asbjornu's full-sized avatar
💭
He's a loathsome offensive brute, yet I can't look away.

Asbjørn Ulsberg asbjornu

💭
He's a loathsome offensive brute, yet I can't look away.
View GitHub Profile
@asbjornu
asbjornu / unlist-nuget-package.ps1
Last active June 10, 2020 23:26 — forked from dazinator/unlist-packages.ps1
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 "dotnet nuget delete $PackageId $version --non-interactive --api-key $ApiKey --source https://api.nuget.org/v3/index.json"
}
@asbjornu
asbjornu / thingthangthung.cs
Last active April 22, 2017 23:25 — forked from einarwh/thingthangthung.cs
Object initializer surprise.
void Main()
{
var t = new Thing(new Thang { Thung = "lol" })
{
Thang = { { "OMG" } }
};
t.Dump();
}
<?php
/**
* Includes a few useful predicates in the bootstrapped `infiniteScroll` JS object
* that is served along with the rest of the document upon initial page request.
*/
add_filter( 'infinite_scroll_js_settings', 'pla_extra_js_settings' );
function pla_extra_js_settings( $js_settings ) {
$js_settings['text'] = __( "Plus de contenus", "pla" );
@asbjornu
asbjornu / PayEx_CLA.md
Last active September 3, 2018 08:30 — forked from CLAassistant/SAP_CLA
PayEx Individual Contributor License Agreement

PayEx Individual Contributor License Agreement

Thank you for your interest in contributing to open source software projects (“Projects”) made available by PayEx or its affiliates (“PayEx”). This Individual Contributor License Agreement (“Agreement”) sets out the terms governing any source code, object code, bug fixes, configuration changes, tools, specifications, documentation, data, materials, feedback, information or other works of authorship that you submit or have submitted, in any form and in any manner, to PayEx in respect of any of the Projects (collectively “Contributions”).

Contrary to “Closed Source” software or proprietary software – where a creator maintains exclusive control over his or her source code – “Open Source Software” is software with source code that anyone can inspect, modify, share, learn from and enhance. Outlined below you will find PayEx Individual Contributor License Agreement under which you as a contributor retain all of your rights, titles and interests in and to your con