Skip to content

Instantly share code, notes, and snippets.

View chowmean's full-sized avatar
🏠
Working from home

Gaurav Yadav chowmean

🏠
Working from home
View GitHub Profile
[
{
"id": 1,
"name": "Rahul K",
"designation": "Director",
"employee_reporting": [
2,3
]
},
{
/*!
* Bootswatch v4.6.0
* Homepage: https://bootswatch.com
* Copyright 2012-2021 Thomas Park
* Licensed under MIT
* Based on Bootstrap
*//*!
* Bootstrap v4.6.0 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
touch test.log
sudo apt-get update
sudo apt-get install nginx -y
[
{ "id":1,
"name": "Brendan D. Gregg",
"link":"http://www.brendangregg.com/",
"img":"http://www.brendangregg.com/Images/brendan_rajasthan2011_thumb.jpg"
}
]
@chowmean
chowmean / run_mail_webserver.py
Last active May 5, 2019 18:54
Basic flask server for sending mails through gmail.
''' How to run
## install virtual env
sudo apt-get install virtualenv
## intialize env
virtualenv venv
## activate Virtualenv
source venv/bin/activate
## insatll Flask
pip install flask
##Run server
import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(GPIO.BCM)
blinkCount = 7
LEDPin = 13
GPIO.setup(LEDPin , GPIO.OUT)
while (count < blinkCount):
import RPi.GPIO as GPIO
import time
from fabric.api import *
env.hosts = [
"HOST"
]
# Set the username and password for ssh
env.user = "USERNAME"
env.password = "PASSWORD" #avoid this in case of your ssh key is already added to the machine.
@chowmean
chowmean / .bash_profile
Last active August 26, 2016 13:59
Profile file for terminal
if [ -f "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
source "$(brew --prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi
alias composer="php /usr/local/bin/composer.phar"
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
alias gs='git status '
@chowmean
chowmean / initial_requirements.py
Created February 16, 2016 07:03
Initial requirement for developers on ubuntu
echo "Installing vlc"
apt-get -y --force-yes install vlc>/dev/null
echo "Installing curl"
apt-get -y install --force-yes curl>/dev/null
echo "Installing git"
apt-get -y install--force-yes git>/dev/null
echo "Installing vim"
apt-get -y --force-yes install vim>/dev/null
echo "Installing default jre "
apt-get -y --force-yes install default-jre>/dev/null