Skip to content

Instantly share code, notes, and snippets.

View pajtai's full-sized avatar

Peter Ajtai pajtai

  • https://www.soliddigital.com/
  • Portland, Oregon
View GitHub Profile

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
//Wait for relevant code bits to load before starting any tests
define(['core.js'], function( core ) {
module("Core Tests");
test("Test core methods", function(){
expect(2);
equals( 1, 1, "A trivial test");
ok( true, "Another trivial test");
});
@pajtai
pajtai / embed.js
Created December 25, 2012 03:29 — forked from anonymous/embed.js
var DISQUS = function (e) {
var g = e.DISQUS || {};
g.AssertionError = function (b) {
this.message = b
};
g.AssertionError.prototype.toString = function () {
return "Assertion Error: " + (this.message || "[no message]")
};
g.assert = function (b, d, f) {
if (!b) if (f) e.console && e.console.log("DISQUS assertion failed: " + d);
@pajtai
pajtai / windows.h__.js
Created November 18, 2012 11:53
windows.h.js INFINITY
var ffi = require('ffi'),
ref = require('ref'),
Struct = require('ref-struct'),
Library = require('./Library'),
Type = ref.Type,
NULL = ref.NULL,
isNull = ref.isNull;
var groups = ['libs', 'types', 'structs', 'callbacks', 'enums'];
@pajtai
pajtai / show.jade
Created November 10, 2012 20:47 — forked from kembuco/show.jade
Underscore template in jade
script(id='greeting', type='text/html')
div#example
Hello my name is, <%= name %>!
@pajtai
pajtai / readme.md
Created October 26, 2012 01:39 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser