Skip to content

Instantly share code, notes, and snippets.

Avatar

Anton Rieder aried3r

View GitHub Profile
@aried3r
aried3r / Dockerfile
Created Dec 10, 2017 — forked from koeckc/Dockerfile
Dockerfile ruby meeting
View Dockerfile
#
# Use the barebones version of Ruby 2.2.3.
FROM ruby:2.3.5-slim
# Optionally set a maintainer name to let people know who made this image.
MAINTAINER C.Köck <c.koeck@planradar.com>
# Install dependencies:
@aried3r
aried3r / docker-compose.yml
Created Dec 10, 2017 — forked from koeckc/docker-compose.yml
Docker compose file Ruby Meeting
View docker-compose.yml
version: '2'
services:
postgres:
restart: always
image: kiasaki/alpine-postgres:9.5
environment:
- POSTGRES_USER:'root'
- POSTGRES_PASSWORD:'root'
ports:
- '5432:5432'
@aried3r
aried3r / shrine_copy.rb
Last active Mar 14, 2018
Reproduces a possible bug within the shrine copy plugin
View shrine_copy.rb
require "active_record"
require "shrine"
require "shrine/storage/file_system"
require "tmpdir"
require "open-uri"
Shrine.plugin :activerecord
Shrine.plugin :logging
# Comment in this line to make the last example work
# Shrine.plugin :keep_files, replaced: true
View keybase.md

Keybase proof

I hereby claim:

  • I am aried3r on github.
  • I am aried3r (https://keybase.io/aried3r) on keybase.
  • I have a public key ASBn-FfYu1WG9l0vE2XjeIo4i5a0OIKOMT5gF5WnHFPtqwo

To claim this, I am signing this object:

View gist:2990984
06-25 22:15:24.558: E/AndroidRuntime(29321): FATAL EXCEPTION: main
06-25 22:15:24.558: E/AndroidRuntime(29321): java.lang.NullPointerException
06-25 22:15:24.558: E/AndroidRuntime(29321): at com.example.android.swipedismiss.SwipeDismissTouchListener.onTouch(SwipeDismissTouchListener.java:190)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.View.dispatchTouchEvent(View.java:3929)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1015)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1015)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1015)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1015)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:1015)
06-25 22:15:24.558: E/AndroidRuntime(29321): at android.view.ViewG
You can’t perform that action at this time.