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
Source: https://github.com/puppeteer/puppeteer/issues/1837 | |
nothing, but this works for me | |
https://scottspence.com/2021/01/05/use-chrome-in-ubuntu-wsl/ | |
https://github.com/puppeteer/puppeteer/issues/1700#issuecomment-369807464 | |
Hi! Here is how I got it running under WSL: |
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 imgAvatar from '@patternfly/react-core/src/demos/assets/avatarImg.svg'; | |
<ToolbarItem visibility={{ | |
default: 'hidden', | |
md: 'visible' | |
}}> | |
<Dropdown isOpen={isDropdownOpen} onSelect={onDropdownSelect} onOpenChange={isOpen => setIsDropdownOpen(isOpen)} popperProps={{ | |
position: 'right' | |
}} toggle={toggleRef => <MenuToggle ref={toggleRef} onClick={onDropdownToggle} isFullHeight isExpanded={isDropdownOpen} icon={<Avatar src={imgAvatar} alt="" />}> | |
Ned Username |
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
{ | |
"dependencies": { | |
"@patternfly/patternfly": "^5.1.0", | |
"@patternfly/react-charts": "^7.1.1", | |
"@patternfly/react-core": "^5.1.1", | |
"@patternfly/react-icons": "^5.1.1", | |
"@patternfly/react-styles": "^5.1.1", | |
"@patternfly/react-table": "^5.1.1", | |
"@patternfly/react-tokens": "^5.1.1", | |
"@patternfly/react-topology": "^5.1.0", |
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
sudo hwclock -s | |
sudo apt update | |
sudo apt install ntpdate | |
sudo ntpdate time.windows.com | |
alias fixtime="sudo hwclock -s" | |
/etc/wsl.conf: | |
[clock] |
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
#!/usr/bin/env bash | |
podman run --rm \ | |
-p "8200:8200" \ | |
-p "1234:1234" \ | |
--cap-add=IPC_LOCK \ | |
--name vault \ | |
docker.io/library/vault |
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
CONTAINER_ENGINE ?= podman | |
CONTAINER_NAME ?= yaloub-frontend | |
PORT ?= 8080:8080 | |
VOLUME ?= ./src/$(CONTAINER_NAME)/:/usr/src/ |
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
include config.mk | |
.DEFAULT_GOAL := help | |
.PHONY: build | |
build: ## Build podman image | |
$(CONTAINER_ENGINE) build -t $(CONTAINER_NAME) . | |
.PHONY: run | |
run: open-ports ## Run the podman container |
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
sudo apt update | |
sudo apt install lsb-release python3-distutils | |
cd ~/Downloads | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt update && sudo apt install packer | |
packer --version | |
wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg | |
echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
sudo apt update && sudo apt install vault |
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
# YES - Means it stays in a damaged VM (Qube) | |
# qrexec | |
-rwxr-xr-x 1 root root 26864 Mar 4 2022 qrexec-client-vm YES | |
-rwxr-xr-x 1 root root 18432 Mar 4 2022 qrexec-fork-server YES | |
lrwxrwxrwx 1 root root 18 Mar 4 2022 qrexec-policy -> qrexec-policy-exec YES | |
-rwxr-xr-x 1 root root 125 Mar 4 2022 qrexec-policy-agent YES | |
-rwxr-xr-x 1 root root 126 Mar 4 2022 qrexec-policy-daemon YES | |
-rwxr-xr-x 1 root root 124 Mar 4 2022 qrexec-policy-exec YES |
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
#!/usr/bin/env python3 | |
import copy | |
A = {'v1': {'configuration': {'$schema': '...', 'network': {'$schema': '...'}}}} | |
E = {'v1': {'configuration': {'network': {'entries': {'$schema': '...'}}}}} | |
expected = {'v1': {'configuration': {'$schema': '...', 'network': {'$schema': '...', 'entries': {'$schema': '...'}}}}} | |
#def safe_update_dict(d_to: dict, d_from: dict): |