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.
@ivar
ivar / products_helper.rb
Created February 7, 2015 20:34
app/helpers/spree/products_helper.rb
#defined in app/helpers/spree/products_helper.rb
module Spree
module ProductsHelper
def each_date_bucket(&block)
..my method ..
end
end
end
# This declaration blows away the ProductsHelper included with Spree.
@ivar
ivar / ruby-build log
Created December 29, 2014 22:56
failed ruby 2.2 ruby-build attempt
/tmp/ruby-build.20141229144532.25901 ~/.rbenv/plugins/ruby-build
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 16494584
Connection: keep-alive
Date: Thu, 25 Dec 2014 12:26:39 GMT
Last-Modified: Thu, 25 Dec 2014 10:02:26 GMT
ETag: "cd03b28fd0b555970f5c4fd481700852"
Accept-Ranges: bytes
Server: AmazonS3
@ivar
ivar / gist:2d865d8c28d5ffb229d8
Last active August 29, 2015 14:09
cannot delete unused docker image
ivar@bento-4 ~/Work/rew-docker $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ivar@bento-4 ~/Work/rew-docker $ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu 14.10 277eb4304907 2 weeks ago 228.5 MB
<none> <none> 7fa0dcdc88de 6 weeks ago 910 B
ivar@bento-4 ~/Work/rew-docker $ docker rmi 7fa0dcdc88de
Error response from daemon: No such id: ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9

Keybase proof

I hereby claim:

  • I am ivar on github.
  • I am ivar (https://keybase.io/ivar) on keybase.
  • I have a public key whose fingerprint is 01D3 3F88 6CF1 DCA6 61F3 C456 9022 6A6E 7F7A 23F3

To claim this, I am signing this object:

@ivar
ivar / busted query
Last active August 29, 2015 14:03
Automated query to load table structure from Rspec and Rails does not recognize "properties_view" as a valid 'table'.
SELECT a.attname, format_type(a.atttypid, a.atttypmod),
pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"properties_view"'::regclass # NOTE properties_view is a view on properties table
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum;
/Volumes/boot $ git clone https://github.com/DexterInd/BrickPi_Python.git
Cloning into 'BrickPi_Python'...
remote: Counting objects: 280, done.
remote: Compressing objects: 100% (142/142), done.
remote: Total 280 (delta 144), reused 272 (delta 136)
Receiving objects: 100% (280/280), 2.07 MiB | 709.00 KiB/s, done.
Resolving deltas: 100% (144/144), done.
Checking connectivity... done
error: unable to write file Project Examples/Thingspeak Temperature Logging/Thinspeak_Documentation.rtf
fatal: unable to checkout working tree
@ivar
ivar / ddf.xml
Created July 31, 2013 22:18
geo area types for point2 feeds
<xsd:simpleType name="geoareatype">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Country"/>
<xsd:enumeration value="State"/>
<xsd:enumeration value="Neighbourhood"/>
<xsd:enumeration value="City"/>
<xsd:enumeration value="Municipality"/>
<xsd:enumeration value="Borough"/>
<xsd:enumeration value="County"/>
@ivar
ivar / Gemfile
Last active December 16, 2015 21:29
bundle install with Jruby - SystemStackError: stack level too deep.
source 'https://rubygems.org'
ruby '1.9.3', engine: 'jruby', engine_version: '1.7.3'
#ruby '1.9.3'
gem 'rails', '3.2.13'
gem 'puma'
gem 'jquery-rails'
gem 'rake'
gem 'bootstrap-sass'

Twitter公式クライアントのコンシューマキー

Twitter for iPhone

Consumer key: IQKbtAYlXLripLGPWd0HUA
Consumer secret: GgDYlkSvaPxGxC4X8liwpUoqKwwr3lCADbz8A7ADU

Twitter for Android

Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys

Twitter for iPad

Consumer key: CjulERsDeqhhjSme66ECg