sudo systemctl stop apparmor
sudo systemctl disable apparmor
sudo systemctl restart containerd.service
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 | |
sudo dnf install wget yum-utils make gcc openssl-devel bzip2-devel libffi-devel zlib-devel | |
# Ubuntu: sudo apt install -y wget yum-utils make gcc libssl-dev libbz2-dev libffi-dev zlib1g-dev | |
mkdir tmp | |
cd tmp | |
wget https://www.python.org/ftp/python/3.10.8/Python-3.10.8.tgz | |
tar xzf Python-3.10.8.tgz | |
cd Python-3.10.8 | |
sudo ./configure --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions --enable-optimizations --enable-shared |
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 | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
apt-cache policy docker-ce | |
sudo apt install -y docker-ce | |
sudo systemctl status docker |
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
1. Add a '.secrets' file with the content: | |
DOCKER_PASS=secret | |
2. Run | |
act --secret-file .secrets -s GITHUB_TOKEN="$(gh auth token)" -j <job> | |
3. Get more information here: |
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
{ | |
"editor.bracketPairColorization.enabled": true, | |
"editor.guides.bracketPairs": true, | |
"editor.formatOnSave": true, | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.codeActionsOnSave": ["source.fixAll.eslint"], | |
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"], | |
"typescript.tsdk": "node_modules/typescript/lib", | |
"[python]": { | |
"editor.defaultFormatter": "ms-python.black-formatter", |
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
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-js#devServer | |
devServer: { | |
// https: true | |
open: true, // opens browser window automatically | |
proxy: { | |
'/api': 'http://api:5000', | |
'/admin': 'http://api:5000', | |
'/media': 'http://api:5000', | |
'/static': 'http://api:5000', | |
}, |
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
docker run -d --name proxy --hostname proxy -p 8888:8888 --restart unless-stopped vimagick/tinyproxy |
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 <(kubectl completion bash) | |
alias k=kubectl | |
complete -o default -F __start_kubectl k |
vi /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
...
update-grub
OlderNewer