Skip to content

Instantly share code, notes, and snippets.

View dariodiaz's full-sized avatar

Dario Diaz dariodiaz

View GitHub Profile
@dariodiaz
dariodiaz / composer.json
Created August 10, 2013 18:25 — forked from johnpbloch/composer.json
PHP: phpunit global installation
{
"name": "phpunit",
"description": "PHPUnit Composer Package",
"require": {
"phpunit/phpunit": "3.7.*"
},
"config": {
"bin-dir": "/usr/local/bin/"
}
}
@dariodiaz
dariodiaz / env.php
Created August 10, 2013 16:31 — forked from zackkitzmiller/env.php
PHP - Laravel: env config
<?php
$env = $app->detectEnvironment(function() {
return getenv('[APPNAME]_ENV') ?: 'development';
});
@dariodiaz
dariodiaz / awesome-php.md
Last active December 20, 2015 20:09 — forked from ziadoz/awesome-php.md
PHP: List of libraries

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related

@dariodiaz
dariodiaz / powssl
Last active December 20, 2015 19:59 — forked from paulnicholson/powssl
Config - SSL: working with SSL certificates

Instructions

  • Install stud $ brew install https://raw.github.com/paulnicholson/homebrew/master/Library/Formula/stud.rb
  • Download and install the powssl script $ curl https://raw.github.com/gist/2050941/3ea59efe8c7e9013c265313045a9fdda5c653963/powssl > ~/bin/powssl $ chmod +x ~/bin/powssl
  • Run powssl to create development certificate and configure stud.
  • $ powssl
@dariodiaz
dariodiaz / aa-prologue.md
Created July 6, 2013 01:26 — forked from dwayne/aa-prologue.md
php: training course php fundamentals
@dariodiaz
dariodiaz / sublime_shortcuts
Last active December 18, 2015 14:39
sublime: Useful shortcuts
h1. Sublime Text 2 - Useful Shortcuts (PC)
Loosely ordered with the commands I use most towards the top. Sublime also offer "full documentation":http://www.sublimetext.com/docs/2/.
h2. Editing
| *Ctrl+C* | copy current line (if no selection) |
| *Ctrl+X* | cut current line (if no selection) |
| *Ctrl+⇧+K*| delete line |
| *Ctrl+↩* | insert line after |
@dariodiaz
dariodiaz / Default.sublime-theme
Created June 7, 2013 14:01 — forked from larrybotha/A.markdown
sublime: theme config for sidebar
[
{
"class": "sidebar_container",
"layer0.tint": [60, 60, 60],
"layer0.opacity": 1.0,
"layer0.draw_center": false,
"layer0.inner_margin": [0, 0, 1, 0],
"content_margin": [0, 0, 1, 0]
},
{
@dariodiaz
dariodiaz / editor_browser
Last active December 14, 2015 15:28 — forked from JeffreyWay/gist:5105516
javascript: an editor in the browser
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:16px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script>
@dariodiaz
dariodiaz / LocalStorage.java
Created March 4, 2013 03:28 — forked from roydekleijn/LocalStorage.java
Java: WebDriver and LocalStorage
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class LocalStorage {
private JavascriptExecutor js;
public LocalStorage(WebDriver webDriver) {
this.js = (JavascriptExecutor) webDriver;
}
@dariodiaz
dariodiaz / SessionStorage.java
Created January 31, 2013 23:50 — forked from roydekleijn/SessionStorage.java
java:Session Storage
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
public class SessionStorage {
private JavascriptExecutor js;
public SessionStorage(WebDriver driver) {
this.js = (JavascriptExecutor) driver;
}