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
curl --user username:password --upload-file "/home/user/path/to/file.zip" -H"X-Checksum-Sha1:1EFC9E5F84D4713CB7304625FE0CB2A1F39709A4" -H"X-Checksum-Md5:B32BB2F9317DCE938CC8A34742D4EF8D" -X PUT "https://yourartifactoryserver.com/artifactory/some-repository-local/exact/desired/path/file.zip" |
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
curl -X PUT -u username:password "https://yourartifactoryserver.com/artifactory/api/storage/some-repository-local/exact/desired/path/file.zip?properties=foo=bar|a%20spaced%20%key=somevalue|version=1.2.3.4|someweird\=value=foo\=bar |
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
#!/bin/bash | |
# bamboo-agent Init script for running bamboo agent | |
# | |
# chkconfig: 2345 98 02 | |
# | |
# description: Starts and stops bamboo agent | |
# This is just a delegator to the Bamboo agent script. | |
USER=bamboo | |
AGENT_HOME=/home/$USER/bamboo-agent-home/bin |
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
#! /bin/sh | |
# | |
# Copyright (c) 1999, 2006 Tanuki Software Inc. | |
# | |
# Java Service Wrapper sh script. Suitable for starting and stopping | |
# wrapped Java applications on UNIX platforms. | |
# | |
#----------------------------------------------------------------------------- |
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
# must be run in administrator context | |
param ( | |
[String] $path, # file or folder | |
[String] $perm, # fullcontrol, read, write, etc | |
[String] $action = "allow" #allow or deny | |
[String] $user | |
) | |
$arguments = $user, $perm, $action |
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
#requires –runasadministrator | |
try | |
{ | |
& choco -h | |
} | |
catch | |
{ | |
# If chocolatey help wasn't available, invoke expression to install from Chocolatey.org | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.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
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
# GNU General Public License for more details. | |
# |
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
# to be run in any normal user-spawned powershell prompt | |
Start-Process powershell -Verb runas -argumentlist "& lxrun /install /y" |
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
<# ----------------------------------------------------------------------------- | |
Check-LinuxOS() | |
.Description | |
Check whether or not a host you are running from is Linux. WMI is not yet | |
available in the PowerShell alpha. | |
----------------------------------------------------------------------------- #> | |
function Check-LinuxOS { | |
$ErrorActionPreference = "SilentlyContinue" # Prevents stop when Windows explodes with uname call |
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
Write-Output "Hello!" | Out-File C:\Users\nucleus\Desktop\hello.txt |
OlderNewer