Skip to content

Instantly share code, notes, and snippets.

View jakeydevs's full-sized avatar
🎯
Focusing

Jake Price jakeydevs

🎯
Focusing
View GitHub Profile
@jakeydevs
jakeydevs / everything.bash
Last active May 21, 2019 08:00
All in one - from DO to Laravel App
#! /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
@jakeydevs
jakeydevs / update.sh
Last active November 21, 2018 05:27
Update script to turn PHP 7.0 to 7.2 - blog post explaning at wildrocket.io/
#! /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
@jakeydevs
jakeydevs / prettyPassword.js
Created July 15, 2015 08:58
Javascript Pretty Passwords
//-- prettyPassword.js
window.prettyPassword = {
//-- Password Vars
pass: "",
sep: "",
//-- generate
generate: function() {
@Pezmc
Pezmc / Speedsums
Last active August 29, 2015 14:08
Who Needs Maths
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);
@omgmog
omgmog / jquery_disqus_lazyload.js
Created April 5, 2012 13:19 — forked from muratcorlu/jquery_disqus_lazyload.js
Load disqus comments when visitor scroll down page to comments
/**
* 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