This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.aurora.scheduler.http; | |
import java.util.List; | |
import com.google.gson.Gson; | |
import org.junit.Test; | |
import static java.util.Arrays.asList; | |
import static java.util.Collections.emptyList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% cat test.aurora | |
class Profile(Struct): | |
a = Default(Integer, 1) | |
jobs = [ | |
Job(role = 'a', environment = 'devel', name = 'c', cluster='devcluster', | |
task = SimpleTask('t', 'echo {{profile.a}}')).bind(profile=Profile()), | |
% aurora job inspect devcluster/a/devel/c test.aurora | |
Job level information |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~aurora git aurora/. master | |
% jython -V | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=utf8 | |
Jython 2.7b1 | |
~aurora git aurora/. master | |
% JYTHONPATH=/tmp/aurora_client jython -m __main__ | |
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=utf8 | |
Traceback (most recent call last): | |
File "<string>", line 1, in <module> | |
File "/home/ksweeney/jython2.7b1/Lib/runpy.py", line 175, in run_module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Natural Scrolling | |
xinput set-button-map 'Logitech USB Laser Mouse' 1 2 3 5 4 6 7 8 9 10 11 12 13 14 15 16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
if $COLORTERM == 'gnome-terminal' | |
set t_Co=256 | |
endif | |
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The (insecure) default: user=mesos, password=mesos, roles=[root] | |
[users] | |
mesos = mesos, mesos, root | |
# Mapping of roles to permissions. | |
[roles] | |
# Root can fully administer the cluster. | |
root = * | |
# The Host Maintainer can prevent scheduling tasks on slaves (to prepare them for disruptive | |
# maintenance). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.aurora.scheduler.app; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import javax.inject.Singleton; | |
import javax.servlet.ServletContext; | |
import javax.servlet.ServletContextEvent; | |
import javax.ws.rs.DefaultValue; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.Path; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.aurora.scheduler.app; | |
import java.util.Arrays; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import javax.inject.Singleton; | |
import javax.servlet.ServletContext; | |
import javax.servlet.ServletContextEvent; | |
import javax.ws.rs.DefaultValue; | |
import javax.ws.rs.GET; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.apache.aurora.pmd; | |
import net.sourceforge.pmd.lang.java.ast.ASTAnnotation; | |
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceBodyDeclaration; | |
import net.sourceforge.pmd.lang.java.ast.ASTClassOrInterfaceDeclaration; | |
import net.sourceforge.pmd.lang.java.ast.ASTMethodDeclaration; | |
import net.sourceforge.pmd.lang.java.ast.ASTName; | |
import net.sourceforge.pmd.lang.java.rule.AbstractJavaRule; | |
import net.sourceforge.pmd.lang.symboltable.NameDeclaration; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.inject.Inject; | |
import javax.inject.Named; | |
import com.google.inject.AbstractModule; | |
import com.google.inject.CreationException; | |
import com.google.inject.Guice; | |
import com.google.inject.Key; | |
import com.google.inject.name.Names; | |
import org.junit.Test; |
OlderNewer