Skip to content

Commit

Permalink
Merge pull request #61 from vitabletech/release-v1.5.0
Browse files Browse the repository at this point in the history
Release v1.5.0
  • Loading branch information
msrajawat298 authored Nov 19, 2023
2 parents 5a60300 + 6e20e96 commit 690cba2
Show file tree
Hide file tree
Showing 7 changed files with 509 additions and 19 deletions.
31 changes: 16 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,25 +121,26 @@ <h3>Features</h3>
and snippets.
</li>
<li>
Supports multiple programming languages
<span class="badge badge-primary">PHP</span>
<span class="badge badge-warning text-dark">JavaScript </span>
<span class="badge badge-danger">CSS</span>
<span class="badge badge-info"> SASS</span>
<span class="badge badge-info"> Wordpress</span>
<span class="badge badge-info"> Docker</span>
<span class="badge badge-primary"> Git commands</span>
<span class="badge badge-secondary">
Shell, linux commands
</span>
<span class="badge badge-success">
Other windows commands other general useful
</span>
Supports multiple programming languages :
<ul>
<li><span class="badge badge-warning text-dark"> AWS cli </span></li>
<li><span class="badge badge-dark"> Ansible commands </span></li>
<li><span class="badge badge-info"> Terraform commands </span></li>
<li><span class="badge badge-primary"> PHP </span></li>
<li><span class="badge badge-warning text-dark"> JavaScript </span></li>
<li><span class="badge badge-danger"> CSS </span></li>
<li><span class="badge badge-success"> SASS </span></li>
<li><span class="badge badge-dark"> Wordpress </span></li>
<li><span class="badge badge-info"> Docker </span></li>
<li><span class="badge badge-primary"> Git commands </span></li>
<li><span class="badge badge-secondary">Shell, linux commands</span></li>
<li><span class="badge badge-success">Useful windows commands with other general alias commands </span></li>
</ul>
</li>
<li>Easy to use and install in Visual Studio Code.</li>
<li>Open source with a permissive MIT license.</li>
</ul>
<h3>Upcomming Features</h3>
<h3>Upcoming Features</h3>
<ul>
<li>laravel</li>
<li>React</li>
Expand Down
22 changes: 18 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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",
Expand Down
117 changes: 117 additions & 0 deletions snippets/ansible.code-snippets
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."
}
}
78 changes: 78 additions & 0 deletions snippets/aws.code-snippets
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."
}
}

Loading

0 comments on commit 690cba2

Please sign in to comment.