Skip to content

Instantly share code, notes, and snippets.

View dameyerdave's full-sized avatar

David Meyer dameyerdave

View GitHub Profile
@dameyerdave
dameyerdave / case_sesitive_windows.md
Last active April 8, 2024 06:57
Make folder on Windows case sesitive
@dameyerdave
dameyerdave / pip_bundle.md
Last active March 13, 2024 14:25
PIP Bundle

PIP Bundle

This gist describes how to bundle a pip installation and install it on a host with no access to the pip registry. This example uses the pip package power-user-tools.

Create the bundle

mkdir ./bundle
cd bundle
python3 -m pip download --platform linux power-user-tools
@dameyerdave
dameyerdave / ubuntu_disable_ipv6.md
Last active February 26, 2024 16:22
Ubuntu disable ipv6
vi /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
...
update-grub
@dameyerdave
dameyerdave / kube_on_ubuntu.md
Created February 26, 2024 11:12
Kubernetes on Ubuntu

Disable apparmour

sudo systemctl stop apparmor
sudo systemctl disable apparmor
sudo systemctl restart containerd.service
@dameyerdave
dameyerdave / kube_bash_completion
Created February 26, 2024 08:31
Kubernetes Bash Completion
source <(kubectl completion bash)
alias k=kubectl
complete -o default -F __start_kubectl k
@dameyerdave
dameyerdave / http_proxy
Last active January 4, 2024 15:21
Run a local http(s) proxy
docker run -d --name proxy --hostname proxy -p 8888:8888 --restart unless-stopped vimagick/tinyproxy
@dameyerdave
dameyerdave / devServer
Last active January 4, 2024 15:22
Quasar Dev Server
// 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',
},
@dameyerdave
dameyerdave / .vscode
Last active January 4, 2024 15:22
VSCode settings
{
"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",
@dameyerdave
dameyerdave / gist:e9b7339a50bfb9a24a43896c0ee7bf53
Last active December 7, 2023 09:58
Run Github workflows locally
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:
@dameyerdave
dameyerdave / ubuntu_docker
Last active January 4, 2024 15:23
Install docker on ubuntu
#!/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