Skip to content

Instantly share code, notes, and snippets.

@pderoubaix
pderoubaix / init.js
Last active August 29, 2015 14:21 — forked from erquhart/init.js
var GRID_URL = 'http://localhost:4444/wd/hub';
var GRID_URL_SAUCELABS = 'http://[email protected]:80/wd/hub';
var GRID_URL_BROWSERSTACK = 'http://[email protected]/wd/hub';
var domains = {
local: 'obfuscated-url',
dev: 'obfuscated-url',
prod: 'obfuscated-url'
};
@pderoubaix
pderoubaix / gist:40f9cf7fc3749d3880e5
Created December 21, 2014 11:35
akamai test url with curl
curl -H "Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no" -IXGET www.xxxx.org
@pderoubaix
pderoubaix / node_links.md
Created November 11, 2013 11:40
List of node.js (javascript) Lib links
send data to graphite
echo "stats.anything.you.like:14|c" | nc -w 1 -u graphite 8125
@pderoubaix
pderoubaix / media.conf
Last active December 26, 2015 15:39 — forked from phpdude/nginx.conf
server {
#listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
server_name media.resize.dev;
error_log /var/log/nginx/debug.log debug;
log_subrequest on;
rewrite_log on;
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@pderoubaix
pderoubaix / zend2-nginx
Created October 13, 2013 10:36
nginx vhost config zend2
server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default ipv6only=on; ## listen for ipv6
root /home/example/public;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name dev.apigility.com;
@pderoubaix
pderoubaix / osx-command-memo.md
Created September 28, 2013 16:23
Mac-osx command memo

find the program running on a port sudo lsof -i :80 # checks port 80

/* https://github.com/nikos/cmskern/blob/master/playapp/public/javascripts/widgets.js*/
/**
* Widget for displaying a complete form as specified by the given schema.
*/
angular.widget('my:form', function(element) {
this.descend(true); // compiler will process children elements
this.directives(true); // compiler will process directives