Skip to content

Instantly share code, notes, and snippets.

View 0xjjpa's full-sized avatar
🔒
Hiding encrypted secrets

Jose Aguinaga 0xjjpa

🔒
Hiding encrypted secrets
View GitHub Profile
@0xjjpa
0xjjpa / setupWithVagrant.md
Created November 1, 2012 21:11
Setting up ListForks project for Local Development with Vagrant

Instructions to setup Listforks

Let's start from scratch. Open your Git terminal or just a plain terminal, assuming you have git installing in your current OS. From there, clone the main project repository

$ git clone https://github.com/UBC-CS410/Gabriola.git Gabriola

Setting up Submodules

Since we are using git submodules, go to the Gabriola directory and start the submodules.

$ cd Gabriola/

@0xjjpa
0xjjpa / rebar.pp
Created November 8, 2012 19:24
Rebar Puppet Module [draft]
Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
class system-update{
exec { 'apt-get update':
command => "/usr/bin/apt-get -y update",
before => Exec["apt-get_upgrade"],
}
exec {"apt-get_upgrade":
command => "/usr/bin/apt-get -y upgrade && /usr/bin/touch /root/upgraded",
@0xjjpa
0xjjpa / courses.md
Created November 9, 2012 03:12
Online Resources for Computer Science

EdX is a not-for-profit enterprise of its founding partners Harvard University and the Massachusetts Institute of Technology that features learning designed specifically for interactive study via the web.

Study online learning through a series of creative and innovative experiments formulated by teaching faculty. These experiments may involve new uses of technology or new teaching models supported by technology.

@0xjjpa
0xjjpa / fizzbuzz.erl
Created November 10, 2012 20:31
FizzBuzz in Erlang
-module(fizzbuzz).
-export([fizzbuzz/1]).
% How to run it in erl
% $ erl
% > c(fizzbuzz).
% {ok, fizzbuzz} (It will tell you about shadowed, its ok)
% fizzbuzz:fizzbuzz(100).
% ...
@0xjjpa
0xjjpa / gistToken.sh
Created November 17, 2012 21:47
Creating a GIST Token (Shell script)
#!/bin/bash
#Usage ./gistToken.sh USERNAME (don't forget to chmod+x it)
#Inspired in http://www.lornajane.net/posts/2012/github-api-access-tokens-via-curl
curl -v -u $1 -X POST https://api.github.com/authorizations --data "{\"scopes\":[\"gist\"]}"
@0xjjpa
0xjjpa / tags.js
Created November 20, 2012 17:45
Script to retrieve all tags from Coderwall and get A tags from it.
var networks = $('.network');
$.each(networks, function(i, v) {
var color = "rgb" + $(this).css("border-color").split(/rgb/ig)[4];
var $h2a = $(this).find("h2 a");
var link = "https://coderwall.com" + $h2a.attr("href");
var content = $h2a.text().trim();
var a = $("<a></a>", {style: "font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid "+ color, html: content, href: link});
console.log(a[0].outerHTML);
});
@0xjjpa
0xjjpa / tags.html
Created November 20, 2012 18:21
All tags from Coderwall with their proper links.
<a style="font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid rgb(255, 161, 243)" href="https://coderwall.com/n/-net">.net</a>
<a style="font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid rgb(8, 252, 228)" href="https://coderwall.com/n/android">android</a>
<a style="font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid rgb(45, 69, 217)" href="https://coderwall.com/n/apache">apache</a>
<a style="font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid rgb(3, 58, 66)" href="https://coderwall.com/n/aws">aws</a>
<a style="font-size: 10px; border: 1px solid #eee; padding:3px;-webkit-border-radius:2px;border-radius:2px; border-left: 4px solid rgb(184, 233, 37)" href="https://coderwall.com/n/backbone-js">backbone.js</a>
<a style="font-size: 10px; bord
@0xjjpa
0xjjpa / onlineResources.html
Created November 20, 2012 18:56
Online [Paid] Developer Screencasts/Tutorials/Courses
#Description
I'm listing premium sites that describe the latest technologies, mainly aimed for web engineers, front end engineers, mobile developers, back end engineers, OSX/iOSX, devOps practices, CI, BDD/TDD and system administrators.
I'm thinking in updating this every once in a while, so I'll be creating a Gist [here]() with this article code, so please feel free to drop in some suggestions and I'll update it in Coderwall.
I have purchased in some of their content, but I'll refrain to write a review until I tried them all. I won't neither list prices or rating, as probably the amount of courses I have don't represent a good sample.
Finally, I'm in no way related to any of those, but I would like other companies to share their employees training programs (if any) or resources provided as perks and which of the following they use.
@0xjjpa
0xjjpa / resetMySQL.sh
Created November 24, 2012 01:29
Reset MySQL Password
$ mysqladmin -u root -p password ''
@0xjjpa
0xjjpa / html5boilerplate.jade
Created November 28, 2012 08:26
JADE: HTML5 Boilerplate (complete)
!!! 5
//if lt IE 7
<html class="no-js lt-ie9 lt-ie8 lt-ie7">
//if IE 7
<html class="no-js lt-ie9 lt-ie8">
//if IE 8
<html class="no-js lt-ie9">
//[if gt IE 8]><!
html(class='no-js')
//<![endif]