Skip to content

Instantly share code, notes, and snippets.

Week 38, Monday:Fixing sbt-eclipse and new release

Matthias Kurz mkurz

Week 38, Monday:Fixing sbt-eclipse and new release
  • Vienna, Austria
View GitHub Profile
mkurz /
Created Mar 11, 2021 — forked from ldez/
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:( AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

View DevModeWorkarounds.scala
import javax.inject.Inject
import scala.concurrent.Future
import play.api.{Configuration, Environment, Mode}
import play.api.inject.{ApplicationLifecycle, Binding, Module}
import play.api.libs.Files.DefaultTemporaryFileCreator
class DevModeWorkaroundsModule extends Module {
def bindings(environment: Environment, configuration: Configuration): Seq[Binding[_]] = {
mkurz /
Created Nov 16, 2018 — forked from jackmahoney/
Debug Play Framework 2.x unit test in IntelliJ

In build.sbt add the following lines:

Keys.fork in Test := false
parallelExecution in Test := false
  • Start the play console in debug mode $ play debug.
  • Create a RemoteDebug run configuration in IntelliJ. This is only a debugger, not a compiler.
  • Run this configuration listening on port 9999.
mkurz /
Created Jun 5, 2018 — forked from rafi/
setup msmtp and php
apt-get install msmtp ca-certificates
vim /etc/msmtprc
# Set defaults.
# Enable or disable TLS/SSL encryption.
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
View EvolutionsModule.scala
package modules
import{FileInputStream, InputStream}
import javax.inject.{Inject, Provider, Singleton}
import play.api.db.DBApi
import play.api.{Configuration, Environment}
//import play.Environment
import play.api.db.evolutions._
import play.api.inject.{Injector, Module}
mkurz / html-languages.txt
Created Aug 11, 2016 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
View html-languages.txt
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
mkurz / gist:061d413715f004c8c963
Created Jan 20, 2016 — forked from vr100/gist:81b37e89e9688d2ad02d
String and timestamp support in evolutions for play framework
View gist:061d413715f004c8c963
* Read evolution files from the application environment.
class EvolutionsReader @Inject() (environment: Environment) {
* Read the application evolutions.
* @param db the database name
mkurz /
Last active Oct 11, 2015 — forked from unbracketed/
Export Issues from Github repo to CSV (API v3)
#!/usr/bin/env python
Exports Issues from a specified repository to a CSV file
Uses basic authentication (Github username + password) to retrieve Issues
from a repository that username has access to. Supports Github API v3.
import csv
import requests
import json
mkurz /
Last active Jul 30, 2016 — forked from Jach/
#!/usr/bin/env python
1. Create any milestones
2. Create any labels
3. Create each issue, linking them to milestones and labels
3.1: Update status for new issue if closed
4: Create all the comments for each issue
import getpass