Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jediscript on github.
  • I am jediscript (https://keybase.io/jediscript) on keybase.
  • I have a public key ASALPWT9mqWzIwmeqYy3JtyxYm_pUcIbJ931A2eDVt8Z7Ao

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
<div id="root"></div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Bin</title>
<script src="https://wzrd.in/standalone/expect@latest"></script>
<script src="https://wzrd.in/standalone/deep-freeze@latest"></script>
</head>
<body>
<div id="root"></div>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.0.4/redux.js"></script>
<script src="https://fb.me/react-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
</head>
<body>
@jediscript
jediscript / introrx.md
Created May 3, 2017 06:55 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@jediscript
jediscript / phpcs-mac-os-howto.md
Created January 26, 2017 07:27 — forked from klederson/phpcs-mac-os-howto.md
How to setup PHP CodeSniffer into PHP Storm with Mac OSX

Good Practices

PHP CodeSniffer into PHP Storm

Install PHPCS in mac

sudo cp /private/etc/php.ini.default /private/etc/php.ini;
sudo php /usr/lib/php/install-pear-nozlib.phar;
pear config-set php_ini /private/etc/php.ini;
@jediscript
jediscript / sql_email_update.sql
Created September 26, 2016 05:40
SQL script to update users email for testing usage
-- SQL update for users testing table
-- You can also include the unique row ID
-- for email addresses that has a same username but different domain
-- I usually use this to have all the emails sent to my own email
-- so, as not to spam users when testing email functionality and other features
-- jediscript+randomtext@domain.com will send emails to jediscript@domain.com
-- if supported by your mail service provider
UPDATE your_users_table
SET email = CONCAT('jediscript+', LEFT(email, INSTR(email, '@')), 'domain.com')
@jediscript
jediscript / .bash_profile
Created June 26, 2016 16:07 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@jediscript
jediscript / README.md
Created June 5, 2016 03:43 — forked from oodavid/README.md
Backup MySQL to Amazon S3

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc