Skip to content

Instantly share code, notes, and snippets.

View dkunzler's full-sized avatar

David Kunzler dkunzler

View GitHub Profile
@dkunzler
dkunzler / MdmChangedForeignKeyChangeGenerator.java
Created May 29, 2020 07:23
generate onDelete actions in Foreign Key constraints with liquibase-hibernate
package liquibase.ext.hibernate.diff;
import liquibase.change.Change;
import liquibase.change.core.AddForeignKeyConstraintChange;
import liquibase.database.Database;
import liquibase.diff.Difference;
import liquibase.diff.ObjectDifferences;
import liquibase.diff.output.DiffOutputControl;
import liquibase.diff.output.changelog.ChangeGeneratorChain;
import liquibase.ext.hibernate.database.HibernateDatabase;
@dkunzler
dkunzler / disable_vim_auto_visual_on_mouse.txt
Created March 11, 2018 20:29 — forked from u0d7i/disable_vim_auto_visual_on_mouse.txt
Disable vim automatic visual mode on mouse select
Disable vim automatic visual mode on mouse select
issue: :set mouse-=a
add to ~/.vimrc: set mouse-=a
@dkunzler
dkunzler / Activity.java
Created May 23, 2013 14:30
To use square's Picasso image loading library (http://square.github.io/picasso/) with http Basic auth the implementation of a custom loader is necessary. OkHttp (http://square.github.io/okhttp/) is also needed. Additionally on the server side cache control for such responses has to be enabled explicitly.
// inside Application or Activity, make sure Picasso gets only initalized once
Picasso picasso;
Builder builder = new Picasso.Builder(this);
picasso = builder.loader(new BasicAuthOkHttpLoader(this)).build();