Skip to content

Instantly share code, notes, and snippets.

Ivar Vasara ivar

  • Misc / Consultant
  • Vancouver
Block or report user

Report or block ivar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ivar
ivar / spec failures.rb
Created Jul 25, 2018
`rspec spec/features/buying`
View spec failures.rb
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: ---
View gist:786c649bed17b9848c4140275bb267f6
##
# 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 Jan 18, 2018 — forked from jonasschneider/Gemfile
Multiprocessing on a single heroku dyno
View Gemfile
source "http://rubygems.org"
@ivar
ivar / deoplete errors.log
Last active Nov 20, 2017
spacevim errors - version 0.6.0-dev
View deoplete errors.log
[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 Aug 21, 2017
heroku failed deploy to staging
View .log
~/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 Dec 5, 2019
spacemacs - global search and replace
View spacemacs global search and replace.md

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 Nov 29, 2015
spacemacs error msg on boot
View error.log
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.
View .editorconfig
; 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 Sep 21, 2015
Ivar's system upgrade script
View upgrade.rb
#!/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`
View gist:4c4f767cf2f6279cf404
(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)))
You can’t perform that action at this time.