Skip to content

Instantly share code, notes, and snippets.

💭
💻

Lajos Gerecs luos

💭
💻
Block or report user

Report or block luos

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@luos
luos / docker-attach
Created Apr 8, 2016
Automatically attach bash to the first docker container - useful for debugging
View docker-attach
#!/bin/bash
CONTAINER_ID=`docker ps | awk '{ print $1 }' | tail -n +2`
docker exec -ti $CONTAINER_ID bash
View gist:9032312
% java -jar procyon-decompiler-0.5.24.jar TestClass.class
import scala.reflect.*;
import scala.collection.*;
import scala.runtime.*;
import scala.*;
@ScalaSignature(bytes = "\u0006\u0001\u0005Ub\u0001B\u0001\u0003\u0001\u0016\u0011\u0011\u0002V3ti\u000ec\u0017m]:\u000b\u0003\r\tq\u0001P3naRLhh\u0001\u0001\u0014\u000b\u00011a\u0002F\f\u0011\u0005\u001daQ\"\u0001\u0005\u000b\u0005%Q\u0011\u0001\u00027b]\u001eT\u0011aC\u0001\u0005U\u00064\u0018-\u0003\u0002\u000e\u0011\t1qJ\u00196fGR\u0004\"a\u0004\n\u000e\u0003AQ\u0011!E\u0001\u0006g\u000e\fG.Y\u0005\u0003'A\u00111bU2bY\u0006|%M[3diB\u0011q\"F\u0005\u0003-A\u0011q\u0001\u0015:pIV\u001cG\u000f\u0005\u0002\u00101%\u0011\u0011\u0004\u0005\u0002\r'\u0016\u0014\u0018.\u00197ju\u0006\u0014G.\u001a\u0005\t7\u0001\u0011)\u001a!C\u00019\u0005!a.Y7f+\u0005i\u0002C\u0001\u0010\"\u001d\tyq$\u0003\u0002!!\u00051\u0001K]3eK\u001aL!AI\u0012\u0003\rM#(/\u001b8h\u0015\t\u0001\u0003\u0003\u0003\u0005&\u0001\tE\t\u0015!\u0003\u001e\u0003\u0015q\u0017-\\3!\u0011!9\u0003A!f\u0
@luos
luos / gist:8285239
Created Jan 6, 2014
generated squeryl query
View gist:8285239
Select
channels14.name as channels14_name,
channels14.submission_count as channels14_submission_count,
channels14.description as channels14_description,
channels14.pic_source_name as channels14_pic_source_name,
channels14.show_ads as channels14_show_ads,
channels14.is_deleted as channels14_is_deleted,
channels14.main as channels14_main,
channels14.wiki_page_id as channels14_wiki_page_id,
channels14.id as channels14_id,
You can’t perform that action at this time.