Skip to content

Instantly share code, notes, and snippets.

View katesclau's full-sized avatar
🏠
Working from home

Diego Rodrigues Ferreira katesclau

🏠
Working from home
View GitHub Profile
@katesclau
katesclau / prisma-interface.graphql
Last active November 19, 2018 20:59 — forked from tibotiber/prisma-interface.graphql
Presents a different approach on how to implement Interfaces with Prisma
type ICharacter {
# interface
id: ID!
name: String!
friends: [Character]
appearsIn: [Episode]!
# any custom fields inside JSON
implemented: String
}
interface Character {
id: ID!
name: String!
friends: [Character]
appearsIn: [Episode]!
}
type Human implements Character {
id: ID!
name: String!
@katesclau
katesclau / Apache Tomcat 8 Start stop script init.d script
Last active October 2, 2015 17:42 — forked from miglen/Apache Tomcat 8 Start stop script init.d script
Apache Tomcat init script (or startup/controll script). Update to be used with tomcat8 under Ubuntu Server 14.04
#!/bin/bash
### BEGIN INIT INFO
# Provides: tomcat8
# Required-Start: $local_fs $syslog
# Required-Stop: $local_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start daemon tomcat8 at boot
# Description: Enable tomcat8 application server
### END INIT INFO