# Build it
go build -o go-kinesis main.go
# Run it
./go-kinesis <aws_region> <stream_name> [<log_group>]
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
// Source: https://stackoverflow.com/questions/12321133/golang-random-number-generator-how-to-seed-properly | |
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"math/rand" | |
"time" | |
) |
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
#=========================== Filebeat prospectors ============================= | |
filebeat.prospectors: | |
- input_type: log | |
document_type: mariadb-slowlogs | |
paths: | |
- "/var/log/mysql/mariadb-slow.log" | |
multiline: | |
pattern: '^# User@Host: ' | |
negate: true | |
match: after |
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 React, { Component } from 'react' | |
import FormData from './RequestQuoteData' | |
import ButtonGroup from './groups/ButtonGroup' | |
import InputFormGroup from './groups/InputFormGroup' | |
import SelectFormGroup from './groups/SelectFormGroup' | |
import DatepickerFormGroup from './groups/DatepickerFormGroup' | |
class RequestQuoteForm extends Component { | |
constructor(props) { | |
super(props) |
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 React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
import Select from '../elements/Select' | |
class SelectFormGroup extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
name: this.props.name, | |
label: this.props.label, |
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 React, { Component } from 'react' | |
import PropTypes from 'prop-types' | |
import ReactSelect from 'react-select' | |
class Select extends Component { | |
constructor(props) { | |
super(props) | |
this.state = { | |
name: this.props.name, | |
value: this.props.value, |
Our Virtual Machines are provisioned using Vagrant from a Linux base box to run using VirutalBox. If the Hard Disk space runs out and you cannot remove files to free-up space, you can resize the Hard Disk using some VirtualBox and Linux commands.
The following steps assume you've got a set-up like mine, where:
directory structure:
/my-project
/public
index.php
/src
/Controllers
UsersController.php
/test
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 axios from "axios"; | |
export default async function () { | |
const { data: { id } } = await axios.get("//localhost:3000/id"); | |
const { data: { group } } = await axios.get("//localhost:3000/group"); | |
const { data: { name } } = await axios.get(`//localhost:3000/${group}/${id}`); | |
console.log(name); // Michał | |
} |
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
APP_ENV=testing | |
APP_KEY=SomeRandomString | |
DB_CONNECTION=testing | |
DB_TEST_USERNAME=root | |
DB_TEST_PASSWORD= | |
CACHE_DRIVER=array | |
SESSION_DRIVER=array | |
QUEUE_DRIVER=sync |
NewerOlder