Skip to content

Instantly share code, notes, and snippets.

Working from home

Hemanth B hemanth22

Working from home
View GitHub Profile
hemanth22 / lipsum
Created May 7, 2021 — forked from candu/lipsum
Command-line Lorem Ipsum generator using curl,, and jq
View lipsum
while getopts ":n:wpbls" opt; do
case $opt in
hemanth22 /
Created May 4, 2021 — forked from labnol/
How to Learn Google Apps Script

Learning Google Apps Script

Find the best resources for learning Google Apps Script, the glue that connects all GSuite services including Gmail, Google Drive, Calendar, Google Sheets, Forms, Maps, Analytics and more.

A good place to learn more about Google Apps Script is the official documentation available at Here are other Apps Script resources that will help you get up to speed.

  1. Google Apps Script Code Samples by Amit Agarwal
  2. Google Apps Script Development - Create Google Apps Script projects locally inside VS Code - video tutorial
  3. Awesome Google Scripts by Amit Agarwal
  4. Google Developer Experts - Follow Apps Scr
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
hemanth22 /
Last active Apr 3, 2021
httpd installation
yum install httpd -y
service httpd start
systemctl status -l httpd
echo "<h1>Served from Server2, Linux 2</h1>" > /var/www/html/index.html
hemanth22 /
Last active Mar 23, 2021
git rewrite history
  1. First Go to below website link:

  1. Download the bfg.jar file.
  2. Place this file where repo has leaked secrets.
  3. Execute below command with filename which contain leaked secrets
java -jar bfg-1.14.0.jar .git --delete-files *terraform.tfstate.backup*
View hemanth.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
hemanth22 / DisplayImage.ps1
Created Feb 20, 2021 — forked from zippy1981/DisplayImage.ps1
Display an image from Windows Powershell
View DisplayImage.ps1
# Loosely based on
$file = (get-item 'C:\Users\Public\Pictures\Sample Pictures\Chrysanthemum.jpg')
#$file = (get-item "c:\image.jpg")
$img = [System.Drawing.Image]::Fromfile($file);
# This tip from
View crik8s.playbook
- hosts: localhost
become: true
gather_facts: true
- name: Install pip on the servers
name: python-pip
state: latest
update_cache: true
hemanth22 / Vagrantfile
Created Dec 19, 2020 — forked from z3cka/Vagrantfile
Sample base Vagrantfile with 2GB of ram and 2 cpus :-) Initialize with: vagrant init precise32
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at
# Every Vagrant virtual environment requires a box to build off of. = "precise32"
hemanth22 /
Created Dec 4, 2020 — forked from g0t4/
Starting Point Files for Jenkins2 Getting Started course