Skip to content

Instantly share code, notes, and snippets.

@OliPassey
OliPassey / setup-mysql.sh
Last active August 14, 2018 12:03 — forked from sheikhwaqas/setup-mysql.sh
Install MySQL Server on Ubuntu (Non-Interactive Installation)
# Download and Install the Latest Updates for the OS
apt-get update && apt-get upgrade -y
# Set the Server Timezone to CST
echo "Europe/London" > /etc/timezone
dpkg-reconfigure -f noninteractive tzdata
# Enable Ubuntu Firewall and allow SSH & MySQL Ports
ufw enable
ufw allow 22
@OliPassey
OliPassey / DHT22_temphum_hostedgraphite.py
Last active January 2, 2018 21:48 — forked from dashbad/temp_hum_influx.py
Push DHT22 raspberry Pi readings to Hosted Graphite
#!/usr/bin/python
# Copyright (c) 2014 Adafruit Industries
# Author: Tony DiCola
# Forked & Amended: Oli Passey & Steven Gould (2017)
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@OliPassey
OliPassey / setup_selenium.sh
Last active November 1, 2017 14:58 — forked from curtismcmullan/setup_selenium.sh
Setup Selenium Server on Ubuntu 14.04
#!/bin/bash
# Following the guide found at this page
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html
echo "\r\nUpdating system ...\r\n"
sudo apt-get update
# Create folder to place selenium in