⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = require('events'); | |
var eventEmitter = new events.EventEmitter() | |
function mainLoop() { | |
console.log('starting application'); | |
eventEmitter.emit('AppStart'); | |
console.log('Running App'); | |
eventEmitter.emit('AppRun'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Apt-install various things necessary for Ruby etc., | |
# and remove optional things to trim down the machine. | |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y install linux-headers-$(uname -r) build-essential | |
apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev libyaml-dev | |
apt-get -y install vim | |
apt-get -y install git-core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/capistrano' | |
default_run_options[:pty] = true | |
set :application, 'example' | |
# repo | |
set :scm, :git | |
set :repository, "[email protected]:mariusbutuc/#{application}.git" | |
set :branch, 'master' | |
# deploy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# = Capistrano database.yml task | |
# | |
# Provides a couple of tasks for creating the database.yml | |
# configuration file dynamically when deploy:setup is run. | |
# | |
# Category:: Capistrano | |
# Package:: Database | |
# Author:: Simone Carletti <[email protected]> | |
# Copyright:: 2007-2010 The Authors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up | |
[default] Importing base box 'precise64bootstrap'... | |
[default] Matching MAC address for NAT networking... | |
[default] Clearing any previously set forwarded ports... | |
[default] Fixed port collision for 22 => 2222. Now on port 2201. | |
[default] Forwarding ports... | |
[default] -- 22 => 2201 (adapter 1) | |
[Berkshelf] installing cookbooks... | |
[Berkshelf] Using nginx (1.4.0) | |
[Berkshelf] Using bluepill (2.2.0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[2013-03-10T22:37:35+00:00] INFO: mysql_database_user[scafandru_app]: granting access with statement [GRANT all ON `scafandru_dev`.* TO `scafandru_app`@`localhost` IDENTIFIED BY [FILTERED]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run with: rackup private_pub.ru -s thin -E production | |
require "bundler/setup" | |
require "yaml" | |
require "faye" | |
require "private_pub" | |
require "active_support/core_ext" | |
Faye::WebSocket.load_adapter('thin') | |
PrivatePub.load_config(File.expand_path("../config/private_pub.yml", __FILE__), ENV["RAILS_ENV"] || "development") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Goal: see the peaks in Pusher connection counts | |
* | |
* Data: https://app.pusher.com/stats | |
* Example: http://i.imgur.com/ok517vf.png | |
* | |
*/ | |
// Make graphs full-width | |
$('#sidebar-nav, .navbar, #IntercomDefaultWidget').css('display', 'none'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://www.marketo.com/mktows/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.marketo.com/mktows/"> | |
<SOAP-ENV:Header> | |
<ns1:AuthenticationHeader> | |
<mktowsUserId>...</mktowsUserId> | |
<requestSignature>...</requestSignature> | |
<requestTimestamp>2014-06-12T13:26:58-04:00</requestTimestamp> | |
</ns1:AuthenticationHeader> | |
</SOAP-ENV:Header> | |
<SOAP-ENV:Body> |