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
#!/bin/bash | |
podman run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.21 go get | |
podman run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp golang:1.21 go build -v | |
#!/bin/bash | |
goVersion() { |
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
https://python-jsonschema.readthedocs.io/en/stable/validate/ | |
https://python-jsonschema.readthedocs.io/en/stable/api/jsonschema/protocols/#jsonschema.protocols.Validator.validate | |
https://json-schema.org/understanding-json-schema/basics#basics |
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 | |
googlechromebookmarks() { | |
cat ~/.config/google-chrome/Default/Bookmarks | \ | |
grep -E '\"name|\"url' | \ | |
grep -vE '\"type\"\:' | \ | |
awk '{print $1 substr($0,index($0,$2))}' | \ | |
sed s'/^\"name\"\:/title \= /' | \ | |
sed s'/^\"url\"\:/url \= /' | \ | |
sed s'/\,$//' | \ |
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
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
CONTAINER_ENGINE ?= podman | |
CONTAINER_NAME ?= yaloub-frontend | |
PORT ?= 8080:8080 | |
VOLUME ?= ./src/$(CONTAINER_NAME)/:/usr/src/ |