Skip to content

Instantly share code, notes, and snippets.

@rakib-amin
rakib-amin / Solution.md
Created December 2, 2016 13:04
Fix mysql server start error on OSX El Capitan / macOS Sierra
  • $ sudo chmod -R 777 /usr/local/var/mysql/
  • $ sudo /usr/local/mysql/support-files/mysql.server start
@rakib-amin
rakib-amin / Solution.md
Created December 1, 2016 07:04
Cannot change java version on Windows
@rakib-amin
rakib-amin / jdk17.bat
Created December 1, 2016 04:38
Switch between JDKs (Quite literally)
rem // credit - https://blogs.oracle.com/pranav/entry/switch_between_different_jdk_v
@echo off
echo Setting JAVA_HOME
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
echo setting PATH
set PATH=C:\Program Files\Java\jdk1.7.0_79\bin;%PATH%
echo Display java version
java -version
@rakib-amin
rakib-amin / Solution.md
Last active December 1, 2016 04:33
Registry key Error: Java version has value '1.8', but '1.7' is required
@rakib-amin
rakib-amin / Solution.MD
Last active December 1, 2016 04:34
Fix Forbidden 403 in localhost after upgrading to macOS Sierra
@rakib-amin
rakib-amin / AddCloseAnimOnClose.js
Last active August 18, 2017 04:12
How to set a custom (non-bootstrap) closing animation for twitter bootstrap modal?
/*
Animate.css by Daniel Eden (https://daneden.github.io/animate.css)
is a collection of amazing css animations. On the other hand, Bootstrap
transition(.js/.css) offers only few choices. So here is a work around
found from SO/Google and little trial and error. The Solution is based
on setTimeout function, that kickstarts a function after a specific period of time.
*/
(function($) {
$(window).load(function(){