Skip to content

Instantly share code, notes, and snippets.

View eirvandelden's full-sized avatar
🐿️

Etienne van Delden de la Haije eirvandelden

🐿️
View GitHub Profile
@eirvandelden
eirvandelden / 20220816124058_create_nfc_tags
Last active August 18, 2022 20:06
unknown attribute 'guid' for NfcTag. raise
class CreateNfcTags < ActiveRecord::Migration[6.1]
def change
create_table :nfc_tags do |t|
t.string :guid
t.integer :number
t.timestamps
end
end
end
@eirvandelden
eirvandelden / rubocop.yml
Last active October 7, 2020 13:03
my default rubocop file with settings from standardrb and rubocop-performance
require:
- rubocop-rspec
- rubocop-performance
AllCops:
TargetRubyVersion: 2.7
Exclude:
- db/**/*schema.rb
# Layout
@eirvandelden
eirvandelden / hosts-yt-ads
Created August 25, 2020 10:34 — forked from ewpratten/hosts-yt-ads
youtube ads hosts file
0.0.0.0 ads.doubleclick.net
0.0.0.0 s.ytimg.com
0.0.0.0 ad.youtube.com
0.0.0.0 ads.youtube.com
0.0.0.0 clients1.google.com
0.0.0.0 dts.innovid.com
0.0.0.0 googleads4.g.doubleclick.net
0.0.0.0 pagead2.googlesyndication.com
0.0.0.0 pixel.moatads.com
0.0.0.0 rtd.tubemogul.com
@eirvandelden
eirvandelden / config.boot
Last active June 3, 2019 19:46
2019-03-06 edgerouter config
firewall {
all-ping enable
broadcast-ping disable
group {
address-group mDNS {
address 224.0.0.251
description ""
}
network-group LAN {
description "LAN Subnet"
@eirvandelden
eirvandelden / gemset.pristine-ruby-1.9.3-p551.log
Created November 28, 2017 16:01
rvm reinstall ruby-1.9.3-p551 --with-gcc=gcc
+__rvm_with:2> unset rvm_rvmrc_flag
+__rvm_with:3> export rvm_create_flag=1
+__rvm_with:4> export rvm_delete_flag=0
+__rvm_with:5> export rvm_internal_use_flag=1
+__rvm_with:6> export rvm_use_flag=0
+__rvm_with:7> __rvm_use ruby-1.9.3-p551
+__rvm_use:2> typeset binary full_binary_path rvm_ruby_gem_home __path_prefix __path_suffix
+__rvm_use:4> __rvm_select ruby-1.9.3-p551
+__rvm_select:2> true
+__rvm_select:4> __rvm_select_set_variable_defaults
@eirvandelden
eirvandelden / make.log
Created November 28, 2017 15:59
rvm reinstall ruby-1.9.3-p551
+__rvm_make:0> make -j 1
+make:20> make -j 1
+make:1> zstyle -t :prezto:module:utility:make color
+make:2> (( 0 ))
+make:5> make -j 1
CC = gcc-4.9
LD = ld
LDSHARED = gcc-4.9 -dynamiclib
CFLAGS = -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -fvisibility=hidden -DRUBY_EXPORT
<div class='form-group'>
{{#if model.image}}
<img src={{model.image}}>
<button type='button' class='remove pull-right'>Remove</button>
{{else}}
<img src='http://placehold.it/320x150&text=No image'>
{{/if}}
<div class='file'>
Browse...<input type='file' accept='image/*'>
</div>
@eirvandelden
eirvandelden / Elements.yml
Created April 15, 2014 15:10
Render_elements except/only options bug
# == In this configuration you setup Alchemy´s element layouts.
#
# For further informations please see http://guides.alchemy-cms.com/create_elements.html
#
- name: textblock
unique: false
contents:
- name: headline
type: EssenceText
- name: description