Skip to content

Instantly share code, notes, and snippets.

@lmj0011
lmj0011 / my.cnf
Last active May 27, 2018 20:13 — forked from chrisjlee/my.cnf
my.cnf file optimized for InnoDB 64bit setups
# forked from https://gist.github.com/chrisjlee/2973469
[client]
#password = [your_password]
#port = 3306
#socket = /tmp/mysqld.sock
# *** Application-specific options follow here ***
#
@lmj0011
lmj0011 / RDS-Aurora-CloudFormation-Example.yaml
Created August 30, 2017 06:56 — forked from sjparkinson/RDS-Aurora-CloudFormation-Example.yaml
A basic CloudFormation template for an RDS Aurora cluster.
---
AWSTemplateFormatVersion: 2010-09-09
Description: A basic CloudFormation template for an RDS Aurora cluster.
Parameters:
DatabaseInstanceType:
Default: db.r3.large
AllowedValues:
- db.r3.large
- db.r3.xlarge
- db.r3.2xlarge
@lmj0011
lmj0011 / 0_reuse_code.js
Created December 26, 2016 04:34
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@lmj0011
lmj0011 / gitCheck.md
Last active May 1, 2020 08:05 — forked from mzabriskie/README.md
Check git status of multiple repos

Usage:

gitCheck [directory]

This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.


Changes

@lmj0011
lmj0011 / jquery-scroll-bottom.js
Created June 19, 2016 07:49 — forked from toshimaru/jquery-scroll-bottom.js
Detect the scrolling to bottom of the page using jQuery.
$(window).on("scroll", function() {
var scrollHeight = $(document).height();
var scrollPosition = $(window).height() + $(window).scrollTop();
if ((scrollHeight - scrollPosition) / scrollHeight === 0) {
// when scroll to bottom of the page
}
});