Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am kokotchY on github.
* I am kokotchy (https://keybase.io/kokotchy) on keybase.
* I have a public key whose fingerprint is 53F3 4D9F 35D9 082A 92E7 266D 06A4 DF49 7E07 C18B
To claim this, I am signing this object:
[alias]
hist = log --pretty=format:'%Cred%h%Creset %Cgreen(%ci)%Creset - %C(yellow)%d%Creset%s %C(bold blue)[%an/%cn]%Creset' --abbrev-commit
@kokotchY
kokotchY / YesodPersist.hs
Created September 30, 2014 10:37
Yesod Persist issue
{-# LANGUAGE QuasiQuotes, TypeFamilies, GeneralizedNewtypeDeriving, FlexibleContexts, TemplateHaskell, OverloadedStrings, GADTs, MultiParamTypeClasses #-}
import Yesod
import Database.Persist.Sqlite
import Control.Monad.Trans.Resource (runResourceT)
import Control.Monad.Logger (runStderrLoggingT, runNoLoggingT, MonadLogger, monadLoggerLog)
import Control.Applicative (pure)
share [mkPersist sqlSettings, mkMigrate "migrateAll"] [persistLowerCase|
Person
firstName String
@kokotchY
kokotchY / addLiverebel.awk
Last active December 20, 2015 11:18
Script to extract the jar, extract the scm, do the checkout, modify the pom, and build it
#!/bin/awk -f
BEGIN {
inBuild = 0
foundBuild = 0
}
$0 ~ /<build>/ {
inBuild = 1
foundBuild = 1
@kokotchY
kokotchY / CronTrigger.groovy
Created June 13, 2012 14:49
CronTrigger and Trigger domain description
package quartzgrails
class CronTrigger implements Serializable {
String triggerName
String triggerGroup
String cronExpression
static belongsTo = [trigger: Trigger]
static mapping = {
table "JBQRTZ_CRON_TRIGGERS"