Skip to content

Instantly share code, notes, and snippets.

View carlspring's full-sized avatar

Martin Todorov carlspring

View GitHub Profile
@carlspring
carlspring / gist:6186738
Created August 8, 2013 17:28
TeamCity WADL location
http://localhost:8111/httpAuth/app/rest/application.wadl
@carlspring
carlspring / gist:6762356
Last active September 27, 2023 04:02
TeamCity REST API Commands
@carlspring
carlspring / gist:6992708
Last active December 25, 2015 14:39
Upgrading Sonatype Nexus from OSS to Pro
  • Stop Nexus OSS

  • Backup the Sonatype-Work folder

  • Download Pro

  • Unpack the folders

  • Keep your old Sonatype-Work folder - this contains your downloaded components

@carlspring
carlspring / gist:2eb8dde4fcbae0443e6e
Created August 21, 2015 15:32
Hudson hacks and tricks
Get a list of the enabled Hudson jobs:
find /path/to/hudson/jobs -maxdepth 2 -name "config.xml" -exec grep -L '<disabled>true</disabled>' -n {} \;
@carlspring
carlspring / 0_reuse_code.js
Created November 3, 2015 22:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// /etc/polkit-1/rules.d/10-rules.rules
// PolKit rules to allow mounting, rebooting and network management without a password.
// User needs to be in root group.
polkit.addRule(function(action, subject) {
if (action.id.match("org.freedesktop.udisks2.") && subject.isInGroup("root")) {
return polkit.Result.YES;
}
});
@carlspring
carlspring / calls.txt
Created July 5, 2017 11:35 — forked from joelverhagen/calls.txt
Variants of HTTP calls made by NuGet.exe list
[no Search()] nuget.exe list
[no Search()] nuget.exe list -allversions
[no Search(), no IsAbsoluteLatestVersion] nuget.exe list
[no Search(), no IsAbsoluteLatestVersion] nuget.exe list -allversions
GET /api/v2/Packages HTTP/1.1
GET /api/v2/Packages?$skip=100 HTTP/1.1
[no Search()] nuget.exe list -allversions -prerelease
[no Search(), no IsAbsoluteLatestVersion] nuget.exe list -allversions -prerelease
GET /api/v2/Packages()?$orderby=Id&$skip=0&$top=30 HTTP/1.1
@carlspring
carlspring / test.md
Created November 20, 2022 09:48
test

this is a test