Skip to content

Instantly share code, notes, and snippets.

View nicholasf's full-sized avatar

Nicholas Faiz nicholasf

View GitHub Profile
@nicholasf
nicholasf / macbook-pro-late-2013-for-sale.md
Last active August 28, 2015 23:18
For sale: Macbook pro retina 15'' late 2013, 16 GB, 2.3 GHz

Instead of stockpiling yet another Apple machine (I have 4 old models in the apartment already) I'm selling the macbook retina pro I bought last year.

Here's a link to its specs. It's the top line model from the late 2013 build:

https://support.apple.com/kb/SP690?locale=en_GB

It's in very good working state. I bought it for $3300 (iirc). Happy to sell it for around half that price.

** (Mix) Could not start application spoonbot: {:bad_return, {{SpoonBot, :start, [:normal, []]}, {:EXIT, {:undef, [{Spoonbot.Supervisor, :start_link, [], []}, {:application_master, :start_it_old, 4, [file: 'application_master.erl', line: 269]}]}}}}
♪ ~ npm config list
; cli configs
registry = "https://registry.npmjs.org/"
; userconfig /Users/nicholasf/.npmrc
email = "nicholas.faiz@gmail.com"
username = "nicholasf"
; node bin location = /Users/nicholasf/.nvm/v0.10.24/bin/node
; cwd = /Users/nicholasf
♪ node-sql-ddl-sync git:(master) ✗ npm link
npm http GET https://registry.npmjs.org/should/2.0.2
npm http GET https://registry.npmjs.org/lodash/2.4.1
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/mocha/1.14.0
npm ERR! Failed resolving git HEAD (git://github.com/dresende/node-orm2.git) fatal: ambiguous argument 'new-sql-ddl-sync': unknown revision or path not in the working tree.
- include: cbt.yml tags=deploy
when: application == 'cbt'
- include: api.yml tags=deploy
when: application == 'api'
- include: ../../logstash/tasks/forwarder.yml
when: centralized_logging == True
defmodule Spoonbot do
use Application.Behaviour
def start(_type, _args) do
bot_hello = BotSpeak.new(pattern: "hello", doer: fn -> IO.puts "hi" end)
Bridge.IRC.run(bot_hello)
Spoonbot.Supervisor.start_link
end
end
♪ elixir git:(v0.13) make clean test
cd lib/elixir && ../../rebar clean
Uncaught error in rebar_core: {'EXIT',
{undef,
[{crypto,start,[],[]},
{rebar,run_aux,2,
[{file,"src/rebar.erl"},{line,163}]},
{rebar,main,1,
[{file,"src/rebar.erl"},{line,58}]},
{escript,run,2,
6880131..e427f4c master -> master
♪ node-migrate-orm2 git:(master) npm publish -f
npm WARN using --force I sure hope you know what you are doing.
npm http PUT https://registry.npmjs.org/migrate-orm2
npm http 409 https://registry.npmjs.org/migrate-orm2
npm http GET https://registry.npmjs.org/migrate-orm2
npm http 200 https://registry.npmjs.org/migrate-orm2
npm http PUT https://registry.npmjs.org/migrate-orm2
npm http 201 https://registry.npmjs.org/migrate-orm2
#A simple, one server, multiple channels IRC bridge.
defprotocol Speaker do
def speak(spoon_response, device)
end
defmodule Bridge.IRC do
use GenServer.Behaviour
@moduledoc false
defmodule Spoonbot do
use Application.Behaviour
def start(_type, _args) do
bot_hello = SpoonCommand.new(
pattern: ~r/speak/,
cmd: fn(data) ->
SpoonResponse.new(msg: data)
end