2 / 6 snippets matched

Technology type

Alphabetically ascending

Alphabetically descending

Most used

Least used

Instantiate the z/OS Connect Designer using Docker

Docker

Description

Start the z/OS Connect Designer tooling.

docker run -it -p 9080:9080 -v $PWD:/workspace/project icr.io/zosconnect/ibm-zcon-designer:3.0.59

0

Description

Start up the z/OS Connect Designer tooling and pass in environment variables for a CICS connection.

docker run -it -p 9080:9080 -e CICS_HOST='bank.com' -e CICS_PORT=9871 -e CICS_USER='rsmith' -e CICS_PASSWORD='={aes}bd7gi_383bdb99OLF;vN72DKW==' -v $PWD:/workspace/project icr.io/zosconnect/ibm-zcon-designer:3.0.59

0

Description

This snippet will simply start the docker container in your current directory with environmental variables. Make sure you update the variables to your own.

git clone https://github.com/zosconnect/sample-cics-api && cd sample-cics-api/finish && docker run -it -p 9080:9080 -e CICS_HOST='bank.com' -e CICS_PORT=1110 -e CICS_USER='alyell' -e CICS_PASSWORD='={aes}bd7gi_383bdbILF;BN72DKW==' -v $PWD:/workspace/project icr.io/zosconnect/ibm-zcon-designer:3.0.59

0

Download Carbon Icons from the Carbon site via browser

JavaScript
Browser
Sequence

Description

This sequence will allow you to download carbon icons fromt he carbon design website.

Steps

1. Create a function that you can place into the browser console.

function pause(msec) {
    return new Promise(
        (resolve, reject) => {
            setTimeout(resolve, msec || 1000);
        }
    );
}

async function downloadAll(elements) {
    var count = 0;
    for (var e in elements) {

        download(elements[e]);

        if (++count >= 10) {
            await pause(1000);
            count = 0;
        }
    }
}

function download(icon) {
        const buttonArray = icon.querySelectorAll('[triggerclassname="ActionBar-module--trigger--W2p-I"]');
        buttonArray[0].click();
}

0

2. Run function within the browser to download a section of icons.

downloadAll(document.querySelectorAll('[class="SvgLibrary-module--svg-card--OKCN6"]'));

0

References

IBM Carbon Design System Icons

List all page headings within the console

JavaScript
Browser
a11y

Description

Within the console of the browser list all header elements.

for (var i = 0, headings = $$('h1,h2,h3,h4,h5,h6');
    i < headings.length; i++) {
    console.log(headings[i].textContent.trim() + " " +  
                headings[i].tagName,
                headings[i]);
}

0

References

Web Accessibility course Udacity

List active element within browser

JavaScript
Browser
a11y

Description

Within the console of the browser list the currently focused upon element.

document.activeElement

0

References

Web Accessibility course Udacity

Open zsh configuration file

MacOS

Description

Open the zsh configuration file in the VS Code IDE. Change the initial argument if you want to edit the file in another editor. e.g vi or vim

code ~/.zshrc

0

References

iTerm2 + Oh-My-Zsh: Supercharge Your Mac Terminal

How to Use MacBook in Clamshell Mode without a Power Adapter

MacOS
Sequence

Description

This set of commands will enable you to connect your MacBook to an external monitor in clamshell mode without being attached to a power adaptor.

Steps

1. See your default hibernatemode setting and make a note of it.

pmset -g | grep hibernatemode

0

2. Run the following commands in the terminal

sudo pmset -a sleep 0
sudo pmset -a hibernatemode 0
sudo pmset -a disablesleep 1

0

3. You can always revert the changes by running the following commands in the terminal.

sudo pmset -a sleep 1
sudo pmset -a hibernatemode 
sudo pmset -a disablesleep 0

0

References

How to Use MacBook in Clamshell Mode without a Power Adapter

Temporarily add an executable utility within a terminal session

MacOS

Description

Temporarily add an executable within a terminal session

export PATH=$PATH:/path/to/bin/

0

Hide and show desktop icons on MacOS

MacOS
Sequence

Description

Use this sequence to hide and show the desktop icons that appears on your main MacOS desktop background.

Steps

1. Hide your desktop icons by setting CreateDesktop to false.

defaults write com.apple.finder CreateDesktop false

0

2. Restart the finder application ot reload the desktop.

Killall Finder

0

3. When ready. Show your desktop icons by setting CreateDesktop to true.

defaults write com.apple.finder CreateDesktop true

0

4. Restart the finder application ot reload the desktop.

Killall Finder

0