From a4216f9646aeea73c1454d22c0ba856ee3e82edd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 19 Mar 2015 18:59:04 -0400 Subject: initial commit --- bin/snapPhoto | 2 ++ bin/tweet | 10 ++++++++++ bin/tweetImages | 11 +++++++++++ etc/twitter4j.properties | 8 ++++++++ lib/readme-libs.txt | 11 +++++++++++ lib/twitter4j-async-4.0.2.jar | Bin 0 -> 198504 bytes lib/twitter4j-core-4.0.2.jar | Bin 0 -> 280471 bytes lib/twitter4j-examples-4.0.2.jar | Bin 0 -> 126152 bytes lib/twitter4j-media-support-4.0.2.jar | Bin 0 -> 22601 bytes lib/twitter4j-stream-4.0.2.jar | Bin 0 -> 57216 bytes 10 files changed, 42 insertions(+) create mode 100755 bin/snapPhoto create mode 100755 bin/tweet create mode 100755 bin/tweetImages create mode 100644 etc/twitter4j.properties create mode 100644 lib/readme-libs.txt create mode 100644 lib/twitter4j-async-4.0.2.jar create mode 100644 lib/twitter4j-core-4.0.2.jar create mode 100644 lib/twitter4j-examples-4.0.2.jar create mode 100644 lib/twitter4j-media-support-4.0.2.jar create mode 100644 lib/twitter4j-stream-4.0.2.jar diff --git a/bin/snapPhoto b/bin/snapPhoto new file mode 100755 index 0000000..3309c66 --- /dev/null +++ b/bin/snapPhoto @@ -0,0 +1,2 @@ +#!/bin/sh +wget -O /home/lvuser/tweeterbot/var/"$(date +'%Y:%m:%dT%H:%M:%S')".jpg http://10.42.72.11/jpg/1/image.jpg diff --git a/bin/tweet b/bin/tweet new file mode 100755 index 0000000..5d38cf6 --- /dev/null +++ b/bin/tweet @@ -0,0 +1,10 @@ +#!/bin/sh +export JAVA_HOME=/usr/local/frc/JRE + +for file in /home/lvuser/tweeterbot/lib/*.jar; do + CLASSPATH="$CLASSPATH:$file" +done +export CLASSPATH + +cd /home/lvuser/tweeterbot/etc +"$JAVA_HOME/bin/java" -Xms30m -Xmx30m -cp "$CLASSPATH" twitter4j.examples.tweets.UpdateStatus "$@" diff --git a/bin/tweetImages b/bin/tweetImages new file mode 100755 index 0000000..474caee --- /dev/null +++ b/bin/tweetImages @@ -0,0 +1,11 @@ +#!/bin/sh +# Usage: $0 TEXT FILES... +export JAVA_HOME=/usr/local/frc/JRE + +for file in /home/lvuser/tweeterbot/lib/*.jar; do + CLASSPATH="$CLASSPATH:$file" +done +export CLASSPATH + +cd /home/lvuser/tweeterbot/etc +"$JAVA_HOME/bin/java" -Xms30m -Xmx30m -cp "$CLASSPATH" twitter4j.examples.tweets.UploadMultipleImages "$@" diff --git a/etc/twitter4j.properties b/etc/twitter4j.properties new file mode 100644 index 0000000..85936ab --- /dev/null +++ b/etc/twitter4j.properties @@ -0,0 +1,8 @@ +#twitter4j.properties +#Thu Jan 29 17:36:07 EST 2015 +oauth.consumerSecret=7w9NMKBXGY319LLfeqFFf7APvE3c2lOHnVQeTrMLx44hBh2dAJ +debug=true +oauth.accessToken=3004288821-1uewmJbNJCWBvMhGp4ktMjNS55ib0XmS8u7gVr5 +oauth.accessTokenSecret=ix6mgy2i2vPjFyVVDsv5GqCRgm6LgQy1aQhgshpxCjuWN +http.prettyDebug=true +oauth.consumerKey=6q7OVuHzMvkwc3tnV0PjWg9nz diff --git a/lib/readme-libs.txt b/lib/readme-libs.txt new file mode 100644 index 0000000..6b337be --- /dev/null +++ b/lib/readme-libs.txt @@ -0,0 +1,11 @@ +Twittetr4J is a Twitter API binding library for the Java language licensed under Apache License 2.0. + +Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at http://www.JSON.org/license.html + +readme-libs.txt - this file +twitter4j-core.jar - REST and Search API support +twitter4j-async.jar - Async API support : use with twitter4j-core +twitter4j-media-support.jar - media API support : use with twitter4j-core +twitter4j-stream.jar - Streaming API support : use with twitter4j-core +twitter4j-examples.jar - examples : use with twitter4j-core, twitter4j-async and twitter4j-stream +twitter4j-spdy.jar - SPDY / HTTP2.0 support : adds SPDY / HTTP2.0 support, boosts Twitter4J performance, reduce packets, save the earth diff --git a/lib/twitter4j-async-4.0.2.jar b/lib/twitter4j-async-4.0.2.jar new file mode 100644 index 0000000..c4c36fb Binary files /dev/null and b/lib/twitter4j-async-4.0.2.jar differ diff --git a/lib/twitter4j-core-4.0.2.jar b/lib/twitter4j-core-4.0.2.jar new file mode 100644 index 0000000..2ad64f5 Binary files /dev/null and b/lib/twitter4j-core-4.0.2.jar differ diff --git a/lib/twitter4j-examples-4.0.2.jar b/lib/twitter4j-examples-4.0.2.jar new file mode 100644 index 0000000..f4f8449 Binary files /dev/null and b/lib/twitter4j-examples-4.0.2.jar differ diff --git a/lib/twitter4j-media-support-4.0.2.jar b/lib/twitter4j-media-support-4.0.2.jar new file mode 100644 index 0000000..12d1819 Binary files /dev/null and b/lib/twitter4j-media-support-4.0.2.jar differ diff --git a/lib/twitter4j-stream-4.0.2.jar b/lib/twitter4j-stream-4.0.2.jar new file mode 100644 index 0000000..31ba48d Binary files /dev/null and b/lib/twitter4j-stream-4.0.2.jar differ -- cgit v1.2.3-54-g00ecf