This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": 1, | |
"name": "Rahul K", | |
"designation": "Director", | |
"employee_reporting": [ | |
2,3 | |
] | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
touch test.log | |
sudo apt-get update | |
sudo apt-get install nginx -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "id":1, | |
"name": "Brendan D. Gregg", | |
"link":"http://www.brendangregg.com/", | |
"img":"http://www.brendangregg.com/Images/brendan_rajasthan2011_thumb.jpg" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import RPi.GPIO as GPIO | |
import time | |
if __name__ == "__main__": | |
pir_sensor = 13 #sensor pin number | |
led_pin = 7 #led pin nunmber | |
GPIO.setmode(GPIO.BOARD) | |
GPIO.setup(pir_sensro,GPIO.IN) | |
GPIO.setup(led_pin,GPIO.OUT) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder