This file contains hidden or 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
| version: 2 | |
| jobs: | |
| build: | |
| working_directory: ~/code | |
| docker: | |
| - image: circleci/android:api-25-alpha | |
| environment: | |
| JVM_OPTS: -Xmx3200m | |
| steps: | |
| - checkout |
This file contains hidden or 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
| Problem: We have a log line that includes a perl class that we want to log the class | |
| and method in their respected fields. An example class and method in perl: | |
| Animal::Dog::bark | |
| In this example, "bark" is the method. "Animal::Dog" is the class. | |
| After some searching and hacking, I found a solution that works with Logstash 1.4.2 | |
| Assume the input is "Animal::Dog::bark". |
This file contains hidden or 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
| input { | |
| file { | |
| path => "/path/to/tomcat/logs/localhost_access_log*.txt" | |
| } | |
| } | |
| filter { | |
| grok { | |
| match => { | |
| "message" => "%{COMBINEDAPACHELOG} %{IPORHOST:serverip} %{NUMBER:serverport} %{NUMBER:elapsed_millis} %{NOTSPACE:sessionid} %{QS:proxiedip} %{QS:loginame}" |
This file contains hidden or 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
| class App : Application(), HasActivityInjector { | |
| @Inject lateinit var activityInjector: DispatchingAndroidInjector<Activity> | |
| override fun activityInjector(): AndroidInjector<Activity> { | |
| return activityInjector | |
| } | |
| override fun onCreate() { | |
| super.onCreate() |
This file contains hidden or 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
| { | |
| "title": "Apache and Tomcat Logs", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "apache !tomcat !static", | |
| "alias": "", | |
| "color": "#7EB26D", | |
| "id": 0, |
This file contains hidden or 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 android.arch.lifecycle.GenericLifecycleObserver | |
| import android.arch.lifecycle.Lifecycle | |
| import android.arch.lifecycle.Lifecycle.Event.ON_DESTROY | |
| import android.arch.lifecycle.LifecycleOwner | |
| import kotlinx.coroutines.experimental.CoroutineScope | |
| import kotlinx.coroutines.experimental.Dispatchers | |
| import kotlinx.coroutines.experimental.Job | |
| import kotlinx.coroutines.experimental.android.Main | |
| fun Lifecycle.createJob(cancelEvent: Lifecycle.Event = ON_DESTROY): Job { |
This file contains hidden or 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"?> | |
| <manifest | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| package="xxx"> | |
| <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| ... | |
| </manifest> |
This file contains hidden or 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
| const path = require("path") | |
| const fs = require("fs") | |
| // -- Webpack configuration -- | |
| const config = {} | |
| // Application entry point | |
| config.entry = "./src/server/index.js" |
This file contains hidden or 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
| --- | |
| - hosts: all | |
| connection: paramiko | |
| vars: | |
| ansible_ssh_private_key_file: /path/to/private_key | |
| ansible_ssh_pass: passphrase_for_private_key | |
| tasks: | |
| - debug: | |
| msg: hello |
This file contains hidden or 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
| # | |
| # Circle CI & gradle.properties live in harmony | |
| # | |
| # Android convention is to store your API keys in a local, non-versioned | |
| # gradle.properties file. Circle CI doesn't allow users to upload pre-populated | |
| # gradle.properties files to store this secret information, but instaed allows | |
| # users to store such information as environment variables. | |
| # | |
| # This script creates a local gradle.properties file on current the Circle CI | |
| # instance. It then reads environment variable TEST_API_KEY_ENV_VAR which a user |
OlderNewer