Skip to content

Instantly share code, notes, and snippets.

View dariodiaz's full-sized avatar

Dario Diaz dariodiaz

View GitHub Profile
@dariodiaz
dariodiaz / puppet_deploy.sh
Created October 17, 2012 18:47 — forked from mitchellh/gist:3792312
bash: puppet deploy
#!/bin/bash
#
# This is the script responsible for updating our Puppet master data,
# which includes modules, manifests, hiera data, etc. All of this data is
# managed in a git repository and upon "deploy" it is synced into the Puppet
# master.
#
# This script mirrors the remote git repository, looking for branches that
# match "env-*" (such as "env-production" or "env-test"). Each of these branches
# is setup as an environment into the Puppet master's data files. The
@dariodiaz
dariodiaz / README.md
Created November 22, 2012 22:47 — forked from oodavid/README.md
php,git: Deploy your site with git

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@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;
}
@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 / 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 / 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 / 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 / aa-prologue.md
Created July 6, 2013 01:26 — forked from dwayne/aa-prologue.md
php: training course php fundamentals
@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 / 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