Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Rogerio Prado de Jesus rogeriopradoj

😀
View GitHub Profile
@rogeriopradoj
rogeriopradoj / config.yaml
Created Jan 30, 2014
puphpet config.yaml
View 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:
View fix-puppet-mac-osx-install.sh
#!/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
View index.html
<!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 Aug 29, 2015
javascripts and css fallbacks examples
View 1-header.html
<!-- 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 Aug 29, 2015
test module mod_auth_sspi or mod_authnz_sspi.so in Apache 2.2 or 2.4 on Windows host
View .htaccess
<IfModule mod_authnz_sspi.c>
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic Off
Require valid-user
</ifModule>
<IfModule mod_auth_sspi.c>
AuthType SSPI
View .htaccess
<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
View 1-urlRelease.php
<?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)
{
View conf.py
# -*- 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.
View main.yml
---
- name: Add ppa Repository
sudo: yes
apt_repository: repo=ppa:ondrej/apache2
- name: Update apt
sudo: yes
apt: update_cache=yes
- name: Install Apache
You can’t perform that action at this time.