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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="INFO" packages="com.amazonaws.services.lambda.runtime.log4j"> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %C - %msg%n"/> | |
</Console> | |
<LambdaAppender name="LambdaAppender"> | |
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} %X{AWSRequestId} %-5p %c{1}:%L - %m%n"/> | |
</LambdaAppender> | |
</Appenders> |
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
# bash/zsh git prompt support | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# This script allows you to see repository status in your prompt. | |
# | |
# To enable: | |
# | |
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). |
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
#!/bin/bash | |
$(brew --prefix)/etc/bash_completion | |
source ~/bin/git-prompt.sh | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset | |
# Regular Colors | |
Black="\[\033[0;30m\]" # Black |
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 com.dronze.app; | |
import com.dronze.filter.CorsFilter; | |
import org.springframework.beans.factory.annotation.Value; | |
import org.springframework.boot.autoconfigure.web.DispatcherServletAutoConfiguration; | |
import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory; | |
import org.springframework.boot.context.embedded.FilterRegistrationBean; | |
import org.springframework.boot.context.embedded.ServletRegistrationBean; | |
import org.springframework.boot.context.embedded.jetty.JettyEmbeddedServletContainerFactory; |
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
#!/usr/bin/env bash | |
# | |
# Startup service script for a spring boot project | |
# | |
# chkconfig: - 84 16 | |
# description: project | |
# Source function library. | |
[ -f "/etc/rc.d/init.d/functions" ] && . /etc/rc.d/init.d/functions | |
[ -z "$JAVA_HOME" -a -x /etc/profile.d/java.sh ] && . /etc/profile.d/java.sh |
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
[claytongraham@Claytons-MacBook-Pro dronze]$ find . -name '*.jar' -exec ls -lah {} \; | |
-rw-r--r-- 1 claytongraham staff 261B Apr 16 11:39 ./build/libs/dronze-1.0.jar | |
-rw-r--r-- 1 claytongraham staff 51K Apr 6 21:13 ./dronze-app/gradle/wrapper/gradle-wrapper.jar | |
-rw-r--r-- 1 claytongraham staff 50K Apr 16 11:39 ./dronze-cicd/build/libs/dronze-cicd.jar | |
-rw-r--r-- 1 claytongraham staff 51K Apr 6 21:13 ./dronze-cicd/gradle/wrapper/gradle-wrapper.jar | |
-rw-r--r-- 1 claytongraham staff 261B Apr 16 11:39 ./dronze-config/build/libs/dronze-config-0.3.1-SNAPSHOT.jar | |
-rw-r--r-- 1 claytongraham staff 51K Apr 6 21:13 ./dronze-config/gradle/wrapper/gradle-wrapper.jar | |
-rw-r--r-- 1 claytongraham staff 51K Apr 6 21:13 ./gradle/wrapper/gradle-wrapper.jar |
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
//simple peg screen | |
def screen = Dronze.screen(dval, 'CLOSE', 'VOLUME','PEG1YR') | |
def buys = screen.subset([PEG1YR:[greaterThan:2.0, lessThan:3.00] ]) | |
print "${dval} buy signals: ${buys.getTable().size()}\n" | |
buys.getRowKeys().each { | |
def ticker = "${it}"; | |
def buyTx = Dronze.buy(me.userAuthId, account, ticker, "percentOfCash", 10.0, 1000.0, dval, context) | |
if(buyTx != null){ | |
print "${dval} buying shares of: ${ticker}\n" |
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
def dates = Dronze.closeDates('2010-01-01', '2011-02-20') | |
def account = Dronze.makeAccountForSim("Buy_PEG_Signal2612_3",100000,me.authid) | |
dates.each{ | |
def dval = "${it}" | |
def screen = Dronze.screen(dval, 'CLOSE', 'VOLUME', 'PEG', 'SIGNAL2612') | |
def buys = screen.subset([PEG:[lessThan:50.00], SIGNAL2612:[greaterThan:0.0] ]) | |
buys.getRowKeys().each { | |
print "${dval} buying shares of: ${it}\n" |
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
#!/bin/bash | |
#list a directory | |
java -jar ./build/libs/fileutils-app-0.0.1-SNAPSHOT-all.jar -c ls -f /Users/claytongraham/data/github/fileutils -r | |
#delete files in the directory | |
java -jar /Users/claytongraham/data/github/fileutils/build/libs/fileutils-app-0.0.1-SNAPSHOT-all.jar -c rm -f fileutils -r | |
#the jar file | |
# https://s3.amazonaws.com/callpug.com/download/fileutils-app-0.0.1-SNAPSHOT-all.jar |
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
def dates = Dronze.closeDates(300, 360) | |
def accountName = "Foobar" | |
def lotsize = 100 | |
dates.each{ | |
def dval = "${it}" | |
//screen from all 8000 stocks in the catalog on this day | |
def screen = Dronze.screen(dval, 'CLOSE', 'VOLUME', 'PEG', 'SIGNAL2612') | |
//buy on low PEG |