Skip to content

Instantly share code, notes, and snippets.

View projected1's full-sized avatar
๐Ÿ˜Ž
Coding

Daniel Gorbatov projected1

๐Ÿ˜Ž
Coding
View GitHub Profile
@projected1
projected1 / aws-local-zone.yaml
Created December 16, 2022 10:36
CloudFormation template to deploy EC2 instance in an AWS Local Zone.
AWSTemplateFormatVersion: '2010-09-09'
Parameters:
VpcId:
Type: AWS::EC2::VPC::Id
Resources:
Ec2Instance:
Type: AWS::EC2::Instance
Properties:
ImageId: ami-0b0dcb5067f052a63
InstanceType: t3.medium
@projected1
projected1 / tracker-like-button-fix.user.js
Last active August 25, 2022 21:48
Disables like button popup menu in Pivotal Tracker stories.
// ==UserScript==
// @name Pivotal Tracker Like Button Popup Killer
// @namespace https://gist.github.com/projected1
// @version 0.1
// @description Disables like button popup menu in Pivotal Tracker stories
// @author Daniel Gorbatov
// @license MIT
// @homepage https://gist.github.com/projected1/b6d8c389519b664ab75afe4e8e936ddd
// @match https://www.pivotaltracker.com/n/projects/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@projected1
projected1 / aws-favorites-abbr.user.js
Last active April 1, 2023 07:56
Abbreviates service names in AWS favorites toolbar.
// ==UserScript==
// @name AWS Favorites Abbreviator
// @namespace https://gist.github.com/projected1
// @version 0.2
// @description Abbreviates service names in AWS favorites toolbar
// @author Daniel Gorbatov
// @license MIT
// @homepage https://gist.github.com/projected1/e8a5ac0ba282619488deaf86ec256f4a
// @match https://*.aws.amazon.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
@projected1
projected1 / aws-principals.md
Created June 20, 2021 22:15
AWS service principals.
@projected1
projected1 / aws-cli-cheat-sheet.md
Last active February 10, 2025 03:45
AWS CLI cheat sheet.
@projected1
projected1 / aws-cli.md
Last active July 13, 2023 16:00
AWS CLI reference.

AWS CLI V2

accessanalyzer

  • apply-archive-rule
  • cancel-policy-generation
  • create-access-preview
  • create-analyzer
  • create-archive-rule
  • delete-analyzer
  • delete-archive-rule
@projected1
projected1 / gitlab-ssh-config.md
Last active April 4, 2025 07:30
GitLab SSH Configuration.

GitLab SSH Config

This tutorial will help you to configure your GitLab SSH keys. Once configured, you should be able to clone repositories, push your changes and submit your pull requests to GitLab repositories via SSH.

Unless otherwise noted, all instructions are for the Window environment. If you are looking for instructions for Linux or MAC OS, please consult the official documentation instead.

Generating a New SSH Key

If not already installed, install Git for Windows.

@projected1
projected1 / amazon-s3-upload.md
Last active May 16, 2021 11:20
Uploading Files to Amazon S3 using Node.js & AWS SDK.

Uploading Files to Amazon S3

There is a specific way to upload files to Amazon S3. Unlike the traditional client-server approach, the client does not need to send any actual files to the server. Instead, the client asks the server for a pre-signed URL to an Amazon S3 bucket and then uploads the files directly to S3. If the client wants to upload multiple files, it needs to get a separate pre-signed URL for each and every file.

Installing the AWS CLI

Visit the AWS CLI web page and follow the installation instructions for our operating system.

The AWS CLI is currently available on:

@projected1
projected1 / git-reference.md
Last active June 16, 2021 20:20
Git reference.
@projected1
projected1 / mongodb-reference.md
Last active March 24, 2022 11:54
MongoDB reference.

MongoDB

Command-Line Reference

Start Mongo shell

$ mongo