mkdir ~/.ve
mkdir ~/workspaceexport PATH=$HOME/.pyenv/bin:$PATH
export WORKON_HOME=~/.ve// For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/python { "name": "Python 3", // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye", "customizations": { "vscode": { "extensions": [ "saoudrizwan.claude-dev",
| ############################################################### | |
| # Nix for Everyone: Unleash Devbox for Simplified Development # | |
| ############################################################### | |
| # Additional Info: | |
| # - Devbox: https://www.jetpack.io/devbox | |
| # - Say Goodbye to Containers - Ephemeral Environments with Nix Shell: https://youtu.be/0ulldVwZiKA | |
| # - Say Goodbye to Makefile - Use Taskfile to Manage Tasks in CI/CD Pipelines and Locally: https://youtu.be/Z7EnwBaJzCk | |
| ######### |
| if "test ! -d ~/.tmux/plugins/tpm" \ | |
| "run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'" |
| import boto3 | |
| import time | |
| ## | |
| # First function will try to filter for EC2 instances that contain a tag named `Scheduled` which is set to `True` | |
| # If that condition is meet function will compare current time (H:M) to a value of the additional tags which defines the trigger `ScheduleStop` or `ScheduleStart`. | |
| # Value of the `ScheduleStop` or `ScheduleStart` must be in the following format `H:M` - example `09:00` | |
| # | |
| # In order to trigger this function make sure to setup CloudWatch event which will be executed every minute. | |
| # Following Lambda Function needs a role with permission to start and stop EC2 instances and writhe to CloudWatch logs. |
| sudo amazon-linux-extras install epel -y | |
| sudo yum install stress -y |
#1 Add them directly to you code
import pdb; pdb.set_trace()
# or
import ipdb; ipdb.set_trace()#2: Set them interactively
python -m pdb hello.py| # DOCKER | |
| alias dstopcont='sudo docker stop $(docker ps -a -q)' | |
| alias dstopall='sudo docker stop $(sudo docker ps -aq)' | |
| alias drmcont='sudo docker rm $(docker ps -a -q)' | |
| alias dvolprune='sudo docker volume prune' | |
| alias dsysprune='sudo docker system prune -a' | |
| alias ddelimages='sudo docker rmi $(docker images -q)' | |
| alias docerase='dstopcont ; drmcont ; ddelimages ; dvolprune ; dsysprune' | |
| alias docprune='ddelimages ; dvolprune ; dsysprune' | |
| alias dexec='sudo docker exec -ti' |
| # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| NAME = "zabbix-5-lts" | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. |