Skip to content

Instantly share code, notes, and snippets.

View wasimosmanhome's full-sized avatar

Wasim Osman wasimosmanhome

  • Canada
View GitHub Profile
@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 / selenium_install
Last active March 9, 2021 13:46
selenium_install
# https://www.youtube.com/watch?v=4TuawlLrWaY
# This is gold
sudo apt-get remove chromium-browser && sudo apt-get remove chromium && sudo apt-get autoremove && sudo apt-get clean
sudo pip3 install selenium
@wasimosmanhome
wasimosmanhome / router_restart.py
Last active August 26, 2020 13:14
Router restart selenium script
from selenium import webdriver
import time
USERNAME = 'cusadmin'
PASSWORD = 'password'
driver = webdriver.Chrome()
driver.get('http://192.168.2.1/login.html#admin_devreboot/m/4/s/6')
@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'
@wasimosmanhome
wasimosmanhome / pyinstallation.sh
Created August 26, 2020 13:38
pyinstallation.sh
# Copy Documents contents
sudo apt-get update -y && sudo apt-get upgrade -y --allow-unauthenticated && sudo apt-get dist-upgrade -y && sudo dpkg -i /home/pi/Documents/htop_2.0.2-2_armhf.deb
sudo apt-get install fish screen -y
# Plex
@wasimosmanhome
wasimosmanhome / raspAP installation (unattended)
Last active August 28, 2020 14:25
raspAP installation (unattended)
curl -sL https://install.raspap.com | bash -s -- -y
sudo iptables -t nat -I POSTROUTING -d 127.0.0.0/8 -j ACCEPT