Author: johnny

  • 10gen mongoDB developer certificate

    Hello,
    I’ve accomplished python online course for mongodb developers! That was really a greate course. Every lecutre was clearly explained. I truly recommend this one! Certificate_wynik

    I’ve deployed the blog app we were writing during the course. It’s coded in python with micro-framework bottle and mongodb as a storage. Fantastic stack of technology.

  • h2 mem in mysql mode with spring, flyway

    I had a problem to configure an h2 mem instace in mysql mode for our unit and semi-integrational tests. I’ve expirienced “no *public* schema” exception. And found simple solution for that on stackoverflow.com

    Schema related problems with Flyway / Spring and H2 embedded database

    To remember: The schema name in the init script should be quoted or the one you pass to Flyway put in uppercase.

  • Super git alias

    Kuba korzysta z super fajnych aliasów w gicie :) polecam

    [color]
    ui = auto
    [color "branch"]
    current = yellow reverse
    local = yellow
    remote = green
    [color "diff"]
    meta = yellow bold
    frag = magenta bold
    old = red bold
    new = green bold
    [color "status"]
    added = yellow
    changed = green
    untracked = cyan
    
    [alias]
    drzewokurwa = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset%n%w(80,8,8)%s' --graph
    duzedrzewokurwa = log --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %Cgreen(%cr)%Creset%n%w(80,8,8)%s%n' --graph --name-status
    komitykurwa = log --pretty=format:'%C(yellow)%h %Cred%ad %Cblue%an%Cgreen%d %Creset%s' --date=iso
    
    ktotokurwa = "!sh -c 'git log -i -1 --pretty=\"format::%an <%ae>\n\" --author=\"$1\"' -"
    cotokurwa = show -s --pretty='tformat::%h (%s, %ad)' --date=short
    
    cotamkurwa = !sh -c 'git fetch' && git log --oneline HEAD..origin/$1
    cotammistrzukurwa = !sh -c 'git fetch' && git log --oneline HEAD..origin/master
    ktotamkurwa = !sh -c 'git shortlog HEAD..origin/$0'
    ktotammistrzukurwa = !sh -c 'git shortlog HEAD..origin/master'
    
    tagikurwa = show-ref --tags
    pchajtagikurwa = push --tags
    tagujzdatakurwa = !sh -c 'git tag "$0"_$(date "+%y-%m-%d_%H-%M-%S")'
    
    pojebalosiekurwa = reset --hard
    
    kurwa = status
    cokurwa = status
    cojestkurwa = diff
    howcanikurwa = help
    nabokkurwa = stash
    zbokukurwa = stash apply
    sprzatajkurwa = clean
    sprzatajwszystkokurwa = !sh -c 'git clean -x' && git reset --hard
    
    [apply]
    whitespace = nowarn

    źródło: https://github.com/jakubnabrdalik/gitkurwa/blob/af1a9175233fcccd86d56784be2b7aa598d7a53c/configNSFW_PL#L17

  • obvious thought about present

    I might have forget to mention that my job is AWESOME. I work here since 3 months now and I still feel this amazing atmosphere. Dudes around are passionate. We communicate and the jargon is known for us (mvn, js, deploy, push, unit test, bump, node). I felt in love with python, mongo, bottle micro-framework and bash
    :)
    I really don’t plan my future. I am ambitious, but I make use of occasions. I fell lucky. I play with a good tools! There are guys around feeling same. I wish I could follow my Allegro mates all the time. It is awesome to be a part of a team with that stack of technology and good patterns to follow. (let’s stop with that honey for a while)

    Today a friend of mine Jakub Kubryński (you may find him also here) organized internal course for allegro/payu java developers about “how to drive presentation and keep focus of audience”. I don’t know why but I gave it a chance and went there with a curiosity… and went out completely satisfied! Kuba has many of courses behind and really knows the clues of good presentation. He kept me interested the whole time. I believe I will use his hints in my first talk. That is just another benefit of being here :)

  • Linux bash quiz

    What will your distro print out after providing below lines seperatly?
    MINUTES=`echo “014”`; echo “$(($MINUTES))”
    SECONDS=`echo “014”`; echo “$(($SECONDS))”
    MILISECONDS=`echo “014”`; echo “$(($MILISECONDS))”

    Mine Ubuntu (and my friend’s Debian) behaves really strange.

    It seems that SECONDS is special bash keyword.