Skip to content

Instantly share code, notes, and snippets.

View am's full-sized avatar
🌊
surfing bits and bytes

antonio miranda am

🌊
surfing bits and bytes
View GitHub Profile
@am
am / index.haml
Created May 1, 2012 15:46
haml html5 boilerplate
!!! 5
/[if lt IE 7]<html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en">
/[if IE 7]<html class="no-js lt-ie9 lt-ie8" lang="en">
/[if IE 8]<html class="no-js lt-ie9" lang="en">
<!--[if gt IE 8]><!-->
%html.no-js( lang = "en" )
<!--<![endif]-->
%head
%meta( charset = "utf-8" )
%meta(http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" )
@am
am / makefile
Created May 3, 2012 15:40
Makefile to compile web project
# less compiler
less_c=/usr/local/bin/lessc
# this is the source folder
src_dir=client
# this is the deploy folder
deploy_dir=webspace
# template files to copy
@am
am / readme.md
Created May 3, 2012 21:54
svn utils
Start with Fedora 17
yum install -y git vim rubygem-thor rubygem-parseconfig tito make rubygem-aws-sdk tig mlocate bash-completion rubygem-yard rubygem-redcarpet ruby-devel redhat-lsb
yum install -y http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-devel-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-doc-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-minimum-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-mls-3.10.0-160.fc17.noarch.rpm http://kojipkgs.fedoraproject.org//packages/selinux-policy/3.10.0/160.fc17/noarch/selinux-policy-targeted-3.10.0-160.fc17.noarch.rpm
gem install rspec -v '1.1.12'
for i in origin-
//------------------------------------------------------------------------------
// Copyright (c) 2011 the original author or authors. All Rights Reserved.
//
// NOTICE: You are permitted you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//------------------------------------------------------------------------------
package org.robotlegs.oil.rest
{
import flash.utils.describeType;
@am
am / Vagrantfile
Created April 23, 2013 11:00
Vagrant box to compile stasis projects (gems: stasis, haml, coffee-script, sass, rhc).
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "precise64"
config.vm.box_url = "/Users/am/Downloads/precise64.box"
config.vm.network :forwarded_port, guest: 4000, host: 4000
config.vm.hostname = 'stasis-box'
config.vm.provision :puppet do |puppet|
@am
am / track.js
Created September 10, 2013 06:42
Page scarping with phantomjs: `phantomjs track.js XXXXXXXX output.txt` XXXXXXXX is a TNT tracking code
var page = require('webpage').create(),
args = require('system').args;
if (args.length === 1) {
console.log('Missing track ID, "phantomjs track.js XXXXXXXX"');
phantom.exit();
}
else {
args.forEach(function(arg, i) {
@am
am / Preferences.sublime-settings
Created January 20, 2014 09:44
Sublime 3 settings
{
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"theme": "Spacegray Eighties.sublime-theme",
"ignored_packages":
[
"Vintage",
"Markdown"
],
"font_face": "Menlo",
"font_size": 12,
@am
am / post_mirror.rb
Created January 21, 2014 13:47
Sinatra server that mirrors the POST variables in .json format
require 'sinatra'
require 'sinatra/json'
post '/' do
json params
end
@am
am / shell
Created January 26, 2014 11:35
Kaleidodcope "xcrun: error: cannot be used within an App Sandbox..."
cd /Applications/Kaleidoscope.app/Contents/Resources/Integration/scripts
./install_git-default