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
server.modules += ( "mod_cgi", "mod_alias" ) | |
$HTTP["url"] =~ "^/cgit" { | |
server.document-root = "/usr/lib/" | |
server.indexfiles = ("cgit.cgi") | |
cgi.assign = ("cgit.cgi" => "") | |
mimetype.assign = ( ".css" => "text/css" ) | |
url.access-deny = ( "~", ".inc" ) | |
} |
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
/** | |
* Imports issues and pull requests into GitHub v2 project | |
* | |
* To use this script: | |
* 1. Install the dependencies: | |
* npm install -D dayjs @octokit/core @octokit/plugin-paginate-graphql @octokit/plugin-paginate-rest | |
* 2. Define GitHub token in an environment variable GITHUB_TOKEN | |
* 3. Run the script with a project ID passed on the command line: | |
* node importIssues.js <projectId> | |
*/ |
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
{ | |
"name": "keyring-test", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], | |
"author": "", |
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
# Update variables in this file before running the script | |
TEST_PACKAGE_DIR=../zowe-cli-package-X.Y.Z | |
TEST_OFFLINE=no | |
TEST_V1LTS=no | |
TEST_HOST=example.com | |
TEST_ZOSMF_PORT=443 | |
TEST_APIML_PORT=7554 | |
TEST_USER=XXX | |
TEST_PASSWORD=XXX |
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
{ | |
"$schema": "./zowe.schema.json", | |
"profiles": { | |
"base": { | |
"type": "base", | |
"properties": { | |
"host": "example.com", | |
"rejectUnauthorized": true | |
}, | |
"secure": [ |
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
# Usage: test-zowe.ps1 ../Brightside-v3.0.0 16 -Offline | |
param ([string]$packageDir, [string]$nodeVersion, [switch]$offline = $false) | |
$ErrorActionPreference = "Stop" | |
# Install Node.js and npm | |
$response = Invoke-WebRequest https://nodejs.org/download/release/latest-v$nodeVersion.x -UseBasicParsing | |
$x64Msi = $response.Links |? { $_.href -Match "-x64.msi" } | |
(New-Object Net.WebClient).DownloadFile("https://nodejs.org/download/release/latest-v$nodeVersion.x/$($x64Msi.href)", "$env:Temp\node.msi") | |
msiexec /I $env:Temp\node.msi /passive | Out-Null | |
$env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User") |
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 | |
set -ex | |
npmRegistry=$1 | |
tempDir=$(mktemp -d) | |
cd $tempDir | |
[[ ! -z "$npmRegistry" ]] && echo "@zowe:registry=$npmRegistry" >> .npmrc | |
npm init -y | |
npm install @zowe/cli | |
ls node_modules # Only one dependency should be at top level (@zowe/cli) | |
grep flatted node_modules/@zowe/cli/npm-shrinkwrap.json |
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
const fs = require("fs"); | |
const net = require("net"); | |
const os = require("os"); | |
let opts = {}; | |
switch (process.argv[2]) { | |
case "pipe": | |
opts.path = `\\\\?\\pipe\\${os.userInfo().username}\\ZoweDaemonTest`; | |
break; | |
case "socket": |
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
FROM rust:alpine | |
# Install build dependencies | |
RUN apk --no-cache add git musl-dev | |
# Download zowex source from GitHub | |
RUN git clone --depth 1 https://github.com/zowe/zowe-cli.git | |
# Build zowex binary | |
RUN cd zowe-cli/zowex && cargo build --verbose --release |
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
import { IProfArgAttrs, IProfile, ProfileInfo } from "@zowe/imperative"; | |
import { trueCasePathSync } from "true-case-path"; | |
import { window, workspace } from "vscode"; | |
/** | |
* Load properties for the default Zowe CLI profile of a given type. | |
* @param profileType The type of profile (e.g., "zosmf") | |
* @returns Profile object with property names and values defined | |
*/ | |
async function getDefaultProfile(profileType: string): Promise<IProfile> { |
NewerOlder