Skip to content

Instantly share code, notes, and snippets.

livin' the dream...

Rahul Bajaj rabajaj0509

livin' the dream...
View GitHub Profile
View ChildComponentsUpdateTheirParentsState.js
import React from "react";
export class Child extends React.Component {
constructor(props) {
this.handleChange = this.handleChange.bind(this);
handleChange(e) {
const name =;
rabajaj0509 / .bashrc
Last active Oct 13, 2020
List of my shortcuts for everyday commands!
View .bashrc
# User specific aliases and functions
# Git Aliases
alias ga='git add'
alias gb='git branch'
alias gcb='git checkout -b'
alias gco='git checkout'
alias gpf='git push -f origin'
alias gp='git push origin'
alias gc='git commit -m'
alias gca='git commit --amend'
#!/usr/bin/env sh
i3lock -i ~/.config/i3/lock_screen.png
View gist:c9c35a3e626e857c99d540bfccfa55b5
## Create a folder by the name Ansible:
$ mkdir Ansible
## Create a vagrant env:
$ vagrant init
# After creating a vagrant env, you will see a `Vagrant File`
$ vi Vagrantfile
##press dG to delete all contents of the file
##paste the following contents into the file:
You can’t perform that action at this time.