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 / gist:40c8e34bcd5b54b13ac0
Created March 7, 2015 00:42
Failure to install VMWare tools ( VMwareTools-9.9.2-2496486.tar.gz) on Ubuntu with kernel 3.13.0-46
~/vmware_cdrom/vmware-tools-distrib » uname -a
Linux rewdev 3.13.0-46-generic #77-Ubuntu SMP Mon Mar 2 18:23:39 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
~/vmware_cdrom » lsb_release -a No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty
~/vmware_cdrom/vmware-tools-distrib » sudo ./vmware-install.pl Creating a new VMware Tools installer database using the tar4 format.
(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)))
@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`
; 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 / 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.
@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 / .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 / 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 / Gemfile
Created January 18, 2018 00:46 — forked from jonasschneider/Gemfile
Multiprocessing on a single heroku dyno
source "http://rubygems.org"
##
# 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