-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #61 from vitabletech/release-v1.5.0
Release v1.5.0
- Loading branch information
Showing
7 changed files
with
509 additions
and
19 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,10 @@ | |
"name": "snippetmaster", | ||
"displayName": "All in One Snippet Master", | ||
"description": "A Visual Studio Code extension that provides custom code snippets for a variety of programming languages. With SnippetMaster, you can save time and increase your productivity by quickly inserting common code patterns and snippets.", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"publisher": "vitabletech", | ||
"author": { | ||
"name": "Mayank singh Kushwah", | ||
"name": "Mayank Singh Kushwah", | ||
"email": "[email protected]", | ||
"url": "https://vitabletech.in" | ||
}, | ||
|
@@ -74,16 +74,30 @@ | |
{ | ||
"language": "", | ||
"path": "./snippets/git.code-snippets" | ||
}, | ||
{ | ||
"language": "yaml", | ||
"path": "./snippets/ansible.code-snippets" | ||
}, | ||
{ | ||
"language": "", | ||
"path": "./snippets/terraform.code-snippets" | ||
}, | ||
{ | ||
"language": "", | ||
"path": "./snippets/aws.code-snippets" | ||
} | ||
] | ||
}, | ||
"keywords": [ | ||
"aws cli", | ||
"AWS CLI commands", | ||
"ansible", | ||
"terraform", | ||
"git", | ||
"vscode", | ||
"All in One Snippet Master", | ||
"git commands", | ||
"react", | ||
"react development", | ||
"windows commands", | ||
"wordpress developer", | ||
"wordpress code snippets", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"Ansible Ad-Hoc Command": { | ||
"prefix": "_ansible_adhoc", | ||
"body": "ansible target_host -m module -a 'module_arguments' -u remote_user", | ||
"description": "Run an Ansible ad-hoc command." | ||
}, | ||
"Ansible Playbook Run": { | ||
"prefix": "_ansible_playbook_run", | ||
"body": "ansible-playbook playbook.yml -i inventory_file -u remote_user", | ||
"description": "Run an Ansible playbook." | ||
}, | ||
"Ansible Ping Module": { | ||
"prefix": "_ansible_ping", | ||
"body": "ansible target_host -m ping", | ||
"description": "Check if Ansible can connect to the target host." | ||
}, | ||
"Ansible Copy Module": { | ||
"prefix": "_ansible_copy", | ||
"body": "ansible target_host -m copy -a 'src=source_file dest=destination_file'", | ||
"description": "Copy a file to the target host using the Ansible copy module." | ||
}, | ||
"Ansible File Module": { | ||
"prefix": "_ansible_file", | ||
"body": "ansible target_host -m file -a 'path=file_path state=present'", | ||
"description": "Create or ensure the existence of a file or directory on the target host." | ||
}, | ||
"Ansible Package Module": { | ||
"prefix": "_ansible_package", | ||
"body": "ansible target_host -m package -a 'name=package_name state=present'", | ||
"description": "Install a package on the target host using the Ansible package module." | ||
}, | ||
"Ansible Service Module": { | ||
"prefix": "_ansible_service", | ||
"body": "ansible target_host -m service -a 'name=service_name state=started'", | ||
"description": "Manage the state of a service on the target host using the Ansible service module." | ||
}, | ||
"Ansible User Module": { | ||
"prefix": "_ansible_user", | ||
"body": "ansible target_host -m user -a 'name=username state=present'", | ||
"description": "Manage user accounts on the target host using the Ansible user module." | ||
}, | ||
"Ansible Template Module": { | ||
"prefix": "_ansible_template", | ||
"body": "ansible target_host -m template -a 'src=template_file dest=destination_file'", | ||
"description": "Render a Jinja2 template and copy it to the target host using the Ansible template module." | ||
}, | ||
"Ansible Gather Facts": { | ||
"prefix": "_ansible_gather_facts", | ||
"body": "ansible target_host -m setup", | ||
"description": "Gather facts about the target host using the Ansible setup module." | ||
}, | ||
"Ansible Debug Module": { | ||
"prefix": "_ansible_debug", | ||
"body": "ansible target_host -m debug -a 'msg=debug_message'", | ||
"description": "Print debug information during Ansible playbook execution using the Ansible debug module." | ||
}, | ||
"Install SSH Server on Node Machine": { | ||
"prefix": "_install_ssh_server", | ||
"body": "sudo apt-get install openssh-server", | ||
"description": "Install the SSH server on the node machine if not already installed." | ||
}, | ||
"Generate SSH Key": { | ||
"prefix": "_generate_ssh_key", | ||
"body": "ssh-keygen", | ||
"description": "Generate an SSH key on the local machine." | ||
}, | ||
"Copy SSH Key to Hosts": { | ||
"prefix": "_copy_ssh_key", | ||
"body": "ssh-copy-id username@hostname or hostIP", | ||
"description": "Copy the generated SSH key to the specified hosts for passwordless SSH login." | ||
}, | ||
"Check SSH Connection": { | ||
"prefix": "_check_ssh_connection", | ||
"body": "ssh <nodeName> or <hostname or hostIP>", | ||
"description": "Check the SSH connection to the specified node or host. It should not prompt for a password." | ||
}, | ||
"Check Ansible Version": { | ||
"prefix": "_check_ansible_version", | ||
"body": "ansible --version", | ||
"description": "Check the installed Ansible version." | ||
}, | ||
"List All Hosts": { | ||
"prefix": "_list_all_hosts", | ||
"body": "ansible all --list-hosts", | ||
"description": "List all hosts configured in the Ansible inventory." | ||
}, | ||
"List Hosts in a Group": { | ||
"prefix": "_list_hosts_in_group", | ||
"body": "ansible group-name --list-hosts", | ||
"description": "List hosts belonging to a specific group in the Ansible inventory." | ||
}, | ||
"Create New Encrypted Playbook": { | ||
"prefix": "_ansible_vault_create", | ||
"body": "ansible-vault create vault.yml", | ||
"description": "Create a new encrypted Ansible playbook." | ||
}, | ||
"Edit Encrypted Playbook": { | ||
"prefix": "_ansible_vault_edit", | ||
"body": "ansible-vault edit vault.yml", | ||
"description": "Edit an existing encrypted Ansible playbook." | ||
}, | ||
"Change Vault Password": { | ||
"prefix": "_ansible_vault_rekey", | ||
"body": "ansible-vault rekey vault.yml", | ||
"description": "Change the password for an encrypted Ansible playbook." | ||
}, | ||
"Encrypt Existing Playbook": { | ||
"prefix": "_ansible_vault_encrypt", | ||
"body": "ansible-vault encrypt vault.yml", | ||
"description": "Encrypt an existing Ansible playbook." | ||
}, | ||
"Decrypt Existing Playbook": { | ||
"prefix": "_ansible_vault_decrypt", | ||
"body": "ansible-vault decrypt vault.yml", | ||
"description": "Decrypt an existing encrypted Ansible playbook." | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
{ | ||
"Configure AWS CLI": { | ||
"prefix": "_configure_aws_cli", | ||
"body": "aws configure", | ||
"description": "Configure AWS CLI with your AWS access key, secret key, region, and output format." | ||
}, | ||
"List S3 Buckets": { | ||
"prefix": "_list_s3_buckets", | ||
"body": "aws s3 ls", | ||
"description": "List all S3 buckets in the configured region." | ||
}, | ||
"Copy File to S3": { | ||
"prefix": "_copy_to_s3", | ||
"body": "aws s3 cp local_file s3://bucket_name/", | ||
"description": "Copy a local file to an S3 bucket." | ||
}, | ||
"Copy S3 Object to Local": { | ||
"prefix": "_copy_from_s3", | ||
"body": "aws s3 cp s3://bucket_name/object_key local_file", | ||
"description": "Copy an S3 object to the local file system." | ||
}, | ||
"Sync Local Directory with S3": { | ||
"prefix": "_sync_with_s3", | ||
"body": "aws s3 sync local_directory s3://bucket_name/", | ||
"description": "Sync a local directory with an S3 bucket." | ||
}, | ||
"List EC2 Instances": { | ||
"prefix": "_list_ec2_instances", | ||
"body": "aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,State.Name,InstanceType,PublicIpAddress]' --output table", | ||
"description": "List EC2 instances in the current region." | ||
}, | ||
"Create EC2 Instance": { | ||
"prefix": "_create_ec2_instance", | ||
"body": "aws ec2 run-instances --image-id ami-xxxxxxxx --instance-type t2.micro --key-name key_pair_name --subnet-id subnet_id", | ||
"description": "Create a new EC2 instance." | ||
}, | ||
"Stop EC2 Instance": { | ||
"prefix": "_stop_ec2_instance", | ||
"body": "aws ec2 stop-instances --instance-ids instance_id", | ||
"description": "Stop a running EC2 instance." | ||
}, | ||
"Start EC2 Instance": { | ||
"prefix": "_start_ec2_instance", | ||
"body": "aws ec2 start-instances --instance-ids instance_id", | ||
"description": "Start a stopped EC2 instance." | ||
}, | ||
"Terminate EC2 Instance": { | ||
"prefix": "_terminate_ec2_instance", | ||
"body": "aws ec2 terminate-instances --instance-ids instance_id", | ||
"description": "Terminate an EC2 instance." | ||
}, | ||
"List RDS Instances": { | ||
"prefix": "_list_rds_instances", | ||
"body": "aws rds describe-db-instances --query 'DBInstances[*].[DBInstanceIdentifier,DBInstanceStatus,Engine,MasterUsername,Endpoint.Address,Endpoint.Port]' --output table", | ||
"description": "List RDS database instances in the current region." | ||
}, | ||
"Create RDS Instance": { | ||
"prefix": "_create_rds_instance", | ||
"body": "aws rds create-db-instance --db-instance-identifier instance_id --db-instance-class db_instance_class --engine db_engine --master-username master_username --master-user-password master_password", | ||
"description": "Create a new RDS database instance." | ||
}, | ||
"Delete RDS Instance": { | ||
"prefix": "_delete_rds_instance", | ||
"body": "aws rds delete-db-instance --db-instance-identifier instance_id --skip-final-snapshot", | ||
"description": "Delete an RDS database instance without creating a final snapshot." | ||
}, | ||
"List Lambda Functions": { | ||
"prefix": "_list_lambda_functions", | ||
"body": "aws lambda list-functions --query 'Functions[*].[FunctionName,Runtime,Handler]' --output table", | ||
"description": "List Lambda functions in the current region." | ||
}, | ||
"Invoke Lambda Function": { | ||
"prefix": "_invoke_lambda_function", | ||
"body": "aws lambda invoke --function-name function_name --payload '{\"key\":\"value\"}' output.txt", | ||
"description": "Invoke a Lambda function with a JSON payload." | ||
} | ||
} | ||
|
Oops, something went wrong.