Skip to content

Instantly share code, notes, and snippets.

View rogeriopradoj's full-sized avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / config.yaml
Created January 30, 2014 14:09
puphpet config.yaml
---
vagrantfile-local:
vm:
box: debian-wheezy72-x64-vbox43
box_url: 'http://box.puphpet.com/debian-wheezy72-x64-vbox43.box'
hostname: null
network:
private_network: 192.168.56.101
forwarded_port:
KtquNaGoJlqM:
@rogeriopradoj
rogeriopradoj / future.md
Last active August 29, 2015 13:55
Vagrant e Puppet - #CPBr7 - Campus Party Brasil 2014
#!/bin/bash
sudo ln -s /Library/Ruby/Site/puppet /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/puppet
sudo ln -s /Library/Ruby/Site/puppet.rb /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/puppet.rb
sudo ln -s /Library/Ruby/Site/semver.rb /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/semver.rb
sudo ln -s /Library/Ruby/Site/facter /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/facter
sudo ln -s /Library/Ruby/Site/facter.rb /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/facter.rb
sudo ln -s /Library/Ruby/Site/hiera /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/hiera
sudo ln -s /Library/Ruby/Site/hiera.rb /usr/local/Cellar/ruby/2.1.0/lib/ruby/2.1.0/hiera.rb
@rogeriopradoj
rogeriopradoj / index.html
Created February 12, 2014 10:44
box-calculator.js
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="8">
<title>QUnit Test Suite</title>
<link rel="stylesheet" href="http://code.jquery.com/qunit/qunit-1.14.0.css" type="text/css" media="screen">
<script type="text/javascript" src="http://code.jquery.com/qunit/qunit-1.14.0.js"></script>
<!-- Your project file goes here -->
<script type="text/javascript" src="../siapf.js"></script>
<!-- Your tests file goes here -->
@rogeriopradoj
rogeriopradoj / 1-header.html
Last active August 29, 2015 13:56
javascripts and css fallbacks examples
<!-- Bootstrap CSS CDN -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script>
// html5shiv local fallback
window.html5 || document.write('<script src="vendor/afarkas/html5shiv/dist/html5shiv.js"><\/script>')
</script>
@rogeriopradoj
rogeriopradoj / .htaccess
Last active August 29, 2015 13:56
test module mod_auth_sspi or mod_authnz_sspi.so in Apache 2.2 or 2.4 on Windows host
<IfModule mod_authnz_sspi.c>
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic Off
Require valid-user
</ifModule>
<IfModule mod_auth_sspi.c>
AuthType SSPI
<IfModule mod_rewrite.c>
RewriteEngine On
# !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
# slashes.
# If your page resides at
# http://www.example.com/mypage/test1
# then use
# RewriteBase /mypage/test1/
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
<?php
/**
* returns url for downloading a PHP 5 version release
* Check if the release is on museum.php.net, otherwise, use distributions url
*
* @param string $version format X.Y.Z
* @return string url
*/
function urlRelease($version)
{
# -*- coding: utf-8 -*-
#
# Symfony Docs pt-BR documentation build configuration file, created by
# sphinx-quickstart on Mon Mar 3 13:38:09 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
---
- name: Add ppa Repository
sudo: yes
apt_repository: repo=ppa:ondrej/apache2
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install Apache