Skip to content

Instantly share code, notes, and snippets.

View AkashMartin1's full-sized avatar
💻

Akash Martin AkashMartin1

💻
  • Freelancer
  • INDIA
  • 21:50 (UTC +05:30)
View GitHub Profile
@vinodpandey
vinodpandey / MySql-5.6-installation guide.md
Last active March 25, 2024 18:13
Install MySQL 5.6.xx on Ubuntu 18.04 & Ubuntu 20.04

MySQL Download URL

https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-5.6.46-linux-glibc2.12-x86_64.tar.gz

Open the terminal and follow along:

  • Uninstall any existing version of MySQL
sudo rm /var/lib/mysql/ -R

############### INSTALLING MySQL 5.6 ON UBUNTU 20.04 LTS

start by updating the release sudo apt-get update && sudo apt-get dist-upgrade

###### Uninstall any existing version of MySQL

check if you have any mysql installed

mysql -version or sudo dpkg -l | grep mysql

@anantn
anantn / getusermedia_picture.html
Created February 17, 2012 09:12
Take a picture with getUserMedia
<html>
<body>
<video id="v" width="300" height="300"></video>
<input id="b" type="button" disabled="true" value="Take Picture"></input>
<canvas id="c" style="display:none;" width="300" height="300"></canvas>
</body>
<script>
navigator.getUserMedia({video: true}, function(stream) {
var video = document.getElementById("v");
var canvas = document.getElementById("c");
@nz
nz / 1-sunspot-1.2-silent-fail.rb
Created December 30, 2010 20:59
Silently fail instead of raising an exception when an error occurs while writing to Solr.
###
#
# Custom write failure handling when there is an error writing to Solr.
# Install this in an initializer.
# Prints error messages to stderr.
#
# NOTE: does not fail for reads; you should catch those exceptions in your controller.
#
##