create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
/** | |
* for CakePHP 1.3 | |
* | |
* Copyright 2012, nojimage http://php-tips.com/ | |
* | |
* Licensed under The MIT License | |
* Redistributions of files must retain the above copyright notice. | |
* |
#!env python | |
""" | |
artboard.py - (c) 2012 marcos.a.ojeda <[email protected]> | |
--"Quis leget haec?" | |
requires: | |
graphicsmagick - brew install graphicsmagick | |
ghostscript - brew install ghostscript | |
macfsevents - pip install MacFSEvents |
/* | |
* Loads a handlebars.js template at a given URL. Takes an optional name, in which case, | |
* the template is added and is reference-able via templateName. | |
*/ | |
function loadTemplate(url, name, callback) { | |
var contents = $.get(url, function(templateText) { | |
var compiledTemplate = Ember.Handlebars.compile(templateText); | |
if (name) { | |
Ember.TEMPLATES[name] = compiledTemplate | |
} else { |
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
/* | |
* RC4 symmetric cipher encryption/decryption | |
* | |
* @license Public Domain | |
* @param string key - secret key for encryption/decryption | |
* @param string str - string to be encrypted/decrypted | |
* @return string | |
*/ | |
function rc4(key, str) { | |
var s = [], j = 0, x, res = ''; |
App = Ember.Application.create(); | |
App.store = DS.Store.create({ | |
adapter: DS.RESTAdapter.create() | |
}) | |
App.set("room_id", 1); | |
App.Models = Ember.Namespace.create(); |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
<?php | |
/** | |
* Action Helper | |
* Allows to generate simple CRUD links for a given object and customize its rendering | |
* It only works for default baked urls | |
* | |
* Usage: | |
* <code> | |
* $this->Actions->setActionsOptions($order['Order']['id'], true); | |
* echo $this->Actions->view(); |
<?php | |
$fileName = $_FILES['afile']['name']; | |
$fileType = $_FILES['afile']['type']; | |
$fileContent = file_get_contents($_FILES['afile']['tmp_name']); | |
$dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent); | |
$json = json_encode(array( | |
'name' => $fileName, | |
'type' => $fileType, | |
'dataUrl' => $dataUrl, |
{{view M.Select | |
contentBinding="Desires.elementTypeController" | |
valueBinding="this.type" | |
optionLabelPath="content.label" | |
optionValuePath="content.type" | |
classNames="input-xlarge" | |
}} | |
M.Select = Em.Select.extend({ |