This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# This script is my all in one Laravel dev enviroment for | |
# remote working. DO NOT USE ON LIVE SERVICES AS THERE COULD | |
# BE ISSUES | |
# | |
# It does: | |
# - Sets up PHP dependancies | |
# - Installs Composer | |
# - Creates MYSQL user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# Please only run IF YOU ARE SURE YOU SHOULD! | |
# | |
# This script will remove PHP and attempt to install the latest | |
# "Stable" version! To help me with LARAVEL installations, it'll | |
# also install composer and turn on mod_rewrite as well if it cannot | |
# be sure it is installed | |
# | |
# @author @JakeLPrice |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//-- prettyPassword.js | |
window.prettyPassword = { | |
//-- Password Vars | |
pass: "", | |
sep: "", | |
//-- generate | |
generate: function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic = function() { | |
var q = $("#question").text(); | |
q = q.substr(0, q.length - 2).replace('÷', '/').replace('x', '*'); | |
$("#answer").val(eval(q)).keydown().keyup().keypress(); | |
} | |
setInterval(cheatInsteadOfPlayingTheGameProperlyAndImprovingYourMentalArithmatic, 250); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Load disqus comments when visitor scroll down page to comments | |
* | |
* Usage: | |
* Add a div with id "disqus_thread" and data attributes for every disqus parameter: | |
* | |
* <div id="disqus_thread" data-disqus-shortname="username" data-disqus-url="http://example.com/post/post-name/"></div> | |
* | |
* @author: Murat Corlu | |
* @link: https://gist.github.com/gists/2290198 |