Skip to content

Instantly share code, notes, and snippets.

View hemanth22's full-sized avatar

Hemanth B hemanth22

View GitHub Profile
@hemanth22
hemanth22 / Nasm Link
Last active July 21, 2018 14:31
Nasm software related links collections

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)
@hemanth22
hemanth22 / Basicgitconfig.md
Last active December 10, 2020 13:51
Basic git configuration for beginners

BASIC GIT CONFIGURTION FOR BEGINNERS

To setup there are three levels of configuration

  1. --local to set configuration for a single repo.
  2. --global to set configuration for a your user.
  3. --system to set configuration for all users.

Here i am using global in git configuration commmands, you can use any level of configuration as per your requirement.

@hemanth22
hemanth22 / GitCheatList.md
Last active February 15, 2021 15:37
Git commands cheat list by Bitra Hemanth.

Git Cheat List

Project Workflow

Git command to initialize any project:

$git init

Command to add changes:

@hemanth22
hemanth22 / gistToken.sh
Created September 13, 2018 10:41 — forked from 0xjjpa/gistToken.sh
Creating a GIST Token (Shell script)
#!/bin/bash
#Usage ./gistToken.sh USERNAME (don't forget to chmod+x it)
#Inspired in http://www.lornajane.net/posts/2012/github-api-access-tokens-via-curl
curl -v -u $1 -X POST https://api.github.com/authorizations --data "{\"scopes\":[\"gist\"]}"
@hemanth22
hemanth22 / README.md
Created October 2, 2018 12:49 — forked from saenzramiro/README.md
CI with Travis, github Releases API, gh-pages and npm publish

CI with Travis, GitHub Releases API and gh-pages

When hosting a project on GitHub, it's likely you'll want to use GitHub Pages to host a public web site with examples, instructions, etc. If you're not using a continuous integration service like Travis, keeping your gh-pages site up to date requires continuous wrangling.

The steps below outline how to use Travis CI with GitHub Releases and GitHub Pages to create a "1-button" deployment workflow. After testing and running a release build, Travis will upload your release assets to GitHub. It will also push a new version of your public facing site to GitHub Pages.

Organize your project

Let's assume you are hosting a JavaScript project that will offer a single JavaScript file as a release asset. It's likely you'll organize your files like this.

@hemanth22
hemanth22 / README-Template.md
Created October 6, 2018 08:07 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@hemanth22
hemanth22 / curl.md
Created October 6, 2018 10:03 — forked from btoone/curl.md
A curl tutorial using GitHub's API

Introduction

An introduction to curl using GitHub's API.

The Basics

Makes a basic GET request to the specifed URI

curl https://api.github.com/users/caspyin
@hemanth22
hemanth22 / Vagrantfile
Created October 9, 2018 06:52 — forked from fsevero/Vagrantfile
Vagrant
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "django-base"
config.vm.network "forwarded_port", guest: 8000, host: 8080
config.vm.synced_folder "shared", "/home/vagrant/shared"
end
@hemanth22
hemanth22 / vagrant.sh
Created October 9, 2018 06:52 — forked from tamirko/vagrant.sh
vagrant
vagrant plugin install vagrant-vbox-snapshot
...
vagrant up
...
vagrant snapshot take after-bootstrap-snapshot
vagrant ssh
# Once you're in the VM :
$ cd /root
# Do some stuff ...