Rename master branch to main
Description
Use this format to rename any branch name to another.
git branch -m master main
0
References
https://www.git-tower.com/learn/git/faq/git-rename-master-to-main
2 / 6 snippets matched
Description
Use this format to rename any branch name to another.
git branch -m master main
0
https://www.git-tower.com/learn/git/faq/git-rename-master-to-main
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
Description
This sequence will allow you to download carbon icons fromt he carbon design website.
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
IBM Carbon Design System Icons
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
Web Accessibility course Udacity
Description
Within the console of the browser list the currently focused upon element.
document.activeElement
0
Web Accessibility course Udacity
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
iTerm2 + Oh-My-Zsh: Supercharge Your Mac Terminal
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.
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
How to Use MacBook in Clamshell Mode without a Power Adapter
Description
Temporarily add an executable within a terminal session
export PATH=$PATH:/path/to/bin/
0
Description
Use this sequence to hide and show the desktop icons that appears on your main MacOS desktop background.
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