Skip to content

Instantly share code, notes, and snippets.

View chonthu's full-sized avatar

Nithin Meppurathu chonthu

View GitHub Profile
@chonthu
chonthu / gist:67b0e75edd6388f4dad10394ffdb84c7
Last active April 30, 2024 17:40
traefik2-tls-passthrough
version: "3.3"
services:
app:
image: nginx
ports:
- 80
- 443
restart: unless-stopped
tty: true
@chonthu
chonthu / basic.php
Last active December 6, 2018 01:47
/**
* We set the on hold flag to true when any work ticket is created.
* We set the on hold flag to false when any work ticket is approved.
* @return bool
*/
public function should_be_on_hold()
{
/** @var RepairOrder $order */
$order = $this->__get('product_order');
[warn] Problem processing dependencies of source /var/www2/scTracker/app/util/QueryStringUtil.java : java.lang.UnsupportedClassVersionError: util/QueryStringUtil : Unsupported major.minor version 51.0
[warn] Error reading API from class file : java.lang.UnsupportedClassVersionError: util/QueryStringUtil : Unsupported major.minor version 51.0
[warn] Problem processing dependencies of source /var/www2/scTracker/target/scala-2.9.1/src_managed/main/controllers/routes.java : java.lang.UnsupportedClassVersionError: controllers/routes : Unsupported major.minor version 51.0
[warn] Problem processing dependencies of source /var/www2/scTracker/target/scala-2.9.1/src_managed/main/controllers/routes.java : java.lang.UnsupportedClassVersionError: controllers/routes$ref : Unsupported major.minor version 51.0
[warn] Problem processing dependencies of source /var/www2/scTracker/target/scala-2.9.1/src_managed/main/controllers/routes.java : java.lang.UnsupportedClassVersionError: controllers/routes : Unsupported major.minor ve
2013-07-10 20:35:11,423 - [info] play - database [default] connected at jdbc:postgresql://localhost:5432/dpc
2013-07-10 20:35:11,445 - [info] play - Application started (Dev)
2013-07-10 20:35:11,446 - [debug] application - Request body: GET /track?url=google.com
2013-07-10 20:35:11,446 - [debug] application - request.path -> /track
2013-07-10 20:35:11,455 - [debug] application - for request: /track user cookie: Some(Cookie(scst_vx1_nuid,1901,-1,/,None,false,false))
2013-07-10 20:35:11,455 - [debug] application - !AcceleratorUser.isUserIdCookieValid(request) -> false
2013-07-10 20:35:11,455 - [debug] application - for request: /track user cookie: Some(Cookie(scst_vx1_nuid,1901,-1,/,None,false,false))
2013-07-10 20:35:11,504 - [debug] application - Loading URL: 'google.com'
2013-07-10 20:35:11,510 - [debug] application - createdBy: 1901
2013-07-10 20:35:11,515 - [debug] application - getCanonicalUrl(): http://google.com -> http://google.com
(function ($) {
/**
* @function
* @property {object} jQuery plugin which runs handler function once specified element is inserted into the DOM
* @param {function} handler A function to execute at the time when the element is inserted
* @param {bool} shouldRunHandlerOnce Optional: if true, handler is unbound after its first invocation
* @example $(selector).waitUntilExists(function);
*/
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
handlebars: {
compile: {
options: {
namespace: "Handlebars.templates",
module.exports = function(grunt) {
grunt.initConfig({
//some...
handlebars: {
compile: {
options: {
namespace: "MyApp.Templates",
Route::group(array('before' => 'auth'), function()
{
Route::get('/dashboard', array('as' => 'dashboard', 'uses' => 'DashboardController@main'));
});
def index = Action {
Ok(Scalate("index.ssp").render('title -> "Hello World"));
}
package controllers
import play.api._
import http.{Writeable, ContentTypeOf, ContentTypes}
import mvc.Codec
import play.api.Play.current
import org.fusesource.scalate.layout.DefaultLayoutStrategy
object Scalate {