in .gitlab-ci.yml:
docker build --build-arg VAR_NAME="$VAR_NAME"
$VAR_NAME
references a stored env variable from Gitlab CI settings.
in Dockerfile:
Gitlab won't allow reuse of a public ssh key for multiple accounts. To get around this you need to create a second ssh key for the second account.
Create or modify your ~/.ssh/config
file:
# normal
Host gitlab.com-work_username
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
[ | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-1.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-2.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-3.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-4.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-5.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people-page-6.json", | |
"https://gist.githubusercontent.com/dotspencer/10f9e59cbccfd7b12b9a663a56c41f92/raw/0c2ad72be6c634f822131832f59d0eccdd6655cc/people- |
{ | |
"count": 87, | |
"next": "https://swapi.co/api/people/?page=2", | |
"previous": null, | |
"results": [ | |
{ | |
"name": "Luke Skywalker", | |
"height": "172", | |
"mass": "77", | |
"hair_color": "blond", |
{ | |
"count": 7, | |
"next": null, | |
"previous": null, | |
"results": [ | |
{ | |
"title": "A New Hope", | |
"episode_id": 4, | |
"opening_crawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....", | |
"director": "George Lucas", |
{ | |
"4": "https://i.stack.imgur.com/5BJM3.png", | |
"2": "https://i.stack.imgur.com/EPTIX.png", | |
"1": "https://i.stack.imgur.com/ZTmBv.png", | |
"3": "https://i.stack.imgur.com/SHFz9.png", | |
"6": "https://i.stack.imgur.com/UhaOO.png", | |
"5": "https://i.stack.imgur.com/Nyp7G.png", | |
"7": "https://i.stack.imgur.com/QjkjZ.png" | |
} |
var priorityQueue = { | |
first: null, | |
}; | |
var nodeLookup = {}; | |
function enqueue(name, factor) { | |
const node = nodeLookup[name]; | |
// already exists in queue |
e:
and hit enter.dir
should show SISetup.exe
. If so, type SISetup.exe
and hit enter.hp laserjet p1102w firmware
and download and run the firware update tool.document.querySelector('button').addEventListener('click', () => { | |
copyText('nice link'); | |
}); | |
function copyText(text) { | |
const input = document.createElement('input'); | |
input.value = text; | |
document.body.appendChild(input); |
.babelrc
needs to be converted to a babel.config.js
file instead. This will allow webpack and babel to transpile the linked code and fix the "build failed SyntaxError unexpected token" problem. Further explanation: https://babeljs.io/docs/en/config-files#project-wide-configuration
Add the dependency into package.json
as follows (the v1.0
can be whatever tag you'd like):
"dependencies": {
"shared-react": "git+https://gitlab+deploy-token-###:[email protected]/<group-or-user>/<package-name>#v1.0",
...
}
You'll also need to generate a deploy token to fill in the placholders in the url above. Go to the repo in Gitlab and then select Settings > Repository > Deploy Token. Create a new token with the name "npm" and check the "react_repository" checkbox.