Skip to content

Instantly share code, notes, and snippets.

View wasimosmanhome's full-sized avatar

Wasim Osman wasimosmanhome

  • Canada
View GitHub Profile
@wasimosmanhome
wasimosmanhome / install_grafana
Created January 8, 2020 01:09
This is a grafana installation script tested on Raspbian. This should also run on any linux system
#!/bin/bash
#This script is to install grafana server on the raspberry pi
#Download the installation file
#wget -P /home/pi/Documents/ https://dl.grafana.com/oss/release/grafana_6.4.4_armhf.deb
@wasimosmanhome
wasimosmanhome / raspberrypi4_overclock
Created May 8, 2020 20:16
Overclock Raspberry pi 4
sudo nano /boot/config.txt
#then add
over_voltage=5
arm_freq=2000
gpu_freq=600
@wasimosmanhome
wasimosmanhome / rasp_remove
Created May 16, 2020 10:57
Remove RaspAp
#!/bin/bash
raspap_dir="/etc/raspap"
raspap_user="www-data"
version=`sed 's/\..*//' /etc/debian_version`
# Determine Raspbian version and set default home location for lighttpd
webroot_dir="/var/www/html"
if [ $version -eq 10 ]; then
version_msg="Raspbian 10.0 (Buster)"
php_package="php7.1-cgi"
cd to Downloads
wget https://github.com/wbenny/htop/files/573914/htop_2.0.2-2_armhf.deb.zip && unzip htop_2.0.2-2_armhf.deb.zip && sudo dpkg -i htop_2.0.2-2_armhf.deb
IF YOU HAVE TO REPEAT
sudo dpkg -i htop_2.0.2-2_armhf.deb
htop
@wasimosmanhome
wasimosmanhome / grafana_install
Last active May 20, 2020 21:31
Install Grafana on Pi
wget https://s3-us-west-2.amazonaws.com/grafana-releases/release/grafana_5.3.2_armhf.deb && sudo dpkg -i grafana_5.3.2_armhf.deb
sudo apt-get update && sudo apt-get install grafana -y
sudo systemctl enable grafana-server.service
Status Board
Status in ("To Do", Open) AND issuetype not in (Epic, bug, Sub-task, "Professional Services") AND project in (Skynet, "Toronto Raptors", EC)
-
@wasimosmanhome
wasimosmanhome / Install_node_npm
Created June 12, 2020 16:01
Install Node.JS and NPM on Raspberry pi
add repo
curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -
Install
sudo apt-get install -y nodejs -y
sudo HOST=192.168.2.30 PORT=8000 crontab-ui
@wasimosmanhome
wasimosmanhome / REMOTE HOST IDENTIFICATION HAS CHANGED!
Created July 25, 2020 03:01
REMOTE HOST IDENTIFICATION HAS CHANGED!
ssh-keygen -R 192.168.2.10
@wasimosmanhome
wasimosmanhome / crontab
Last active August 9, 2020 22:20
crontab
# m h dom mon dow command
# 0 6 * * * bash /home/pi/Documents/router_restart.py && date >> /home/pi/Music/samplefile.txt
# 0 6 * * * python /home/pi/Documents/router_restart.py && date >> /home/pi/Music/samplefile.txt
1 * * * * date >> /home/pi/Music/samplefile.txt
#Option1
0 6 * * * bash -c 'python /home/pi/Documents/router_restart.py && date >> /home/pi/Music/samplefile.txt'