Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Sri Harsha sriharrsha

🎯
Focusing
  • FortyAU LLC
  • Nashville
View GitHub Profile
@sheikhwaqas
sheikhwaqas / setup-mysql57-ubuntu16.sh
Created Apr 11, 2017
Install MySQL Server 5.7 on Ubuntu 16.04 LTS
View setup-mysql57-ubuntu16.sh
###############################################################################
# Install MySQL Server 5.7 on Ubuntu 16.04 LTS
###############################################################################
# Download and Install the Latest Updates for the OS
apt update && apt upgrade -y
# Install MySQL Server in a Non-Interactive mode. Default root password will be "root"
echo "mysql-server-5.7 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mysql-server-5.7 mysql-server/root_password_again password root" | sudo debconf-set-selections
@erikbern
erikbern / install-tensorflow.sh
Last active Jan 17, 2021
Installing TensorFlow on EC2
View install-tensorflow.sh
# Note – this is not a bash script (some of the steps require reboot)
# I named it .sh just so Github does correct syntax highlighting.
#
# This is also available as an AMI in us-east-1 (virginia): ami-cf5028a5
#
# The CUDA part is mostly based on this excellent blog post:
# http://tleyden.github.io/blog/2014/10/25/cuda-6-dot-5-on-aws-gpu-instance-running-ubuntu-14-dot-04/
# Install various packages
sudo apt-get update
@akirattii
akirattii / background.js
Created Dec 2, 2016
Message passing of Chrome Extension example
View background.js
/*****************************************************************
* onMessage from the extension or tab (a content script)
*****************************************************************/
chrome.runtime.onMessage.addListener(
function(request, sender, sendResponse) {
if (request.cmd == "any command") {
sendResponse({ result: "any response from background" });
} else {
sendResponse({ result: "error", message: `Invalid 'cmd'` });
}