Skip to content

Instantly share code, notes, and snippets.

@Parthmonga
Parthmonga / README.md
Created August 2, 2016 01:03 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

@Parthmonga
Parthmonga / venv_cheat_sheet.md
Created April 3, 2018 23:57 — forked from bbengfort/venv_cheat_sheet.md
My virtualenv and virtualenv wrapper cheat sheet. I alias the commands of virtualenv and virtualenv wrapper for my own development environment.

Ben's VirtualEnv Cheatsheet

This cheat sheet describes my usage/implementation of virtualenv with virtualenv wrapper and the bash foo that I added with the help of many blogs to make it all tick together in fun land.

Quick Reference

$ echo $WORKON_HOME
/Users/benjamin/.virtualenvs

$ echo $PROJECT_HOME
@Parthmonga
Parthmonga / squash-commits.sh
Created April 9, 2019 04:17 — forked from jbub/squash-commits.sh
git squash last two commits into one
git rebase --interactive HEAD~2
# we are going to squash c into b
pick b76d157 b
pick a931ac7 c
# squash c into b
pick b76d157 b
s a931ac7 c
@Parthmonga
Parthmonga / cka-ckad-bookmarks
Created August 9, 2021 04:08 — forked from milindchawre/cka-ckad-bookmarks
Bookmarks for cka and ckad exam
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1604897638" LAST_MODIFIED="0" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks bar</H3>
<DL><p>
@Parthmonga
Parthmonga / ec2-start-and-ssh.sh
Created August 20, 2021 03:35 — forked from jotaelesalinas/ec2-start-and-ssh.sh
Starts an EC2 instance and runs a command or opens a shell
#!/bin/bash
set -u
# Starts an EC2 instance _if needed_ and runs an SSH command or opens a shell.
# Summary of steps:
# 1. Checks current instance status
# 2. Starts instance if needed
# 3. Waits for the instance to be ready (status "running")
# 4. Connects via SSH, possibly running a command
@Parthmonga
Parthmonga / vagrant-cheat-sheet.md
Created August 28, 2021 07:43 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)