Skip to content

Instantly share code, notes, and snippets.

View iamshreeram's full-sized avatar

Shreeram iamshreeram

  • 127.0.0.1
View GitHub Profile

The Ying-Yang of CEOs and Engineers

All successful startups begin with two founders. One guy is the Engineer, and the other guy is the business dude. Over the years of working with various people, I've learned what makes a good engineer, and what makes a good business dude, and the two are complete opposites of each other.

CEO Engineer
@iamshreeram
iamshreeram / pyget2.py
Created September 25, 2016 02:55 — forked from benhutchins/pyget2.py
A python download accelerator
#!/usr/bin/env python
#
# pyget2.py
# A python download accelerator
#
# This file uses multiprocessing along with
# chunked/parallel downloading to speed up
# the download of files (if possible).
#
# @author Benjamin Hutchins
@iamshreeram
iamshreeram / PortChecker.bat
Created October 29, 2017 18:48
This batch script finds the process / image based on users input port.
::This script finds the process / image based on users input port
::Sample port (8888) is used in this
for /f "tokens=5" %a in ('netstat -aon ^| findstr 8888') do tasklist /FI "PID eq %a"
@iamshreeram
iamshreeram / README.rst
Created November 16, 2017 23:37 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@iamshreeram
iamshreeram / README-Template.md
Created May 1, 2018 04: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

@iamshreeram
iamshreeram / git-commands.md
Last active August 3, 2019 20:42
Git commands for clone from existing repository

Below are list of commands to modify the existing repo and push back the changes

git clone <https://remotegiturl.git>
cd <git-project-name>
git config credential.helper store
git add *
git commit -m "<Updating Comments for modified file>"
git push origin master
@iamshreeram
iamshreeram / disconnectfacultywifi.sh
Created May 4, 2018 03:09
Shell scripts for removing preferred wireless network
#!/bin/bash
# Source is from mbreeden/network of github
if [ "$(/usr/sbin/networksetup -getairportnetwork en0)"="Current Wi-Fi Network: Faculty_Access" ]; then
/usr/sbin/networksetup -removepreferredwirelessnetwork en0 "Faculty_Access"
/usr/sbin/networksetup -setairportpower en0 off
/usr/sbin/networksetup -setairportpower en0 on
/usr/bin/security delete-generic-password -a "Faculty_Access" /Library/Keychains/System.keychain
user=$(ls /Users | grep -v ".localized" | grep -v "Shared"| grep -v "Guest" | grep -v ".DS_Store" | grep -v "admin")
@iamshreeram
iamshreeram / adduser.sh
Created July 29, 2018 16:14
Adding user to unix server
useradd -m username
passwd userpassword
# OPEN sudo visudo
# ADD a group like below
## Allows people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
%somegroupname ALL=(ALL) ALL
# Save your changes and exit the editor.
@iamshreeram
iamshreeram / restartvtsport.ps1
Created August 3, 2018 16:48
Restarting every HP VTS ports installed in Windows Server
$NODE='C:\Program Files\HP\VTS\web\node.exe'
$VTSCMD='C:\Program Files\HP\VTS\web\vtscmd'
$LISTCOMD='/list'
$STARTCOMD='/start'
$STOPCOMD='/stop_all'
# Writing all port details to file
& $NODE $VTSCMD $LISTCOMD |% { If ($_ -match "^.+?name: (?<Name>.+?)\s+port: (?<Port>.+?)$") { Write-Output "$('{0},{1}' -f $matches['Name'], $matches['Port'])"}} | Out-File -Append 'ports.csv' -Encoding UTF8
# Stop all ports
@iamshreeram
iamshreeram / tomcat-validator.sh
Last active September 3, 2018 16:34
Tomcat validation without Sleep
# Prostart the script
#!/bin/bash
#set -x
enfilevar_setup(){
STATFILE=`echo $CURRHOME/StatusOutput`
OUT=`echo $CURRHOME/today.html`
CONFIG=`echo $CURRHOME/config/app.conf`