Control an iLedClock 16×32 matrix clock (the one the CoolLED1248 app talks to) from a Raspberry Pi.
sudo apt install -y python3-venv bluetooth bluez
python3 -m venv ~/clock-venv
~/clock-venv/bin/pip install bleak pillow| FROM node:lts-slim | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends ca-certificates dbus gpg libsecret-1-0 pass procps wget && \ | |
| apt-get clean | |
| RUN wget -O /usr/local/bin/pass-secret-service https://github.com/grimsteel/pass-secret-service/releases/download/v0.5.0/pass-secret-service-$(uname -m) && \ | |
| chmod +x /usr/local/bin/pass-secret-service | |
| RUN npm install -g @zowe/cli && \ |
| 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" ) | |
| } |
| /** | |
| * 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> | |
| */ |
| { | |
| "name": "keyring-test", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "echo \"Error: no test specified\" && exit 1" | |
| }, | |
| "keywords": [], | |
| "author": "", |
| # 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 |
| { | |
| "$schema": "./zowe.schema.json", | |
| "profiles": { | |
| "base": { | |
| "type": "base", | |
| "properties": { | |
| "host": "example.com", | |
| "rejectUnauthorized": true | |
| }, | |
| "secure": [ |
| # 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") |
| #!/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 |
| 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": |