Skip to content

Instantly share code, notes, and snippets.

View ivar's full-sized avatar

Ivar Vasara ivar

  • Misc / Consultant
  • Vancouver
View GitHub Profile
@ivar
ivar / spec failures.rb
Created July 25, 2018 01:12
`rspec spec/features/buying`
Failures:
1) Viewing products multiple delivery schedules direct to buyer belonging to multiple organizations changing organization to shop for after creating a cart
Failure/Error: fill_in '.chosen_search input', with: buyer_org2.name
Capybara::SlowFinderError:
Timeout reached while running a *waiting* Capybara finder...perhaps you wanted to return immediately? Use a non-waiting Capybara finder. More info: http://blog.codeship.com/faster-rails-tests?utm_source=gem_exception
# ./spec/features/buying/view_products_spec.rb:513:in `block (5 levels) in <top (required)>'
# ------------------
# --- Caused by: ---
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
@ivar
ivar / Gemfile
Created January 18, 2018 00:46 — forked from jonasschneider/Gemfile
Multiprocessing on a single heroku dyno
source "http://rubygems.org"
@ivar
ivar / deoplete errors.log
Last active November 20, 2017 01:36
spacevim errors - version 0.6.0-dev
[deoplete] File "/Users/ivar/.cache/vimfiles/repos/github.com/Shougo/neosnippet.vim/rplugin/python3/deoplete/sources
/neosnippet.py", line 29, in gather_candidates
Press ENTER or type command to continue
[deoplete] self.on_event(context)
Press ENTER or type command to continue
[deoplete] Traceback (most recent call last):
Press ENTER or type command to continue
[deoplete] File "/Users/ivar/.cache/vimfiles/repos/github.com/Shougo/neosnippet.vim/rplugin/python3/deoplete/sources
/neosnippet.py", line 21, in on_event
Press ENTER or type command to continue
@ivar
ivar / .log
Created August 21, 2017 21:57
heroku failed deploy to staging
~/G/rewportal ❯❯❯ git push staging master -f ⏎master ✭
Counting objects: 20, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 2.09 KiB | 714.00 KiB/s, done.
Total 20 (delta 13), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Deleting 9 files matching .slugignore patterns.
@ivar
ivar / spacemacs global search and replace.md
Last active August 1, 2022 00:04
spacemacs - global search and replace

There's a couple of ways, one way is

  • Get search results
    • Do SPC / and type in your search string
    • or SPC x S and search string - where x is your scope indicator (p for project, d for directory, etc..)
  • Once you have the occurences you want, hit C-c C-e inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like that
  • in that buffer you can use any commands you'd normally use on a buffer
  • the C-c C-c to commit your changes.
@ivar
ivar / error.log
Created November 29, 2015 23:33
spacemacs error msg on boot
how to deal with errors at bootup ?
Warning (initialization): An error occured while loading `/Users/user/.emacs.d/init.el’:
File error: Removing old name, Mac error -1700, /Users/user/.emacs.d/elpa/evil-lisp-state-20150328.736
To ensure normal opeation, you should investigate and remove the cause of the error in your initailization file. Start Emacs with the `--debug-init` option to view a complete error backtrace.
; EditorConfig is awesome: http://EditorConfig.org
; top-most EditorConfig file
root = true
[*]
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@ivar
ivar / upgrade.rb
Created September 21, 2015 19:27
Ivar's system upgrade script
#!/usr/bin/env ruby
puts "---- updating oh-my-zsh ---------------------------------"
puts `cd ~/.oh-my-zsh && git fetch && git rebase origin/master`
puts "---- updating rbenv ---------------------------------"
puts `cd ~/.rbenv && git pull && cd plugins/ruby-build && git pull`
puts "---- updating vim plugins ---------------------------------"
puts `cd ~/Work/dotfiles && git submodule foreach git pull origin master`
puts "---- updating brewed apps ---------------------------------"
puts `brew update && brew upgrade && brew cleanup`
(defn greeting
([] (greeting "World"))
([msg] (str "Hello, " msg exclamation ))
([msg1, msg2](str msg1 ", " msg2 exclamation ))
)
(greeting "Good morning" "Clojure")
;; For testing
(assert (= "Hello, World!" (greeting)))